gpt4 book ai didi

silverlight - MSBuild 命令行错误 - Silverlight 4 SDK 未安装

转载 作者:行者123 更新时间:2023-12-03 07:48:14 25 4
gpt4 key购买 nike

我的MSBuild命令行如下:

msbuild e:\code\myProject.csproj /p:Configuration=Debug /p:OutputPath=bin/Debug /p:Platform=x86 /p:PlatformTarget=x86

该项目在我的 VS2010 开发机器上构建得很好,但不能使用上面的命令。我运行的是 Win 7 64 位。我收到一条错误消息,提示我没有安装 Silverlight 4 SDK,但我已经安装了。我读过一些文章,您必须设置 Platform=x86 但无济于事。以下是完整的错误消息:

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 files are up-to-date with respect to the input files.CoreCompile:Skipping target "CoreCompile" because all output files are up-to-date with respect 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\MyProject2010.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:\code\dashboards\MyProject2010\MyProject2010.Client\MyProject2010.Client.csproj]Done Building Project "E:\code\dashboards\MyProject2010\MyProject2010.Client\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.csproj" (default target) (1) ->"E:\code\dashboards\MyProject2010\MyProject2010.Client\MyProject2010.Client.csproj" (GetXapOutputFile target) (2) ->(GetFrameworkPaths target) ->  C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.Common.targets(104,9): error : The Silverlight 4 SDK is not installed. [E:\code\dashboards\MyProject2010\MyProject2010.Client\MyProject2010.Client.csproj]    0 Warning(s)    1 Error(s)Time Elapsed 00:00:00.39

我感谢任何人的帮助。谢谢。

最佳答案

我发现了这一点 - MSBuild 中有一个设置,您可以为 MSBuild 选择 x64 或 x86 环境(在设置 MSBuild 标志的同一页面中) - 将其设置为 x86,一切都会工作。

关于silverlight - MSBuild 命令行错误 - Silverlight 4 SDK 未安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3001083/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com