UWP项目生成错误: 未能使用“CompileXaml”任务的输入参数初始化该任务。“CompileXaml”任务不支持“PlatformXmlDir”参数。请确认该参数存在于此任务中,并且是可设置的...

本文解决了一个在UWP项目中遇到的问题:使用CompileXaml任务时出现错误,原因是Windows SDK的一个bug导致了不兼容的MSBuild任务组件残留。临时解决方案包括关闭所有运行中的Visual Studio和MSBuild进程,然后重新启动Visual Studio。

UWP项目生成错误: 未能使用“CompileXaml”任务的输入参数初始化该任务。“CompileXaml”任务不支持“PlatformXmlDir”参数。请确认该参数存在于此任务中,并且是可设置的公共实例属性。

项目属性: 目标版本 16299 最低版本 14393

解决方法:目标版本 15063 最低版本 14393

The issue is a bug in the Windows SDK that is causing an incompatible MSBuild tasks assembly to remain in the msbuild process and the tasks in this assembly don't work correctly with the MSBuild targets in the project file.

This bug is being investigated for an upcoming release of the Windows 10 SDK.

Meanwhile, the workaround is to close all running Visual Studio and MSBuild processes and the restart Visual Studio.

转载于:https://my.oschina.net/u/3744313/blog/1798622

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值