-
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
Downgrade STJ to 8.0.4 #109818
Downgrade STJ to 8.0.4 #109818
Conversation
We can't yet rely on a STJ/8.0.5 package as desktop msbuild doesn't have binding redirects for it yet. - Suppress the src/tasks vulnerability warning as STJ isn't used at runtime for msbuild tasks. - Suppress the ones about HostModel's usage. We want to use a live STJ instead but that needs a separate PR (more work).
cc @am11 |
Tagging subscribers to this area: @dotnet/runtime-infrastructure |
Is there any ETA when VS will add that redirect? Community members were concerned about a month ago dotnet/diagnostics#4988 (comment). Perhaps the next time deprecation should be issued after VS has the redirects or perhaps it's the indication that we need better handling for these kind of CVE mitigations. |
The .NET Framework msbuild that ships inside VS already has the app.config redirect and that's part of the VS 17.12 stable release (which released two days ago). But our CI images also lag behind a couple weeks, usually a month.
We need to have a better mechanism here, agreed. Ie the System.Text.Json packageref under src/tasks should never be flagged as it's only use as a contract and not as a runtime implementation (if it's used as such then that's a bug in those msbuild tasks). We have one promising feature planned with the NuGet team called "Supplied by framework" which will help for .NETCoreApp case but not for .NET Framework as STJ isn't inbox there. There are different ways to tackle this:
This is top of mind for many of us... |
Thanks for the details.
This sounds like a best solution, just upvoted dotnet/msbuild#4834 😉 |
/ba-g don't wait on the long running wasm legs... unblock dotnet/sdk broken builds |
We can't yet rely on a STJ/8.0.5 package as the desktop msbuild that is used in our CI images doesn't have binding redirects for it yet.