?
Solved

Compile errors

Posted on 2014-03-14
11
Medium Priority
?
236 Views
Last Modified: 2014-03-26
When trying to Build Solution, we get a bunch of errors. I just configured this computer yesterday, and just installed Visual Studio 2010. This project, with all the source code works fine and compiles fine for all the other developers (using same solution). So I am assuming I am having a config/setup problem with my project/ visual studio.

Errors:
error CS0006: Metadata file C:\I1Source\Applications\...\...\bin\Debug\...Shared.Common.dll could not be found.
error CS0006: Metadata file C:\I1Source\Applications\...\...\bin\Debug\...ReportRepository.Common.dll could not be found.

The list goes on, but they are all the same error type.

I also tried going to Configuration Manager, and changing the Active Solution Platform from Any CPU to x64 and vice versa. Also unchecked all the checkboxes under Build, and reapplied them. Still no luck.
0
Comment
Question by:pzozulka
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
11 Comments
 
LVL 22

Expert Comment

by:p_davis
ID: 39930591
do you have a process that is locking your build up? something that might hold on to a connection to one or more of your dll's or exe's if it isn't shutdown properly... i have had this happen many times.
0
 
LVL 8

Author Comment

by:pzozulka
ID: 39930602
No I do not. I also rebooted my computer several times, and made sure to attempt a build before running/opening any other apps.
0
 
LVL 22

Expert Comment

by:p_davis
ID: 39930614
have you tried to clean the solution and rebuild?
0
Quick Start: DOCKER

Sometimes you just need a Quick Start on a topic in order to begin using it.. this is just what you need to know to get up and running with Docker!

 
LVL 22

Expert Comment

by:p_davis
ID: 39930615
are there third party tool you use that need to be integrated?
0
 
LVL 8

Author Comment

by:pzozulka
ID: 39930616
I actually just went to the destination, and found out the dll files are actually not there.

To better understand the compilation errors, I am trying to understand what the compiler is looking for -- does it output those dll files to those directories, or is it actually needing those dll files in order to compile?
0
 
LVL 22

Expert Comment

by:p_davis
ID: 39930629
its a reference that its looking for that is not there that should be giving you the errors. 2010 is fairly buggy so your guess is as good as mine as to why it wouldn't produce the files it knows it needs on  a build/debug... especially sense a debug run requires a build.


i usually have to clean the build and then rebuild if i get this errors ... sometimes doing this after closing out of the solution and visual studio.
0
 
LVL 8

Author Comment

by:pzozulka
ID: 39930657
We use TortoiseSVN as the only 3rd party solution.

I tried cleaning, and then closing out of visual studio, the building the solution, but no luck.

I'm still a bit confused whether or not the files it's looking for were already suppose to be there, or are OUTPUT files that it was suppose to place there?
0
 
LVL 82

Expert Comment

by:David Johnson, CD, MVP
ID: 39930665
if these dll's are in your debug/release folder then they are built on the fly.. Later on in your code you may have missing references to these dll's

Build each project in your solution separately  and see where it starts to fail.

Did you keep and install all of the extensions that you had in the older visual studio?
0
 
LVL 22

Expert Comment

by:p_davis
ID: 39930754
might want to make sure the GAC is in order
0
 
LVL 8

Accepted Solution

by:
pzozulka earned 0 total points
ID: 39946520
The issue was with Build Events. The project solution is shared on a source controlled repository. By downloading the project to my computer, I inherited all the settings for the project into my visual studio environment.

The problem was that all the other developers have two hard drives -- system drive C: and development (SSD) drive D:.

Under project properties > Build Events, there was a Pre-build event command line that involved drive D.

My PC came with only a single drive (SSD) drive C: and the local source repository was downloaded to this drive. Once I changed the path of that command to drive C, everything compiled normally.
0
 
LVL 8

Author Closing Comment

by:pzozulka
ID: 39955458
Found own solution.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question