“the outputpath property is not set for this project” error

前端 未结 27 2498
野趣味
野趣味 2020-12-07 20:29

I have a multi project solution in Visual Studio 2008. I just added a new Configuration called Release-VersionIncrement to the solution, specifying \"use release\" configura

相关标签:
27条回答
  • 2020-12-07 20:59

    Like "Richard Dingwall" hinted, the problem is related to VS using the display version of "Any CPU" instead of the MSBuild version which actually reads "AnyCPU"

    Go into Build/New Build Definition or Edit Build Definition -> Process -> Configurations to build, open the configuration selection dialog and in "Platform" instead of selecting "Any CPU", manually add "AnyCPU"

    0 讨论(0)
  • 2020-12-07 20:59

    I had the same problem. I fixed it by clean and rebuilt the projects.

    0 讨论(0)
  • 2020-12-07 21:00

    If you decide to set OutputPath as a param, and your path is like: bin\Release\\ then remember to add \ at the end like that: /p:OutputPath=bin\Release\\\\ it took me a while to realize it was the case

    0 讨论(0)
  • 2020-12-07 21:01

    If anyone is getting this one in his NCrunch logs, check if the PropertyGroup defining the values 'Debug'/'Release' and 'AnyCPU'/'x86' located before the property groups using those values in their condition.

    <PropertyGroup>
        <!-- this one first -->
        <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
        <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
        <XXX>...</XXX>
      </PropertyGroup>
    
    <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
        <XXX>...</XXX>
    </PropertyGroup>
    
    <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
        <XXX>...</XXX>
    </PropertyGroup>
    

    Worked for me.

    0 讨论(0)
  • 2020-12-07 21:02

    In my case the OutputPath was set property in the project files. But unloading, reloading and then rebuilding fixed it.

    0 讨论(0)
  • 2020-12-07 21:02

    I had the same error, so I looked on project settings and there in "Build" section is "Build output path" option. And value was empty. So I filled in "bin\" value a error disappeared. It solved my problem.

    0 讨论(0)
提交回复
热议问题