Could not find file 'Microsoft.Windows.CommonLanguageRuntime, Version=2.0.50727.0' 问题
2015-10-28 18:13
351 查看
今天Publish Solution的时候遇到了这个错误:Could
not find file 'Microsoft.Windows.CommonLanguageRuntime, Version=2.0.50727.0' 感到很诧异,CLR都找不到了,还混个P啊~!
后来查查资料,网上说这是因为Solution有多个入口程序而导致的。个人组织了三种解决方案:
1.Solution中保证只有一个Project编译为Windows Application,其他的编译为Class Library。(Project右键Property,Application选项卡,Output type选项)
2.如果确实需要生成多个exe文件,确保取消Enable ClickOne Security Settings复选框。(Project右键Property,Security选项卡)
3.如果需要保留此安全选项,可以把exe的项目引用删掉,改为exe文件的引用。
not find file 'Microsoft.Windows.CommonLanguageRuntime, Version=2.0.50727.0' 感到很诧异,CLR都找不到了,还混个P啊~!
后来查查资料,网上说这是因为Solution有多个入口程序而导致的。个人组织了三种解决方案:
1.Solution中保证只有一个Project编译为Windows Application,其他的编译为Class Library。(Project右键Property,Application选项卡,Output type选项)
2.如果确实需要生成多个exe文件,确保取消Enable ClickOne Security Settings复选框。(Project右键Property,Security选项卡)
3.如果需要保留此安全选项,可以把exe的项目引用删掉,改为exe文件的引用。
相关文章推荐
- andorid serviceconnection
- 封装Android文件基本操作方法
- Python *与** 参数问题
- STM32软件复位(基于库文件V3.5)
- 使用python进行数据转码
- CSS基础学习一:CSS概述
- 【安卓】ExpandableListView中的position
- C++编程 (三)--- 深入C++后台开发
- 【未解决】html中的a标签id与class冲突
- 河北民间管理系统利益相关者分析
- php xml转数组
- Linux CentOS 6.5nginx +tomcat +redis分布式web应用的session共享配置
- python函数参数带星号*
- zookeeper源码分析----节点创建流程
- Dating with girls(1)(二分+map+set)
- iOS delegate 的使用
- OnKeyListener键盘事件验证银行帐号
- 二维数组的输出问题
- Spring事务异常rollback-only
- EAS BOS批量保存或更新数据