gpt4 book ai didi

c# - MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(3243,9) : error MSB4094

转载 作者:可可西里 更新时间:2023-11-01 08:35:39 30 4
gpt4 key购买 nike

在 VS Ultimate 2013 12.0.21005.1REL 中打开我的 VS Ultimate 2012 C# 解决方案后,我收到以下警告:

Warning 1 Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190. EnergyMS

我遵循 Microsoft 链接说明。然后我编辑了 csproj 文件,添加了以下行:

<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>

当我再次构建解决方案时,出现以下错误:

Error List "app.config;obj\x86\Debug\EnergyMS.csproj.EnergyMS.exe.config" is an invalid value for the "ConfigFile" parameter of the "GenerateApplicationManifest" task. Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem". EnergyMS

输出窗口:

C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(3243,9): error MSB4094: "app.config;obj\x86\Debug\EnergyMS.csproj.EnergyMS.exe.config" is an invalid value for the "ConfigFile" parameter of the "GenerateApplicationManifest" task. Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem".

我在论坛上看到过类似的帖子,但我不明白这个问题。

谁能帮我理解这个问题?

谢谢。

最佳答案

我发现如果我在可执行项目的属性中关闭“启用 ClickOnce 安全设置”,错误就会消失。接下来我必须了解如何重新打开此选项,以便我可以单击一次部署我的 WPF 应用程序。

关于c# - MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(3243,9) : error MSB4094,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22899739/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com