首页 文章

错误“未为项目设置OutputPath属性”VS 2015

提问于
浏览
2

我在visual studio 2015中有多个项目 . 我在调试模式下在“任何CPU”中运行我的项目 . 当我尝试运行我的项目时,我收到以下错误:

没有为项目'.csproj'设置OutputPath属性 . 请检查以确保您为此项目指定了Configuration和Platform的有效组合 . Configuration ='Debug'Blatform ='x64' . 如果某个其他项目正在尝试遵循项目到项目对此项目的引用,此项目已卸载或未包含在解决方案中,并且引用项目不使用相同或等效项目构建,则也可能出现此错误配置或平台 . C:\ Program Files(x86)\ MSBuild \ 14.0 \ bin \ Microsoft.Common.CurrentVersion.targets

3 回答

  • 2

    对我来说,问题出在包装中

    Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.4.0

    Nuget仅获取' Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.4.0.nupkg ' and didnt add the folders ' build ', and ' tools '. And therefore didn' t'' Microsoft.VisualStudio.Azure.Fabric.Application.props ' .

    一旦从备份添加(没有帮助恢复),我只是重建项目,它就像一个魅力!

    不是最明显的错误消息 .

    希望这有助于某人 .

  • 2

    我只是将所有项目解决方案更新到x64然后解决方案构建正常 .

    enter image description here

  • 0

    你的意思是"ANY CPU"是解决方案配置吗?在所有cs项目文件中输入“ Build\Configuration Manager " and check "配置" and "平台" for you '.csproj'. Also try to check " <OutputPath></OutputPath> ” . 如果 $(Platform) 为null,还要查看将设置哪个平台:

    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU(may be x64 here)</Platform>
    

相关问题