.NET Framework Bookmark and Share   
 index > MSBuild > error MSB6006
 

error MSB6006

Greetings,

When building from the command-line I get this error:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1892,9): error MSB6006: "sgen
.exe" exited with code 1.

When i build from within visual studio I get no errors

What can this be?

Regards,
Gustavo Guerra
ovatsus
Nevermind, I found the error. I was passing it a mscorlib.dll that wasn't the correct one
ovatsus
Can you please run the command line build with verbose logging (add /v:d to the command line) and post back the snippet that surrounds this error? Thanks.

Neil
Neil Enns MSFT
Nevermind, I found the error. I was passing it a mscorlib.dll that wasn't the correct one
ovatsus

Do you know why  I get "An error occurred when merging assemblies: ILMerge.Merge:ERROR!!!: Duplicate Type '_Default' found in assembly 'App-Web_a0p9mzuh'?

Thank you

 

fp101

You can use google to search for other answers

Custom Search

More Threads

• Subversion build
• RAR/RCR and build performance.
• Config file for ClickOnce publishing
• Getting return value running msbuild command-line against solution file
• Missing SQLServer.targets file
• How to update AssemblyInfo only on Release builds?
• How to cancel execution of Microsoft.Build.BuildEngine.Project.Build?
• How to add comreference to csproj automaticly
• Problems signing ClickOnce manifests in MSBuild
• Stop on first failure in .sln file?