App.config Examples
来源:互联网 发布:c 数组中删除指定元素 编辑:程序博客网 时间:2024/05/16 06:17
fROM: http://blogs.msdn.com/suzcook/archive/2004/05/14/132022.aspx
Below are three examples of useful application configuration files.
- Forces the v1.0 CLR to be run. If the v1.0 CLR is not installed, the app will fail to run.
<?xml version ="1.0"?> <configuration> <startup> <requiredRuntime version="v1.0.3705"/> <supportedRuntime version="v1.0.3705"/> </startup> </configuration>
- Redirects “assemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=25283151a234958d“ to version 2.0.0.0 of that assembly. This is only useful for strongly-named assemblies, since versions don't matter for those that are simply-named.
<?xml version ="1.0"?> <configuration> <runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly> <assemblyIdentity name="assemblyName" culture="" publicKeyToken="25283151a234958d"/> <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0"/>
</dependentAssembly> </assemblyBinding>
</runtime> </configuration>
- Redirects “assemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8968ee41e78ce97a“ to codebase “http://www.yourwebsite.com/filename.dll“. 'Href' can also be set to something like “file:///c:/localfile/filename.dll“. Note that redirecting to a codebase causes a System.Net.WebPermission or System.IO.FileIOPermissionAccess.Read + PathDiscovery demand when loading that assembly.
<?xml version ="1.0"?> <configuration> <runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly> <assemblyIdentity name="assemblyName" culture="" publicKeyToken="8968ee41e78ce97a"/> <codeBase version="1.0.0.0" href="http://www.yourwebsite.com/filename.dll"/>
</dependentAssembly> </assemblyBinding>
</runtime></configuration>
- App.config Examples
- log4net Config Examples
- log4net Config Examples
- Apache log4net™ Config Examples
- examples/web_demo/app.py
- app.config
- app.config
- app.config
- app.config
- App.config
- app-config
- Examples in using config spec in ClearCase
- 读写配置文件app.config
- 读写配置文件app.config
- app.config修改操作
- app.config的读取
- 读写配置文件app.config
- 读写配置文件app.config
- escape
- 图灵奖中的数学家
- 优化系统Performance小记
- JS
- 开发语言的选择
- App.config Examples
- Windows2003下IIS、Tomcat整合
- FileSystemWatcher控件
- fx必胜
- 用VC对VISTA编程笔记
- 网上看来的"跟我轻松学刻录"——alcohol120%
- 使用SerialPort类设计串口通讯程序 (VS2005)[转载]
- 推荐好的博文连载----《冒号和他的学生们》
- 数据库优化设计方案