Silverlight with TeamCity

Hi all,

I've being trying to build a project that is using silverlight, I keep getting the following error:

C:\Inetpub\wwwroot\AutoBuild\Root\Live\ChartAnalyzer\ChartAnalyzerSilverlight\ChartAnalyzerSilverlight.csproj(478, 11): error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\Silverlight\v2.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

What do I need to do to fix this? Do I need to install something to fix this? Any help would be really appreciated.

4 comments
Comment actions Permalink

Hello,

  First, please check you can run the build via command line without errors
  Then, try to stop build agent service and run the build agent via command-line (agent.bat script).
  If this helps, check user permissions for the windows service you run your build under. Or change
  the service user to someone who can run the build from command line without problems.

  Hope, this helps,
  KIR

0
Comment actions Permalink

Could you please check build agent service account.
Check you running a build inder .NET x86
Thanks!

0
Comment actions Permalink

Hi Eugene,

I've checked this and I am using .NET x86. I'm using MsBuild to build the project, the problem is I'm missing this file:
C:\Program Files\MSBuild\Microsoft\Silverlight\v2.0\Microsoft.Silverlight.CSharp.targets
Do you know where I can get this?

0
Comment actions Permalink

What account is used for build agent?Please make sure you use real user accout, but not LOCAL SYSTEM one.

Could you please check build agent running machine contains Silverlight.

Does you build script succeededs is start msbuild.exe from build agent checkout directory under build agent's user account? (note: Stop build agent before the try)

Thanks!

0

Please sign in to leave a comment.