Solved

Compile errors

Posted on 2014-03-14
11
229 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
  • 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
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
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 80

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 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