-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corefx native build produces a warning on latest VS Preview (16.4.0 Preview 1.0 29311.250) #30845
Comments
Something must have changed on the VS's side. Let's keep this open and investigate further if this still happens with a later 16.4-preview version.
Sounds good but let's not do this before the issue disappeared. |
Update: after an investigation, I think this is a cmake issue where the generated project is not doing the right thing. So basically they define some Why was it not warning before? I cracked opened the MSBuild tasks dll for the new VS preview, it seems like they added validation that the We could change the model on how we build and install the native lib, by instead of calling MSBuild directly on install.vcxproj, we could call
However I don't know how much warnings or msbuild output we would lose by doing that. In the meantime I opened an issue on cmake: https://gitlab.kitware.com/cmake/cmake/issues/19737 So while I get a response, I think we should explicitly set |
CMake has merged the fix and apparently is going to make it to the next release of 3.15 -- I will follow their releases and close this issue once the fix is publicly accessible by installing a new version of cmake. |
Hi. Form me, the issue remains for CMake 3.15.3.
Seems the issue is linked to VS 2019 16.4.0 Preview 1.0 |
That is expected, the fix will be part of CMake 3.15.4 -- I don't know when it is expected to release, but from looking at the Milestone assigned to the issue I filed: https://gitlab.kitware.com/cmake/cmake/issues/19737 that milestone was done yesterday, so the release should be soon. |
@safern Unfortunately the bug remains for 3.15.4 |
Thanks, @Simon-IT, unfortunately the fix was incomplete and was not done for built-in cmake targets, like |
Thanks @safern for the support... |
FWIW, 3.16.0-rc1 is available and I do not see the errors with it installed. |
Thanks for testing @Gnbrkm41. I just updated the docs (dotnet/corefx@81c91fa) and close this issue as fixed. |
The build shows as failed even though it didn't really fail because the native step produced a warning so it keeps going. (We might need to propagate the TreatWarningsAsErrors to the native build command), but that is not the real issue there.
cc: @ViktorHofer @ericstj
FYI: @carlossanlop
The text was updated successfully, but these errors were encountered: