首页 > 编程

c#编译报告Warning MSB3331错误

2015-07-27 15:27:21 分类: 编程

编译c# winform程序出现MSB3331错误,解决办法:

1、在项目上点右键属性--发布;

2、选择应用程序文件,然后选中所有文件,将失效的引用从中删除(带黄色叹号前面)



参考:

I am using the VS 2008 and wanted to remove the unused references from my apps.

After going to Project<AppName> PropertiesReferences and clicking "Unused References", I chose to remove all of the recommendations.  No problem.  However, when I built the app after that, I got the compiler warning you are talking about.

It was referring to a few of the files I had removed.

I resolved this by going to "Project<AppName> PropertiesPublish" and clicking "Application Files", I checked "Show All" and deleted the files in the warning. 

I hope this helps.

https://social.msdn.microsoft.com/Forums/zh-CN/d1f9a84d-ab35-4326-a0e0-0f7a332094bf/warning-msb3331?forum=winformssetup


参考手册

W3c0.com 提供的内容仅用于培训。我们不保证内容的正确性。通过使用本站内容随之而来的风险与本站无关。W3c0 简体中文版的所有内容仅供测试,对任何法律问题及风险不承担任何责任。 当使用本站时,代表您已接受了本站的使用条款和隐私条款。版权所有,保留一切权利。 鲁ICP备15022115号