The default App.config
file generated by Visual Studio 2013 (with .NET Framework 4.5.1) when a WPF application is created anew, will look something like this.
<?xml version="1.0" encoding="utf-8" ?> <configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> </startup> </configuration>
To this I might add a few elements that define some application settings.
<?xml version="1.0" encoding="utf-8" ?> <configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> </startup> <appSettings> <add key="ConfigureThisThing" value="123" /> <add key="SwitchThatThing" value="True" /> </appSettings> </configuration>
Upon building, the word configuration
will become underlined and there will be a warning.
The 'configuration' element is not declared.
To get rid of the warning, it seems necessary to define the <configuration>
attribute xmlns
.
Is there a default attribute value available somewhere that is very un-constraining and serves simply to get rid of the warning?
There is this particular stackoverflow answer that suggests
xmlns="schema URL"
and while that does get rid of the warning, it does not appear to be a properly formed URL, so it does not seem to make sense. If such an attribute value can be supported or explained or justified, then I will gladly accept it, however there appears to be no information at this MSDN configuration element description that would justify such an attribute value.
This MSDN document says that the attribute should specify a URL.