Closed oold closed 5 months ago
Note: Your target framework (net5.0-windows) is no longer supported.
System.Text.Encodings.Web being missing suggests you're running on a compiler that's older than one we test with. What .NET SDK or VS version are you building with?
Running on the latest VS 16 version.
It works for me:
Can you send more repro details?
Actually, I could repro it after filling in the Nativemethods text files like you described.
Actual behavior
Building the project fails to generate the sources when a NativeMethods.json file exists.
The following warning is emitted:
Expected behavior
The sources are successfully generated during the build.
Repro steps
NativeMethods.txt
content:E* FOLDERID ICON_ MAX_PATH MESSAGEBOXRESULT PBST S_ SEEMASK SHOW_WINDOW_CMD TASKDIALOG_ELEMENTS TASKDIALOGMESSAGES TD WIN32_ERROR WINDOW_EXSTYLE WM*
Context
LangVersion
(if explicitly set by project): -