Search

MSBuild inconsistent platform for "Any CPU" between solution and project by dferg.dv

Closed
as Won't Fix Help for as Won't Fix

13
0
Sign in
to vote
Type: Bug
ID: 503935
Opened: 10/26/2009 1:29:12 PM
Access Restriction: Public
0
Workaround(s)
8
User(s) can reproduce this bug
The msbuild Platform property has a different value for Any CPU depending upon whether you are building the solution or building a project.
Solution use Platform="Any CPU" - space
Project use Platform="AnyCPU" - no space
Details (expand)

Product Language

English

Version

Visual Studio 2010 Beta 2

Operating System

Windows 7

Operating System Language

English

Steps to Reproduce

execute
MSBuild.exe MySolution.sln /p:Configuration=Debug;Platform="AnyCPU"
MSBuild.exe MyProject.csproj /p:Configuration=Debug;Platform="Any CPU"

Actual Results

The builds will fail because the platform is not recognized.
Instead change the location of the space such that the commands are:
MSBuild.exe MySolution.sln /p:Configuration=Debug;Platform="Any CPU"
MSBuild.exe MyProject.csproj /p:Configuration=Debug;Platform="AnyCPU"
Then the builds will succeed.

Expected Results

That the Platform value would be the same in the solution and in the project.
      You can indicate your satisfaction with how Microsoft handled this issue by completing this quick 3 question survey. [Details]

 

File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 11/2/2009 at 7:22 PM
Thanks for taking the time to send us your feedback.

Unfortunatley, having just shipped Beta 2, it is too late in the cycle to make adjustments at this point. It makes perfect sense that we should make these two the same. Looks like we should use "AnyCPU" consistently for both. We also need to make sure that we are backward compatible, so we will have to take this in consideration.

In the next round, we hope to be doing work around the solution, and we can perhaps fix this during that cycle. For this cycle, I am resolving this bug as "Won't Fix".

Thanks,

Chuck England
Visual Studio Platform
Program Manager - MSBuild
Posted by Microsoft on 10/29/2009 at 2:23 AM
Thanks for your feedback. We are routing this bug to the product unit who works on that specific feature area. The team will review this issue and make a decision on whether they will fix it or not for the next release.

Thank you,
Visual Studio Product Team
Posted by Microsoft on 10/27/2009 at 2:53 AM
Thank you for your feedback, We are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.