Popular Categories
« What is an Action Policy? | Main | New Rules and Message Capturing for Validation in Lokad Shared »
Friday
Nov282008

Silverlight + Continous Integration + 64 bit

Problem - Missing Silverlight.CSharp.targets

MSBuild fails with the error message:

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.

Solution

Copy contents of the first folder to the second one:

C:\Program Files (x86)\MSBuild\Microsoft\Silverlight
C:\Program Files\MSBuild\Microsoft\Silverlight

Problem - Missing Silverlight 2 SDK

MSBuild fails with the error:

Microsoft Silverlight SDK 2 is not installed

Solution

Hack Microsoft.Silverlight.CSharp.targets and add:

<PropertyGroup>
  <TargetFrameworkDirectory>
C:\Program Files (x86)\Microsoft SDKs\Silverlight\v2.0\Reference Assemblies
  </TargetFrameworkDirectory>
</PropertyGroup>

Result

Continuous integration for Autofac build (rebuild+test) targeting Silverlight is online.