我是c ++ / WinRT的新手。我正在尝试使用Visual Studio Pro 2017在c ++ / WinRT下创建一个新的空白项目。但是它给出了一些编译错误:
1>------ Build started: Project: BlankApp2, Configuration: Debug Win32 ------
1>Windows.AI.MachineLearning.MachineLearningContract.winmd
1>C:\Program Files (x86)\Windows Kits\10\References\10.0.17763.0\Windows.AI.MachineLearning.MachineLearningContract\1.0.0.0\Windows.AI.MachineLearning.MachineLearningContract.winmd : warning C4335: Mac file format detected: please convert the source file to either DOS or UNIX format
1>C:\Program Files (x86)\Windows Kits\10\References\10.0.17763.0\Windows.AI.MachineLearning.MachineLearningContract\1.0.0.0\Windows.AI.MachineLearning.MachineLearningContract.winmd(1): fatal error C1004: unexpected end-of-file found
1>midlrt : command line error MIDL1003: error returned by the C preprocessor (2)
1>Done building project "BlankApp2.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
我将Visual Studio 2017更新为最新版本。我还使用了最新的WinRT。我可以使用Kenny Kerr的命令窗口示例代码中的代码构建控制台应用程序。但是无法构建由Visual Studio 2017向导创建的空白应用程序。任何帮助将不胜感激。