MSBuild error: Cannot use a leading .. to exit above the top directory
Wondering if anyone can help with an issue we have with one project on TeamCity.
I've set up a deployment step to use MSBuild to deploy a .Net web applicaiton using Web Deploy,
The relevent error lines are as follows:
[11:18:50]Step 3/3: 3 of 3) Deploy to server (MSBuild) (1m:04s)
[11:18:52][Step 3/3] solution_folder\Website\Website.csproj.teamcity: Build target: Build (1m:01s)
[11:19:38][solution_folder\Website\Website.csproj.teamcity] AspNetPreCompile (15s)
[11:19:38][AspNetPreCompile] AspNetCompiler (15s)
[11:19:54][AspNetCompiler] ASPNETCOMPILER error ASPRUNTIME: Cannot use a leading .. to exit above the top directory.
[11:19:54][solution_folder\Website\Website.csproj.teamcity] Project carbonbrief_org\Website\Website.csproj.teamcity failed.
[11:19:54][Step 3/3] Step 3 of 3) Deploy to server (MSBuild) failed
I've checked the dll references in the csproj file and they all look OK - they go up one folder using ..\ like this:
<Reference Include="cms">
<HintPath>..\dll\cms.dll</HintPath>
</Reference>
But that's as expected as our structure is:
solution_folder
/dll
cms.dll
/website
Website.csproj
Many thanks if anyone can offer assistance.
Andy
Please sign in to leave a comment.