MSBuild task configuration property

前端 未结 4 1840
心在旅途
心在旅途 2020-12-09 16:55

I have three Visual Studio solutions. The first is configured to build as Release, and the other two are set to build as Debug.

When running a simp

4条回答
  •  感情败类
    2020-12-09 17:09

    Regarding the question of spelling of platform any cpu, it turns out there is an issue, already reported elsewhere here on StackOverflow and Microsoft. It affects MSBuild in general and the entire issue of Platform documentation is omitted in my dotnet v3.5 MSBuild /help. So perhaps this will help someone!

    Links

    "AnyCPU" vs "Any CPU" in TFS 2010
    MSBuild inconsistent platform for "Any CPU" between solution and project

    Closed as Won't Fix   
    Type:  Bug
    ID:  503935  
    Opened:  10/26/2009 1:29:12 PM
    Access Restriction:  Public  
    0 Workaround(s)
    5 User(s) can reproduce this bug  
    

    The MSBuild Platform property has a different value for Any CPU depending upon whether you are building a solution or building a project.
    - for Solution - use Platform="Any CPU" - with space
    - for Project - use Platform="AnyCPU" - without space

提交回复
热议问题