“Microsoft.Build.Tasks.Xaml.PartialClassGenerationTask“ task could not be loaded from the assembly

傷城~ 2022-10-19 04:11 167阅读 0赞

VS 错误:

The “Microsoft.Build.Tasks.Xaml.PartialClassGenerationTask” task could
not be loaded from the assembly C:\Program Files (x86)\Microsoft
Visual
Studio\2019\Enterprise\MSBuild\Current\Bin\amd64\XamlBuildTask.dll.
Could not load file or assembly ‘file:///C:\Program Files
(x86)\Microsoft Visual
Studio\2019\Enterprise\MSBuild\Current\Bin\amd64\XamlBuildTask.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.

解决方案,请修改Visual Studio安装(使用Visual Studio安装程序),在“单个组件”选项卡中查找“ Windows Workflow Foundation”并选择它。
在这里插入图片描述

发表评论

表情:
评论列表 (有 0 条评论,167人围观)

还没有评论,来说两句吧...

相关阅读