2017-11-27 11 views
0

を(C#)としてゲートチェックを実行しているとき、私は私のプロジェクトとの重複が整理のビットに持っているように見えるし、いつでもゲートされたビルドと実行でチェックし、私は次のエラーを取得します.....'CSC:CSC(0,0):エラーCS2001:ソースファイル[ファイル]が見つかりませんでした。

Summary 
| Phase 1 
15 error(s), 602 warning(s) 
Phase 1 - 15 error(s), 602 warning(s) 
CSC:CSC(0,0): Error CS2001: Source file 'd:\a\3\s\Main\SmartEndPointAssessment\SA.SEPA.Web.UI.Selenium\Features\AssessmentCentreEpaFeatures.feature.cs' could not be found. 
CSC:CSC(0,0): Error CS2001: Source file 'd:\a\3\s\Main\SmartEndPointAssessment\SA.SEPA.Web.UI.Selenium\Features\AssessmentCentreFeatures.feature.cs' could not be found. 
CSC:CSC(0,0): Error CS2001: Source file 'd:\a\3\s\Main\SmartEndPointAssessment\SA.SEPA.Web.UI.Selenium\Features\AssessorEpaFeatures.feature.cs' could not be found. 
CSC:CSC(0,0): Error CS2001: Source file 'd:\a\3\s\Main\SmartEndPointAssessment\SA.SEPA.Web.UI.Selenium\Features\AssessorFeatures.feature.cs' could not be found. 
CSC:CSC(0,0): Error CS2001: Source file 'd:\a\3\s\Main\SmartEndPointAssessment\SA.SEPA.Web.UI.Selenium\Features\ClientSettingsFeatures.feature.cs' could not be found. 
CSC:CSC(0,0): Error CS2001: Source file 'd:\a\3\s\Main\SmartEndPointAssessment\SA.SEPA.Web.UI.Selenium\Features\CustomFieldFeatures.feature.cs' could not be found. 
CSC:CSC(0,0): Error CS2001: Source file 'd:\a\3\s\Main\SmartEndPointAssessment\SA.SEPA.Web.UI.Selenium\Features\EmployerFeatures.feature.cs' could not be found. 
CSC:CSC(0,0): Error CS2001: Source file 'd:\a\3\s\Main\SmartEndPointAssessment\SA.SEPA.Web.UI.Selenium\Features\LoginFeatures.feature.cs' could not be found. 
CSC:CSC(0,0): Error CS2001: Source file 'd:\a\3\s\Main\SmartEndPointAssessment\SA.SEPA.Web.UI.Selenium\Features\MyProfileFeatures.feature.cs' could not be found. 
CSC:CSC(0,0): Error CS2001: Source file 'd:\a\3\s\Main\SmartEndPointAssessment\SA.SEPA.Web.UI.Selenium\Features\ReportFeatures.feature.cs' could not be found. 
CSC:CSC(0,0): Error CS2001: Source file 'd:\a\3\s\Main\SmartEndPointAssessment\SA.SEPA.Web.UI.Selenium\Features\SettingsFeatures.feature.cs' could not be found. 

これらのファイルはすべて私のローカルパスに存在し、私のソリューションはビルドされて実行されます。私がチェックインしようとすると、上記のエラーが出ます。

ソース管理のコードを見ると、ファイルは存在しません。これらのファイルには、ソリューションエクスプローラの隣に「+」アイコンがありません。

enter image description here

これは私がこれらのファイルを認識し、追加するには、ソースコントロールを取得するにはどうすればよい...

enter image description here

VSTSでフォルダのですか?あなたのscreenshootと、既にTFSのソース管理にチェックインしたファイルによると

おかげで、

+0

あなたは、TFSのsrcファイルへのアクセス権を持っているのですか?そうであれば、比較して、バージョンビルドに関してあなたが欠けているものを見てください。これをできるだけ早く修正するのを手助けできるチームリーダーがいますか? – MethodMan

+0

これらはソリューションの一部であるように見えますが、ソース管理下にはありません。右クリックしてソース管理に追加しようとしましたか? – JuanR

答えて

1

。怖い

Must not contain more than 259 Unicode characters for a single folder or file name. 

ソースリンクからあなたが短い、現在ではそのTFVC制限を持って、エラーの根本的な原因、:Version control paths

手動あなたのファイル/フォルダ構造を微調整する必要がありますこの問題を回避するにはTFSソース管理のを使用してください。 C:\Agent\_work\1\s\TestCaseProjectからC:\Agent\_work\1\s\TestCasePro

名前の長さやコンテナフォルダの長さを短くするか、フォルダの入れ子レベルを減らして、ファイルのフルパス長を減らします。したがって、完全なパスの長さを減らす。

また、この同様の質問を見てみることができます:MSBuild error "CSC : error CS2001: Source File 'x' could not be found" with Linked Files after upgrading to Visual Studio 2012

関連する問題