Sponsors

News

Jobping Laurent Kempé MVP JetBrains Academy Member Certified ScrumMaster

Contact

My status

View Laurent Kempé's profile on LinkedIn
XING
twitter
facebook


Xbox 360



Map

Locations of visitors to this page

.NET Dudes

Family

French .NET Dudes

Friends

Jobping

Links

Tech Head Brothers

NoteToSelf: aspnet_merge.exe, Team City and Web Deployment for Visual Studio 2008

I had to modify the Microsoft.WebDeployment.targets file to be able to compile through Team City the Web Deployment 2008 project !

<!-- Changed KEL ExePath="$(FrameworkSDKDir)bin" -->

    <Target Name="AspNetMerge" Condition="'$(UseMerge)' == 'true'" DependsOnTargets="$(MergeDependsOn)">
        <AspNetMerge
          ExePath="C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin"
          ApplicationPath="$(TempBuildDir)"
          KeyFile="$(_FullKeyFile)"
          DelaySign="$(DelaySign)"
          Prefix="$(AssemblyPrefixName)"
          SingleAssemblyName="$(SingleAssemblyName)"
          Debug="$(DebugSymbols)"
          Nologo="$(NoLogo)"
          ContentAssemblyName="$(ContentAssemblyName)"
          ErrorStack="$(ErrorStack)"
          RemoveCompiledFiles="$(DeleteAppCodeCompiledFiles)"
          CopyAttributes="$(CopyAssemblyAttributes)"
          AssemblyInfo="$(AssemblyInfoDll)"
          MergeXmlDocs="$(MergeXmlDocs)"
          ErrorLogFile="$(MergeErrorLogFile)"
          />

        <CreateItem Include="$(TempBuildDir)**\*.*">
            <Output ItemName="PrecompiledOutput" TaskParameter="Include" />
        </CreateItem>
    </Target>

Posted: Feb 29 2008, 06:50 PM by lkempe | with 2 comment(s) |
Filed under:

Comments

Jerome said:

Thank U. It's my problem too.You gave me the special method that's usefully for me.

# June 15, 2009 11:03 AM

Geoff said:

I had the same problem.  Your post led me to the true solution... which is that msbuild initializes the $(FrameworkSDKDir) property based on a registry key that is created when the Windows SDK for .NET 3.5 in installed (or now, Windows 7 SDK for .NET 3.5 SP1).  Without the SDK installed, the property is empty.

For me the solution was to install the Windows SDK on the build server with TeamCity.  Modifying the targets file for the web deployment project was unnecessary once the SDK was installed, and is a much preferred option.

# March 23, 2010 3:53 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)