错误 "The OutputPath property is not set for project" VS 2015
Error "The OutputPath property is not set for project" VS 2015
我在 visual studio 2015 年有多个项目。我 运行 我的项目在 "ANY CPU" 处于调试模式。当我尝试 运行 我的项目时,出现以下错误:
The OutputPath property is not set for project '.csproj'. Please
check to make sure that you have specified a valid combination
of Configuration and Platform for this project. Configuration='Debug'
Platform='x64'.
This error may also appear if some other project is
trying to follow a project-to-project reference to this project, this
project has been unloaded or is not included in the solution, and the
referencing project does not build using the same or an equivalent
Configuration or Platform. C:\Program Files
(x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets
您的意思是"ANY CPU"是解决方案配置?输入“Build\Configuration Manager”并为你的'.csproj'检查"Configuration"和"Platform"。
还要尝试检查所有 cs 项目文件中的“<OutputPath></OutputPath>
”。
如果 $(Platform)
为空,还要查看将设置哪个平台:
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU(may be x64 here)</Platform>
对我来说,问题出在包裹上
Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.4.0
Nuget 只获取了“Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.4.0.nupkg
”,并没有添加文件夹“build
”和“tools
”。因此没有'Microsoft.VisualStudio.Azure.Fabric.Application.props
'。
从备份中添加后(没有帮助恢复),我刚刚重建了项目,它运行得非常棒!
不是最明显的错误消息。
希望这对某人有所帮助。
我只是将所有项目解决方案更新为 x64,然后解决方案构建正常。
我在 visual studio 2015 年有多个项目。我 运行 我的项目在 "ANY CPU" 处于调试模式。当我尝试 运行 我的项目时,出现以下错误:
The OutputPath property is not set for project '.csproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='x64'.
This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform. C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets
您的意思是"ANY CPU"是解决方案配置?输入“Build\Configuration Manager”并为你的'.csproj'检查"Configuration"和"Platform"。
还要尝试检查所有 cs 项目文件中的“<OutputPath></OutputPath>
”。
如果 $(Platform)
为空,还要查看将设置哪个平台:
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU(may be x64 here)</Platform>
对我来说,问题出在包裹上
Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.4.0
Nuget 只获取了“Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.4.0.nupkg
”,并没有添加文件夹“build
”和“tools
”。因此没有'Microsoft.VisualStudio.Azure.Fabric.Application.props
'。
从备份中添加后(没有帮助恢复),我刚刚重建了项目,它运行得非常棒!
不是最明显的错误消息。
希望这对某人有所帮助。
我只是将所有项目解决方案更新为 x64,然后解决方案构建正常。