[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Compile errors

Posted on 2014-03-14
11
Medium Priority
?
244 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 84

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
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…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

834 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