I tried that and appear to have introduced an error.
The wxwidget sources appears to all build fine.
Environment variable WXWIN was set to C:\WXWIDGETS\3.2.0 I had that set for 3.1.7, but this time I could not find WXWIN. So I set it and do not understand how it worked at all.
I recall setting a PATH environment variable, but don't see anything in PATH that references the wxWidgets directory.
Opened the wxwidgets hello world project and was rewarded with this information:
[6:32:32 PM] (wxwidget_01) Project does not reference Xamarin.Forms.
I don't know what it means.
With Release mode set, do a Build -> Rebuild Solution to get:
Rebuild started...
1>------ Rebuild All started: Project: wxwidget_01, Configuration: Debug x64 ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(39,5): warning MSB4211: The property "IntermediateOutputPath" is being set to a value for the first time, but it was already consumed at "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets (38,5)".
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.BuildSteps.Targets(30,5): warning MSB4211: The property "DebugType" is being set to a value for the first time, but it was already consumed at "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.BuildSteps.Targets (29,5)".
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(373,5): warning MSB4211: The property "CleanFile" is being set to a value for the first time, but it was already consumed at "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets (38,5)".
1>declare_event_table.cpp
1>wxwidget_01.cpp
1>Generating Code...
1>wxwidget_01.vcxproj -> E:\CODE\WX\wxwidget_01\x64\Debug\wxwidget_01.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
It runs and pops the dialog but there are warnings in there.
Switch to Build -> Batch Build, and enable to two Release configurations.
Build started...
------ Build started: Project: wxwidget_01, Configuration: Release Win32 ------
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(39,5): warning MSB4211: The property "IntermediateOutputPath" is being set to a value for the first time, but it was already consumed at "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets (38,5)".
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.BuildSteps.Targets(30,5): warning MSB4211: The property "DebugType" is being set to a value for the first time, but it was already consumed at "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.BuildSteps.Targets (29,5)".
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(373,5): warning MSB4211: The property "CleanFile" is being set to a value for the first time, but it was already consumed at "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets (38,5)".
wxwidget_01.cpp
E:\CODE\WX\wxwidget_01\wxwidget_01.cpp(3,10): fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
Done building project "wxwidget_01.vcxproj" -- FAILED.
------ Build started: Project: wxwidget_01, Configuration: Release x64 ------
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(39,5): warning MSB4211: The property "IntermediateOutputPath" is being set to a value for the first time, but it was already consumed at "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets (38,5)".
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.BuildSteps.Targets(30,5): warning MSB4211: The property "DebugType" is being set to a value for the first time, but it was already consumed at "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.BuildSteps.Targets (29,5)".
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(373,5): warning MSB4211: The property "CleanFile" is being set to a value for the first time, but it was already consumed at "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets (38,5)".
wxwidget_01.cpp
E:\CODE\WX\wxwidget_01\wxwidget_01.cpp(3,10): fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
Done building project "wxwidget_01.vcxproj" -- FAILED.
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
The key item appears to be:
Cannot open include file: 'wx/wxprec.h': No such file or directory