HiveBrain v1.2.0
Get Started
← Back to all entries
patterncsharpCritical

Metadata file '.dll' could not be found

Submitted by: @import:stackoverflow-api··
0
Viewed 0 times
founddllcouldmetadatafilenot

Problem

I am working on a WPF, C# 3.0 project, and I get 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


This is how I reference my usercontrols:

xmlns:vms="clr-namespace:VersionManagementSystem"


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 re-build the project. Then I uncomment the usercontrols and everything is fine.

I have checked build orders and dependency configurations.

As you can see, it seems to have truncated the DLL file'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, and uncomment, the build is becoming extremely tiresome.

Solution

I just had the same problem. Visual Studio isn't building the project that's being referenced.

Written Instructions:

  • Right click on the solution and click Properties.



  • Click Configuration on the left.



  • Make sure the check box under "Build" for the project it can't find is checked. If it is already checked, uncheck, hit apply and check the boxes again.



  • (Optional) You had to do it for both Release and Debug modes on the solution properties.



Screen capture Instructions:

  • They say a picture is worth a thousand words. Click on the GIF to zoom in, and hopefully it will be easy to follow:

Context

Stack Overflow Q#1421862, score: 1222

Revisions (0)

No revisions yet.