c#程序中的app.config文件注意地方
来源:互联网 发布:工业机器人软件排名 编辑:程序博客网 时间:2024/05/10 01:43
例如:
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="Libs\CyUsb;Mylibs;Libs\NIMeasureStudio\Current;Libs\Prism;Libs\DynamicDataDisplay;Libs\System;Libs\Microsoft.Expression;
"/>
</assemblyBinding>
</runtime>
</configuration>
其中privatePath="path";
path要用逗号隔开,而且不能换行。
如下:
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="Libs\CyUsb;Mylibs;Libs\NIMeasureStudio\Current;Libs\Prism;
Libs\DynamicDataDisplay;Libs\System;Libs\Microsoft.Expression;
"/>
</assemblyBinding>
</runtime>
</configuration>
写法是错误的,其中Libs\DynamicDataDisplay;及其后面的路径不能被正确解析。
- c#程序中的app.config文件注意地方
- C# 中的 App.config 文件配置
- SilverLight C#程序之:读取并修改App.config文件
- C#读取app.config文件中的连接字符串的方法
- C#读取app.config文件
- C#配置App.config文件
- C# 读写app.config文件
- mdp-config.xml中的一些要注意的地方
- c#中的结构体注意的地方
- c#读取配置文件 程序的App.config
- C#读写app.config中的数据
- C#读写app.config中的数据
- C#读写app.config中的数据
- C#读写app.config中的数据(收藏)
- C#读写app.config中的数据
- C#读写app.config中的数据
- C#读写app.config中的数据
- C#实现读写app.config中的connectionStrings
- 添加字符串到NSMutable数组中
- varchar和Nvarchar区别
- POJ3006:Dirichlet's Theorem on Arithmetic Progressions
- 不可不知的C++隐藏规则
- vc++学习——windows应用程序基础(no.1)
- c#程序中的app.config文件注意地方
- json/java对象/xml之间相互转换
- 内存管理编程指南
- 发现的一款很有个性的时钟插件
- 【iphone】Object-c 属性说明
- js 报错 Illegal break statement
- Content Delivery Network
- 纯html5+css3下拉导航
- 将Json协议字符转换到Map