Microsoft.Common.targets, HELP!!!!

  • Thread starter Søren M. Olesen
  • Start date
S

Søren M. Olesen

Hi

I'm suddenly getting the following error when I try to build a
class-library, Windows Application,....:

Error 1 Unable to copy file "obj\Debug\ClassLibrary2.dll" to
"bin\Debug\ClassLibrary2.dll". Could not find file
'obj\Debug\ClassLibrary2.dll'.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets 2313
9 ClassLibrary2

and I simple can't figure what is wrong.

I've tried reinstalling VS2005, but no matter what I do I can't seem to get
rid of this error.

I'd really like to avoid reinstalling Windows, so any help of solving this
problem would be greatly appreciated.

TIA

Søren
 
S

Søren M. Olesen

I've been digging a little further into the problem, and from the compile
output I get the following:

Target "CoreCompile" in file
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.VisualBasic.targets":
Building target "CoreCompile" completely.
Output file "obj\Release\ClassLibrary2.xml" does not exist.
Task "Vbc"
Command:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Vbc.exe /noconfig
/imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Data,System.Diagnostics
/nowarn:42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
/optionstrict+ /rootnamespace:ClassLibrary2
/doc:blush:bj\Release\ClassLibrary2.xml
/define:"CONFIG=\"Release\",TRACE=-1,_MyType=\"Windows\",PLATFORM=\"AnyCPU\""
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll,C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll,C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll
/debug:pdbonly /optimize+ /out:blush:bj\Release\ClassLibrary2.dll
/resource:blush:bj\Release\ClassLibrary2.Resources.resources /target:library
Class1.vb "My Project\AssemblyInfo.vb" "My Project\Application.Designer.vb"
"My Project\Resources.Designer.vb" "My Project\Settings.Designer.vb"
Done executing task "Vbc".
Done building target "CoreCompile" in project "ClassLibrary2.vbproj".

on at machine where the build works and:

Target "CoreCompile" in file
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.VisualBasic.targets":
Building target "CoreCompile" completely.
Output file "obj\Release\ClassLibrary2.xml" does not exist.




Done building target "CoreCompile" in project "ClassLibrary2.vbproj".

on my machine where it doesn't work. However I can seem to figure out why
the compile command isn't run......

Søren
 
S

Søren M. Olesen

After trying to solve the problem for a day, I finally ended up restoring my
whole system from backup, so now everythis is fine again......
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top