gpt4 book ai didi

c# - VS2012 自动化部署 - 未为项目设置 OutputPath 属性

转载 作者:太空宇宙 更新时间:2023-11-03 16:15:45 25 4
gpt4 key购买 nike

好的,我知道这个问题已经被问过很多次了......

我已经尝试更改配置和输出路径,但我仍然遇到这个问题。

我正在为我们的产品设置自动构建和部署。我们有一个解决方案文件和其中的多个项目。

使用 VS2012 和默认构建定义,我已将“要构建的项目”设置为单个项目 - 我们希望为其构建和部署的项目。

让我们称这个项目为“Forms”。

当我运行构建定义时,它会构建并显示成功。但是,它会发出警告:

$/XXX/TRUNK/XXX/Forms.Web/Forms.Web.csproj - 0 error(s), 1 warning(s), View Log File C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (610): The OutputPath property is not set for project 'Forms.Web.csproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Release' Platform='Any CPU'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project.

我检查了 .csproj 文件,有一个指定了 OutputPath 的属性组。

我也尝试了各种配置/平台组合,但问题仍然存在。

有谁知道是什么原因造成的?这让我发疯。如果不修复此问题,则不会完成任何部署...它似乎只构建,甚至不生成 .DLL 文件。

最佳答案

尝试删除“平台”环境变量。

(Visual Studio 使用此环境变量,这可能是错误的。)

然后重启VS,重新构建解决方案...

关于c# - VS2012 自动化部署 - 未为项目设置 OutputPath 属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15879965/

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