2009-11-09 2 views
2

wdproj에 문제가 있습니다. VS2008로 업그레이드했습니다. 그러나 그 대부분 irrelavant의VS2008에 VS2005 웹 배포 프로젝트 - ASPNET 컴파일러 오류

<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> 

:

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 파일의 관련 섹션이 모습입니다 :이 msbuild를를 사용하여 프로젝트를 컴파일하는 동안 내가지고있어 오류입니다 수동으로 해킹하지 않고 % (TempBuildDir)의 위치를 ​​변경/무시하는 것입니다.

답변

1

해결책은 간단합니다. .wdproj 파일을 웹 사이트 프로젝트 밖으로 이동 시키면 모든 것이 정상적으로 작동합니다.

관련 문제