Platform configuration for projects in VS 2010

I have a third-party project type in Visual Studio, which for some reason only supports the .NET platform configuration for assembly, for all other (standard C #) projects in the solution, I have only AnyCPU . Unfortunately, from the moment of updating to VS 2010, it creates the following error when building:

Error 39. The OutputPath property is not set for the project 'ReferencedBusinessProject.csproj. Please check that you indicate a valid combination of configuration and platform for this project. Configuration = "debug" Platform = '. NET This error may also occur if some other project tries to follow the project-project link to this project, this project has been unloaded or not included in the solution, and the link to the project is not built using the same or equivalent Configuration or Platform. C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets 483 10 CustomTypeProject

This is pretty descriptive in what is missing, but I have not yet found a way to fix it. Do you know how this can be solved or what could be the problem?

+7
c # visual-studio-2010 projects-and-solutions configuration solution
source share
1 answer

. The .NET platform had to be created for the project before you received it for transparency reasons, check the project settings and, if it builds any processor, then correct the project configuration. (Standards - AnyCPU, x86, x64, win32) etc.

I would suggest that you right-click the ".sln" file, and in the configuration manager, set the properties of what you would like to build when you invoke the platform. I.e

This sample is best served using a configuration called Mixed Platforms

csproj1 platform=AnyCPU configuration=debug build checkbox (checked) csproj2 platform=.net configuration=debug build checkbox (checked) 

This will allow you to create using msbuild. The call will be

 msbuild my.sln /p:configuration="Debug" /p:platform="Mixed Platforms" 

Both projects will be built.

+3
source share

All Articles