views:

346

answers:

1

Hey there,

I am working on a WPF, C#3.0 Project and I am getting this error:

Error 1 Metadata file 'WORK=-\Tools\VersionManagementSystem\BusinessLogicLayer\bin\Debug\BusinessLogicLayer.dll' could not be found C:-=WORK=-\Tools\VersionManagementSystem\VersionManagementSystem\CSC VersionManagementSystem

EDIT:

This is how I reference my usercontrols

xmlns:vms="clr-namespace:VersionManagementSystem"
<vms:SignOffProjectListing Margin="5"/>

It happens after every failed build. The only way I can get the solution to compile is to comment out all my user controls and and built the project, then I uncomment the usercontrols and everything is fine.

I have checked build orders, dependencies configurations.

As you can see it seems to have truncated the dll's absolute path... I have read that there is a bug with the length. Is this a possible problem?

It's very annoying and having to comment, build, uncomment, build is becoming extremely tiresome.

A: 

Based on the error message I don't believe the file path is being truncated, it looks to just be incorrect. If i'm reading the message correctly it appears to be looking for the DLL at ...

WORK=-\Tools\VersionManagementSystem\BusinessLogicLayer\bin\Debug\BusinessLogicLayer.dll

This is not a valid path. Is it possible that you have a macro definition in the build process set to an invalid value?

JaredPar
I dunno how as I haven't changed anything and don't have any custom build events or configurations
Oliver