Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
cannot compile C file 'file-name' with /ZW option
Remarks
Only C++ source code files can be passed to the compiler when you use the /ZW (Windows Runtime compilation) compiler option.
By default, all files in a C++ Universal Windows platform (UWP) project are compiled by using the /ZW compiler option. The /ZW option enables the Windows Runtime compiler extensions, or C++/CX. Unfortunately, /ZW doesn't work on C source files.
You can disable C++/CX compilation selectively for C files in Visual Studio projects. Select your C file in Solution Explorer, then right-click to choose Properties from the shortcut menu. In the Property Pages dialog, select the Configuration Properties > C/C++ -> General property page. Set the Consume Windows Runtime Extension property to No. Choose OK to save your changes.
For more information, see Component Extensions for .NET and UWP.