wdproj
VS2008 にアップグレードしたときに問題が発生しました。これは、msbuild を使用してプロジェクトをコンパイルしようとしたときに発生するエラーです。
ASPNETCOMPILER : error ASPRUNTIME: The precompilation target directory
(C:\code\CCI\CORUS\Website\Website_DeploymentProject\TempBuildDir\) cannot be in the same tree as the source application directory (C:\code\Website\).
これは、私のファイルの関連セクションがどのwdproj
ように見えるかです:
<Project DefaultTargets="Build;AfterBuild" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.60403</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{36799864-6917-499B-814B-F542D3C6828B}</ProjectGuid>
<SourceWebPhysicalPath>..\SWebSite</SourceWebPhysicalPath>
<SourceWebProject>{283D5526-6B10-4CD1-B492-0283D351DC77}|WebSite\WebSite.csproj</SourceWebProject>
<SourceWebVirtualPath>/WebSite</SourceWebVirtualPath>
<DebugSymbols>true</DebugSymbols>
<OutputPath>$(BuildSourceCodePath)\WebSites\$(Configuration)</OutputPath>
<EnableUpdateable>true</EnableUpdateable>
<UseMerge>true</UseMerge>
<UseWebConfigReplacement>true</UseWebConfigReplacement>
<ValidateWebConfigReplacement>true</ValidateWebConfigReplacement>
</PropertyGroup>
ただし、手動でハッキングせずに %(TempBuildDir) の場所を何らかの方法で変更/オーバーライドするだけでよいため、これはほとんど無関係です$(MSBuildExtensionsPath)\Microsoft\WebDeployment\v9.0\Microsoft.WebDeployment.targets
。