I started getting warning messages like ' Could not find schema information for the element 'supportedRuntime'' after adding an app.config file to my project. It seems that Microsoft have not completely specified the 'startup' element in the relevant .xsd file. To fix this:

Navigate to the file 'C:\Program Files\Microsoft Visual Studio 10.0\Xml\Schemas\DotNetConfig.xsd'.

If the startup element looks like this:
<:xs:element name="startup" vs:help="configuration/startup">

Change it to:
<xs:element name="startup" vs:help="configuration/startup">
< xs:complexType>
< xs:choice minOccurs="1" maxOccurs="1">
< xs:element name="requiredRuntime" vs:help="configuration/startup/requiredRuntime">
< xs:complexType>
< xs:attribute name="version" type="xs:string" use="optional" />
< xs:attribute name="safemode" type="xs:boolean" use="optional" />
< /xs:complexType>
< /xs:element>
< xs:element name="supportedRuntime" minOccurs="1" maxOccurs="unbounded" vs:help="configuration/startup/supportedRuntime">
< xs:complexType>
< xs:attribute name="version" type="xs:string" use="optional" />
< xs:attribute name="sku" type="xs:string" use="optional" />
< /xs:complexType>
< /xs:element>
< /xs:choice>
< xs:attribute name="useLegacyV2RuntimeActivationPolicy" type="xs:boolean" use="optional" />
< !-- see http://msdn.microsoft.com/en-us/library/bbx34a2h.aspx -->
< /xs:complexType>
< /xs:element>

That should get rid of the annoying warnings.

Comments

Popular posts from this blog

Path environmental variable on mac

Setting up node-sass on a mac