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

MSBuild and Silverlight 2.0 Beta 1 running in Team City

If you want to integrate Silverlight 2.0 Beta 1 in your Continuous Integration system, in my case Team City), it is better to read the readme of Silverlight 2.0 Beta 1 SDK here.

The important part in our case is the following one:

Using MSbuild to build a solution in a command line doesn’t copy the Silverlight project output to the linked web project

We don’t have complete support for command line msbuild usage to build solutions with Silverlight projects which also includes 64 bits MSBuild support.

So basically I made a copy manually from the source of the Silverlight project to the output path of my MSBuild project:

    <!--HACK Fix the missing copy of ClientBin -->

    <!--http://www.microsoft.com/silverlight/resources/readme.aspx?v=2.0&sdk=true -->

    <!--Using MSbuild to build a solution in a command line doesn’t copy the Silverlight project output to the linked web project

        We don’t have complete support for command line msbuild usage to build solutions with Silverlight projects which also includes 64 bits MSBuild support.

    -->

    <Message Condition=" '$(Configuration)|$(Platform)' == 'Staging|AnyCPU' Text="### HACK Silverlight MSBUILD ###" />

    <MakeDir Condition=" '$(Configuration)|$(Platform)' == 'Staging|AnyCPU' " Directories="$(OutputPath)\ClientBin" ContinueOnError="true" />

    <Copy Condition=" '$(Configuration)|$(Platform)' == 'Staging|AnyCPU' " SourceFiles="$(MSBuildProjectDirectory)\..\..\Sources\VideoPlayer\ClientBin\VideoPlayer.xap" DestinationFiles="$(OutputPath)\ClientBin\VideoPlayer.xap" />

    <!--EndHACK -->

Now my web application is compiled, deployed and works!

Comments

Laurent Kempé said:

First you need to un-install the Silverlight 2.0 Beta 1 SDK from the build server! Then you can download

# June 7, 2008 9:57 AM

Raj said:

Thats's good to know that you were able to make  CI work with Team City especially with a silverlight project. When I am running the build , I am getting an error "error MSB4044: The "CompileXaml" task was not given a value for the required parameter "TargetFrameworkDirectory"."

It would be great if you can write a tutorial for the rest of us to show how to setup a build server alogn with the code.

Thanks in advance.

Raj

# October 9, 2008 3:51 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)