开发者

.NET config cheat sheet

Does anyone know of any good references for Microsofts configuration files. I always need to change them manually and have never found a reference for them in the Forest of msdn documentation.

Specifically in this case what is the syntax for the typ开发者_StackOverflow中文版e attribute used to specify the type of a class. i.e.

<add name="a name" type="MyApp.Model.MyClass, MyApp" />

And if anyone from Microsoft actually reads stackoverflow. I hate XML config files!

EDIT:

For any one else the actual msdn for config files is Configuration File Schema

Although in this case the problem I was having was due to VS Express having problems with the output directory I had changed it to from the defualt.


For the right format for assembly qualified typename format, I just get an exemplar one in PowerShell:

"Foo".GetType().AssemblyQualifiedName

which returns

System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

For the rest of the standard .config and web.config I use the General Reference for the .NET Framework section on MSDN.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜