La mia linea di comando MSBuild è la seguente:errore della riga di comando MSBuild - Silverlight 4 SDK non è installato
msbuild e:\code\myProject.csproj /p:Configuration=Debug /p:OutputPath=bin/Debug /p:Platform=x86 /p:PlatformTarget=x86
Il progetto si basa bene sulla mia macchina di sviluppo in VS2010, ma non con il comando precedente. Sto facendo funzionare Win 7 64 - Bit. Ricevo un errore che dice che non ho installato l'SDK Silverlight 4, ma lo faccio. I "ho letto alcuni post che si deve impostare la piattaforma = 86 ma inutilmente Ecco il messaggio di errore per intero:.
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
apprezzo l'aiuto di nessuno Grazie
Così hai installato il Silverlight 4 SDK? – leppie
Sì, questa è la mia macchina di sviluppo. Ho Visual Studio 2010 e Silverlight Tools per il 2010 che include l'SDK. Vedo anche i file SDK in questa directory: C: \ Programmi (x86) \ Microsoft SDK \ Silverlight \ v4.0. – Ned
Sono stato in grado di ottenere una build di successo sul mio computer di sviluppo Win7 a 64 bit eseguendo MSBuild dalla directory c: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 anziché da c: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319. Tuttavia, sto ancora ricevendo lo stesso errore sul mio build server che è Windows Server 2008 a 64 bit che esegue MSBuild da questa directory. – Ned