Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C# Build

Status
Not open for further replies.

Athanasopolous

Programmer
Jun 25, 2005
40
US
I have written some simple C# programs just to get my feet wet.

Now I have decided to build a co-workers program and step through it. I am not used to all of the problems that might arise when building a C# program as I would a C++ program.

I get this error:

------ Rebuild All started: Project: ProjectName, Configuration: Debug Any CPU ------
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(481,9): error : 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'
Done building project "ProjectName.csproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

So there are some settings I need to check. Any advice?

Here is what I have tried so far:

I tried to right click in the project in Solution Explorer and I choose properties.
In the left pane of the properties page, click the Build option. The Output Path is near the bottom. I made sure it was set to bin\Debug\
But this changed nothing.

The Readme File in the directory suggeted to do a command-line build using MSBUILD.
When I did this, I got this error:

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Build.Engine, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)File name:
'Microsoft.Build.Engine, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ===> System.Security.SecurityException: Strong name
validation failed. (Exception from HRESULT: 0x8013141A)The Zone of the assembly that failed was:MyComputer
at Microsoft.Build.CommandLine.MSBuildApp.Execute(String commandLine) at Microsoft.Build.CommandLine.MSBuildApp.Main()

 
Is your solution on a network drive, or other path without full trust?
And write access?

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Is your coworker using the same edition of Visual Studio as you?

ie: They have Professional, and you have Express.

The other thing to do would be to 'clean' the solution. Right-click on the solution line in the project explorer, and select clean. Then rebuild.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top