当使用VS2017创建有状态解决方案并生成标准样板代码时,生成的两个项目具有不同的MSBuild版本。
应用程序使用MSBuild版本1.5.0。
服务使用MSBuild版本1.6.0(当前的“最新”版本)。
如果按照这种方式运行解决方案,则可以在本地Service Fabric集群上正常运行。
但是,当我使用NuGet将应用程序的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