问题描述
我在C#开发中还很陌生,并且存在以下问题.
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
在我看来,这些错误是在SVN更新后出现的.
It seeams to me that these errors appeared after an SVN update.
为什么?到底是什么意思?如果我单击错误行,则不会将我带到出现错误的代码行.什么是 CSC 文件?如何尝试解决此问题?
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
推荐答案
这些不是代码中的错误,而是项目引用中的错误.检查引用确实位于它们指向的位置.
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.
在进行SVN更新时,可能已移动了一些源文件,但没有更新包含对这些文件的引用的.csproj.
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.
这篇关于为什么C#会遇到有关CSC文件的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!