Why does C# encounter this error as to the CSC file?

AndreaNobili picture AndreaNobili · Jul 16, 2014 · Viewed 61.7k times · Source

I am pretty new in C# development and I have the following problem.

When I try to build the application on which I am working I obtain the followings errors message:

Error   2   Source file 'Log\LogUserManager.cs' could not be found  C:\Develop\MyFramework4.0\MyManagerCSharp\CSC   MyManagerCSharp
Error   8   Source file 'AntiPhishing.cs' could not be found    C:\Develop\EarlyWarning\public\Implementazione\Ver2\UnitTestProject\CSC UnitTestProject

It seeams to me that these errors appeared after an SVN update.

Why? What exactly means? If I click on the error line it don't take me to the code line where the error appear. What is the CSC file? How can try to fix this issue?

Tnx

Answer

Padrus picture Padrus · Jul 16, 2014

These are not errors in the code but errors in the references of your project. Check that the references are indeed located where they point.

It is possible that when doing your SVN update, some source files have been moved but you didn't update your .csproj containing the references to these files.