Mi línea de comandos de MSBuild es el siguiente:de error de línea de comandos de MSBuild - Silverlight 4 SDK no está instalado
msbuild e:\code\myProject.csproj /p:Configuration=Debug /p:OutputPath=bin/Debug /p:Platform=x86 /p:PlatformTarget=x86
El proyecto se basa bien en mi máquina de desarrollo en VS2010, pero no con el comando anterior. Estoy ejecutando Win 7 64 - Bit. Me aparece un error que dice que no tengo instalado el SDK de Silverlight 4, pero lo hago. I "He leído algunos mensajes que usted tiene que establecer la Plataforma = 86, pero en vano Aquí está el mensaje de error en su totalidad:.
Microsoft (R) Build Engine Version 4.0.30319.1 [Microsoft .NET Framework, Version 4.0.30319.1] Copyright (C) Microsoft Corporation 2007. All rights reserved. Build started 6/8/2010 4:03:38 PM. Project "E:\code\dashboards\MyProject2010\MyProject2010.Web\MyProject2010 .web.csproj" on node 1 (default targets). GenerateTargetFrameworkMonikerAttribute: Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output fi les are up-to-date with respect to the input files. CoreCompile: Skipping target "CoreCompile" because all output files are up-to-date with resp ect to the input files. CopyFilesToOutputDirectory: Copying file from "obj\Debug\MyProject.Web.dll" to "bin\Debug\MyProject.Web .dll". MyProject2010.web -> E:\code\dashboards\MyProject2010\MyProject2010.Web \bin\Debug\MyProject.Web.dll Copying file from "obj\Debug\MyProject.Web.pdb" to "bin\Debug\MyProject.Web .pdb". Project "E:\code\dashboards\MyProject2010\MyProject2010.Web\MyProject2010 .web.csproj" (1) is building "E:\code\dashboards\MyProject2010\MyProject20 10.Client\MyProject2010.Client.csproj" (2) on node 1 (GetXapOutputFile target( s)). C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight .Common.targets(104,9): error : The Silverlight 4 SDK is not installed. [E:\cod e\dashboards\MyProject2010\MyProject2010.Client\MyProject2010.Client.cspr oj] Done Building Project "E:\code\dashboards\MyProject2010\MyProject2010.Clie nt\MyProject2010.Client.csproj" (GetXapOutputFile target(s)) -- FAILED. Done Building Project "E:\code\dashboards\MyProject2010\MyProject2010.Web\ MyProject2010.web.csproj" (default targets) -- FAILED. Build FAILED. "E:\code\dashboards\MyProject2010\MyProject2010.Web\MyProject2010.web.csp roj" (default target) (1) -> "E:\code\dashboards\MyProject2010\MyProject2010.Client\MyProject2010.Clie nt.csproj" (GetXapOutputFile target) (2) -> (GetFrameworkPaths target) -> C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlig ht.Common.targets(104,9): error : The Silverlight 4 SDK is not installed. [E:\c ode\dashboards\MyProject2010\MyProject2010.Client\MyProject2010.Client.cs proj] 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.39
aprecio la ayuda de nadie Gracias
¿Así que instaló el SDK de Silverlight 4? – leppie
Sí, esta es mi máquina de desarrollo. Tengo Visual Studio 2010 y Silverlight Tools for 2010, que incluye el SDK. También veo los archivos SDK en este directorio: C: \ Archivos de programa (x86) \ Microsoft SDKs \ Silverlight \ v4.0. – Ned
Pude obtener una compilación exitosa en mi máquina de desarrollo Win7 de 64 bits ejecutando MSBuild desde el directorio c: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 en lugar de hacerlo desde c: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319. Sin embargo, sigo recibiendo el mismo error en mi servidor de compilación, que es Windows Server 2008 de 64 bits que ejecuta MSBuild desde este directorio. – Ned