silverlight   发布时间:2022-05-03  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Solution: Getting Silverlight to build on Team Foundation Build Services 2010大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

This is SSW’s first time using Team Build 2010 to automatically create a Silverlight application. In the past the guys have used Cruse Control, but we want to move to a pure TFS 2010 solution. When on

This is SSW’s first time using Team Build 2010 to automatically create a Silverlight application. In the past the guys have used Cruse Control,but we want to move to a pure TFS 2010 solution. When one of our developers (Allan) added a Silverlight 3 project to the Solution our build server spat it out.

Solution: Getting Silverlight to build on Team Foundation Build Services 2010


figure: Build SSW.sqlDeploy_20100303.8 Failed when trying to build a Silverlight application.

Usually the person who broke the build should Now be the one responsible for babysitTing it until the next person breaks the build. In this case we had not agreed that as part of our project prep so I think I will need to wait until the retrospective at the end of our current,and first for this project,sprint.

Problem 1: First time for Silverlight compile on the Build Server.

Because Allan added the first Silverlight 3 application to the Solution the build server hiccupped as only the Silverlight 2 SDK was installed on it and it was a Silverlight 3 project. I have highlighted below where the problem was located.

Solution: Getting Silverlight to build on Team Foundation Build Services 2010


figure: The Silverlight targets file was not found on the build server.

I downloaded and installed the Silverlight 3 SDK from Microsoft,and hoped all would be well.

But the build Failed again…

Solution: Getting Silverlight to build on Team Foundation Build Services 2010


figure: SSW.sqlDeploy_20100303.10 Failed still trying to find targets.

Problem 2: This was due to the web targets not being installed.

At this point I got fed up and copied the contents of my local directory “C:Program Files (x86)MSBuildMicrosoftVisualstudiov10.0” to the same folder on the build server.

Solution: Getting Silverlight to build on Team Foundation Build Services 2010


figure: MSBuild Could not find the web targets.

But the build Failed again…

Solution: Getting Silverlight to build on Team Foundation Build Services 2010


figure: SSW.sqlDeploy_20100303.11 Failed again trying to build Silverlight.

Problem 3: Can’t build Silverlight 3 projects with MSBuild 64-bit (the default)

There is a nasty bug in the Silverlight SDK that means that you can’t build using the MSBuild 64-bit process. But on a 64-bit OS,the 64-bit MSBuild is used by default… so how to change it.

Solution: Getting Silverlight to build on Team Foundation Build Services 2010


figure: Why is it saying that the SDK is not installed… oh,a bug.

This is an easy fix,but a hard to find solution. if you Open up your “build process deFinition” and expand the Advanced tree you will see that there is a MSBuild Platform option that is set to “Auto”,change this to “X86”.

Solution: Getting Silverlight to build on Team Foundation Build Services 2010


figure: You MUST set the MSBuild Platform to X86 to build a Silverlight project,

and the build Failed again…

Solution: Getting Silverlight to build on Team Foundation Build Services 2010


figure: SSW.sqlDeploy_20100304.04 Failed again trying to do code analysis.
Note: This was only run 20 or so minutes after the last build,but my build server happens to be in Australia

Solution: Getting Silverlight to build on Team Foundation Build Services 2010

Problem 4: Can’t run Code Analysis on Build Server

Now I get Code Analysis errors…

Solution: Getting Silverlight to build on Team Foundation Build Services 2010


figure: Why would I be getTing code analysis errors? Could it be that it is not installed?

To fix this one I just bit the bullet and installed Visual studio 2010 onto the Build server,and…

Solution: Getting Silverlight to build on Team Foundation Build Services 2010


figure: successful builds give me a warm fuzzy feeling…

Conclusion

The things that should be installed on the build server are:

@H_944_154@
  • Team Foundation Build services 2010 or 2008 or 2005
  • Visual studio 2010/2008/2005
  • Add-on’s for TFS or Visual studio that may be required to execute the build.
  • The options you should set for any Build that has 32-bit dependencies that are causing a problem:

    @H_944_154@
  • You MUST set the MSBuild Platform to X86 to build a project that can’t be built in 64-bit MSBuild.
  • 大佬总结

    以上是大佬教程为你收集整理的Solution: Getting Silverlight to build on Team Foundation Build Services 2010全部内容,希望文章能够帮你解决Solution: Getting Silverlight to build on Team Foundation Build Services 2010所遇到的程序开发问题。

    如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

    本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
    如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。