msbuild - 如何使用 MSBuild 4.0 构建 3.5 解决方案?

标签 msbuild tfsbuild

我一直在尝试将我们的一个项目迁移到 TFS 2010 Beta 2,以便从新的敏捷流程模板和测试和实验室管理器中受益,而无需迁移到 VS2010(因为它缺少 CF 支持)。问题是我们的 .NET 3.5 Compact Framework 项目未在 Team Build 2010 中构建。它提示缺少 AddHighDPIResource 任务。显然,它正在查看错误的 Microsoft.CompactFramework.Build.Tasks 程序集。

我已经尝试过提到的建议 here更改工具路径。它确实导致调用了正确的 msbuild.exe,但 Team Build 传递的 .rsp 文件引用了使用 .NET 4.0 的日志记录类构建。因此,msbuild.exe 会引发异常,提及在较新版本的 CLR 中构建的类。 我不知道如何解决这个问题,但如果我在本周末之前找不到解决方案或解决方法,管理层将迫使我们返回 TFS 2008。

最佳答案

此时实际上这并不是一个特定的 TFS 问题。我不太确定原因,但他们决定不在 Visual Studio 2010 中提供对智能设备开发的支持。因此,构建针对 .NET Compact Framework 的解决方案所需的组件不会安装在构建中机器。

摘自此处:http://msdn.microsoft.com/en-us/library/sa69he4t(VS.100).aspx

Visual Studio 2010 Beta 2 不支持智能设备开发。

Microsoft is committed to making Visual Studio a great development tool for the mobile device developer, and will deliver mobile device tools for Visual Studio 2010, but cannot share details now. For existing Visual Studio 2008 mobile developers, Microsoft released the Windows Mobile 6.5 Developer Tool Kit that works with the Windows Mobile 6 SDK.

Because Visual Studio 2010 Beta 2 does not support Smart Device Development, you cannot use the following features: .NET Compact Framework projects, Visual C++ device projects, smart device CAB projects, Device Emulator and Device Emulator Manager, testing tools for device projects, and Device Security Manager.

Smart device development is still supported in earlier versions of Visual Studio, such as Visual Studio 2008. For the more information about smart device projects, see Windows Mobile Developer Center and Smart Device Development in Visual Studio 2008.

关于msbuild - 如何使用 MSBuild 4.0 构建 3.5 解决方案?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1687420/

相关文章:

c++ - MSVC10/MP 在项目中跨文件夹构建非多核

WPF 应用程序在 vs2k8 中构建,但不在带有 msbuild 的命令行上

c# - Chrome 驱动程序 : disconnected: unable to connect to renderer

unit-testing - 从 tfs 构建中排除测试

tfs - 如何更改 MSBuild 在 Team Foundation Build 下使用的构建目录?

mstest - vstest.console.exe 可以运行 web 性能测试吗?

build - 在 TFSBuild.proj 中设置代码分析设置

delphi - 如何使用 MSBuild 和包含在存储库中的编译器构建 delphi 应用程序(未随 IDE 安装)

visual-studio-2015 - 从 2012 迁移后,TFS 2015 构建给出错误

c# - 升级到 NetCore 3.1 后找不到版本 (= 2.2.7) 的软件包 Microsoft.NETCore.App.Host.win-x64