The OutputPath property is not set for this project - by Raphael Gabbarelli 2

Status : 

 


2
0
Sign in
to vote
ID 462922 Comments
Status Active Workarounds
Type Bug Repros 6
Opened 6/1/2009 1:28:31 PM
Access Restriction Public

Description

I'm developing a cloud web application.
The solution is composed of :
the cloud service
the web role
2 libraries

When attempting to build the solution I get this error (copy from VS error list) :

Error	102	The OutputPath property is not set for this project.  Please check to make sure that you have specified a valid Configuration/Platform combination.  Configuration='Debug'  Platform='AnyCPU'	C:\Windows\Microsoft.NET\Framework\v4.0.20506\Microsoft.Common.targets	582	10	CloudServiceProjectName

If I change the setting manually in the cloud service project file adding <OutputPath>bin\Debug\</OutputPath> to the first property group  , the build succeed.
Sign in to post a comment.
Posted by Trutput on 4/5/2012 at 7:41 AM
Hey AWFUL we can't believe that. What can possibly cause this to happen ???
Posted by John Roh on 5/12/2011 at 2:09 PM
I got the similar error message from C# project like "The OutputPath property is not set for project '<<cs project module name>>'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='BPC'. This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform.

On thing I notice is, when any cs project library uses a different output path, this error message shows. Especially when a referenced project class library uses its output "bin" in a debug mode, and all the other uses "bin/Debug". So, as long as the output paths are the same all class library modules, there is no error.

In order to check the output path of each class library project,
1. right click on a class library project and select "property"
2. Tab to "Build" which is right below Application
3. Under output, set output path "bin\Debug\" when its configuration sets to Active (Debug)" and platform "Active (Any CPU)"
4. check all the other class library project and make sure to use the same output path.
Posted by J Larry Aultman on 2/26/2010 at 1:18 PM
I am using VS 2010 RC and I am experiencing this issue. I have a number of class libraries. If I remove the Cloud App leaving the webrole in the project everything builds fine. If I then add the Cloud App back to the project it gives the error.
I completely started an new solution. I added the projects to the new solution and it failed exactly as before.

This is my error output... Note BizBancAzure in the cloud app...

OutputPath property is not set for project 'BizBancAzure.ccproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='HPD'. This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform.
Posted by Microsoft on 6/11/2009 at 2:16 PM
Hello Raphael,

This happens because in the Beta 1 version of Visual Studio 2010 the templates for Class Libraries default to target x86. Windows Azure currently only supports running 64 bit assemblies. The workaround for the moment is to switch the Class Library from x86 to Any CPU via the configuration manager. You'll notice that in the standard toolbar there are two comboboxes, one which says 'Debug' and the other will say 'Mixed Platforms'. Click on the 'Mixed Platforms' drop-down and select 'Configuration Manager...'. You should see that all of the projects listed have a platform of Any CPU other than your class library. Click on the platform drop-down for your class library and choose 'New'. In the dialog that appears set the platform to be 'Any CPU', and set 'Copy Settings' to None (you can also uncheck the 'Create new solution platform' checkbox). At this point things will bulid correctly.

This issue will be fixed in Beta 2. The platform target for class libraries will be set to Any CPU by default.

Anson Horton [ansonh@microsoft.com]
Posted by Microsoft on 6/4/2009 at 8:14 PM
Thanks for your feedback.

We were able to reproduce the issue you are seeing.We are escalating this issue to the appropriate group within the Visual Studio Product Team for triage and resolution.
These specialized experts will follow-up with your issue.
Posted by Raphael Gabbarelli 2 on 6/4/2009 at 10:11 AM
Now I have a better defined set of steps to reproduce the issue.

In VS 2010 (administrator) create a C# Cloud Web Role Project
Add to the solution a C# Class Library
In the asp.net project, add a reference to the class library.
At this point it's not possible to build the solution.

Sorry for the previous description!
Best regards
Posted by Microsoft on 6/4/2009 at 12:25 AM
Thanks for reporting the issue.
In order to fix the issue, we must first reproduce the issue in our labs. We are unable to reproduce the issue with the steps you provided.

Could you please upload a zipped project file to help us reproduce the problem?

It would be greatly appreciated if you could provide us with that information as quickly as possible.

Thanks again for your efforts and we look forward to hearing from you.
Visual Studio Product Team
Posted by Microsoft on 6/3/2009 at 4: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)