Service Fabric 解决方案不会构建
Service Fabric solution will not build
我得到以下信息。有人知道那是什么吗
C:***\packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.2\build\Microsoft.VisualStudio.Azure.Fabric.Application.targets(385,5):
error MSB4062: The "VerifyVersionCompatibility" task could not be
loaded from the assembly
C:***\packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.2\build\Microsoft.VisualStudio.Azure.Fabric.BuildTasks.dll.
Could not load file or assembly
'file:///C:***\packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.2\build\Microsoft.VisualStudio.Azure.Fabric.BuildTasks.dll'
or one of its dependencies. The system cannot find the file specified.
Confirm that the declaration is correct, that the assembly
and all its dependencies are available, and that the task contains a
public class that implements Microsoft.Build.Framework.ITask.
您的 VS 上似乎没有安装 Service Fabric SDK\Tools,或者您的版本与您的项目版本不兼容。一般在安装新版SF SDK时会出现这种情况。
检查你是否安装了它,你的版本是否兼容。
- 要检查安装的版本,您可以导航到 Visual Studio Extensions 并查找 Service Fabric Tools
- 如果您安装了 SF,我发现解决此问题的最简单方法是创建一个新的 SF 项目,将 .sfproj 的配置与旧配置进行比较并修复路径。
检查 "Microsoft.VisualStudio.Azure.Fabric.BuildTasks.dll" 文件是否存在于 "packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.2\build\" 文件夹中。
我有一条类似的错误消息,但我的是通过在 VSTS 中构建 Service Fabric 解决方案。问题是 BuildTasks.dll 没有上传到 VSTS。
我得到以下信息。有人知道那是什么吗
C:***\packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.2\build\Microsoft.VisualStudio.Azure.Fabric.Application.targets(385,5): error MSB4062: The "VerifyVersionCompatibility" task could not be loaded from the assembly C:***\packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.2\build\Microsoft.VisualStudio.Azure.Fabric.BuildTasks.dll. Could not load file or assembly 'file:///C:***\packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.2\build\Microsoft.VisualStudio.Azure.Fabric.BuildTasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
您的 VS 上似乎没有安装 Service Fabric SDK\Tools,或者您的版本与您的项目版本不兼容。一般在安装新版SF SDK时会出现这种情况。
检查你是否安装了它,你的版本是否兼容。 - 要检查安装的版本,您可以导航到 Visual Studio Extensions 并查找 Service Fabric Tools
- 如果您安装了 SF,我发现解决此问题的最简单方法是创建一个新的 SF 项目,将 .sfproj 的配置与旧配置进行比较并修复路径。
检查 "Microsoft.VisualStudio.Azure.Fabric.BuildTasks.dll" 文件是否存在于 "packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.2\build\" 文件夹中。
我有一条类似的错误消息,但我的是通过在 VSTS 中构建 Service Fabric 解决方案。问题是 BuildTasks.dll 没有上传到 VSTS。