CSC error CS2001: Source file 'C:\BuildAgent\work\12e5033e0ef0f0bf\TestApp.Data\..\BuildResources\CommonAssembly.cs' could not be found

I am using link inside a project with relative path.

<ItemGroup>

     <Compile Include="..\BuildResources\CommonAssembly.cs">

                     <Link>Properties\CommonAssembly.cs</Link>

      </Compile>
<ItemGroup>

 

 

 

Following is the build error receiving from teamcity: 

  • CSC error CS2001: Source file 'C:\BuildAgent\work\12e5033e0ef0f0bf\TestApp.Data\..\BuildResources\CommonAssembly.cs' could not be found.

instead of including file from C:\BuildAgent\work\12e5033e0ef0f0bf\BuildResources\CommonAssembly.cs,   teamcity is trying to use location  'C:\BuildAgent\work\12e5033e0ef0f0bf\TestApp.Data\..\BuildResources\CommonAssembly.cs'

 

How we can fix this issue ? 

0

Please sign in to leave a comment.