当使用 VS2017 创建有状态解决方案时,生成标准样板代码,由此产生的两个项目具有两个不同的 MSBuild 版本。该应用程序使用 MSBuild 1.5.0 版。该服务使用 MSBuild 版本 1.6.0(当前的“最新”)。
如果我以这种方式运行解决方案,它在我的本地 Service Fabric 群集上运行良好。
但是当我使用 NuGet 将应用程序的 MSBuild 更新到 1.6.0 后(因此应用程序和服务器项目使用相同),就会出现以下错误。
Severity Code Description Project File Line Suppression State
Error The OutputPath property is not set for project 'gt_strd5.sfproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' P follow a project-to-project reference to this project, this project has belatform='x64'. This error may also appear if some other project is trying toen unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform. gt_strd5 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 737
Severity Code Description Project File Line Suppression State
Error MSB4057 The target "CreateManifestResourceNames" does not exist in the project. gt_strd5 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 2630