MSBuild error CS2001 : Source file could not be found
Hi everyone,
I'm trying to build an MSBuild project with several stes consisting of one solution , 3 projects and some cmd line scripts and keep getting the same error ... The TeamCity 6.0.3 is running on Windows 2008 R2 (x64). If I build it from inside VS2010 everything is fine. Below is the relevant part :
[15:42:44]: "D:\TeamCity\Wald2SVN\trunk\wald2.csproj_deploy\wald2.csproj_deploy.wdproj.teamcity" (Build target) (1) ->
[15:42:44]: "D:\TeamCity\Wald2SVN\trunk\wald2\wald2.admin.csproj" (default target) (2) ->
[15:42:44]: (CoreCompile target) ->
[15:42:44]: CSC : error CS2001: Source file 'App_GlobalResources\Strings.pl.designer.cs' could not be found [D:\TeamCity\Wald2SVN\trunk\wald2\wald2.admin.csproj]
[15:42:44]: CSC : error CS2001: Source file 'App_GlobalResources\Strings.designer.cs' could not be found [D:\TeamCity\Wald2SVN\trunk\wald2\wald2.admin.csproj]
[15:42:44]: CSC : error CS2001: Source file 'App_GlobalResources\Strings.en-GB.designer.cs' could not be found [D:\TeamCity\Wald2SVN\trunk\wald2\wald2.admin.csproj]
[15:42:44]: CSC : error CS2001: Source file 'Controllers\AccountsController.cs' could not be found [D:\TeamCity\Wald2SVN\trunk\wald2\wald2.admin.csproj]
[15:42:44]: 54 Warning(s)
[15:42:44]: 4 Error(s)
[15:42:44]: Time Elapsed 00:00:21.67
[15:42:44]: Step failed
Inside D:\TeamCity\Wald2SVN\trunk\wald2\wald2.admin.csproj the part looking for the missing files is this :
<ItemGroup>
<Compile Include="App_GlobalResources\Strings.pl.designer.cs">
<DependentUpon>Strings.pl.resx</DependentUpon>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
<Compile Include="App_GlobalResources\Strings.designer.cs">
<DependentUpon>Strings.resx</DependentUpon>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
<Compile Include="App_GlobalResources\Strings.en-GB.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.en-GB.resx</DependentUpon>
</Compile>
<Compile Include="Controllers\AccountsController.cs" />
...
Any idea is most welcome. Trying to look around in the forum for something similar but nothing.
I will happily provide more details...
Thank you,
Tudor.
Please sign in to leave a comment.