Muk*_*thi 10 c#-4.0 visual-studio-2015
我有一个Windows应用程序和使用猎豹进行配置转换,即app.config.debug,app.config.test等,
当项目在调试模式下构建时,它工作正常但是当teamcity更改模式以测试配置并尝试重建时会收到以下错误:
/platform:anycpu32bitpreferred can only be used with /t:exe, /t:winexe and /t:appcontainerexe
Run Code Online (Sandbox Code Playgroud)
任何人都可以帮我解决这个问题吗?
谢谢
Sil*_*ion 16
使用文本编辑器打开项目文件.找到<Prefer32Bit> true </ Prefer32Bit>行,并将值"true"更改为"false".根据已设置的配置数量,可能不止一个.