Visual studio 2015 目标为'的通用应用程序;发布';失败,出现编译器错误ILT0021方法Windows.Graphics.Display.DisplayInformation未找到

Visual studio 2015 目标为'的通用应用程序;发布';失败,出现编译器错误ILT0021方法Windows.Graphics.Display.DisplayInformation未找到,visual-studio-2015,windows-10,win-universal-app,Visual Studio 2015,Windows 10,Win Universal App,我的生成目标为“Release”的小型通用应用程序项目失败,编译器错误为ILT0021 Method System。找不到可为空的Windows.Graphics.Display.DisplayInformation.get_DiagonalSizeInches。非常奇怪,构建目标“调试”显示没有问题 使用 视窗10 Visual Studio 2015 构建目标“Release x468”我确定了它。它是项目模板(template10)和“使用本机.NET本机工具链编译”的组合。标准Visua

我的生成目标为“Release”的小型通用应用程序项目失败,编译器错误为ILT0021 Method System。找不到可为空的Windows.Graphics.Display.DisplayInformation.get_DiagonalSizeInches。非常奇怪,构建目标“调试”显示没有问题

使用

视窗10

Visual Studio 2015


构建目标“Release x468”

我确定了它。它是项目模板(template10)和“使用本机.NET本机工具链编译”的组合。标准Visual Studio UWP项目模板正在使用本机工具链,但不是template10中的项目模板。您好,那么解决方法是什么?你能把它作为答案贴出来吗?