-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Remove deprecated engine code #8826
Comments
Would solve #8822 as well. |
Last I checked, Visual Studio still depended on it and it had live dependencies into the current code so we couldn't just ship a frozen-in-time version. However, we should definitely look and see if VS has dropped its dependencies (wouldn't that be nice!). |
can you clarify? meaning it has to change to adapt to changes in the current code? the M.B.F interface itself should be stable, of course. I'm curious what VS needs it for. BTW an example of something vaguely analogous -- System.Data.SqlClient is at a high servicing bar, though of course fully supported. So we deleted it from main, and now service it out of the 6.0 branch indefinitely. I'm not sure of the long term plan, but I believe there was discussion of a "servicing" repo to gather such things in, as there are numerous other libraries like that in runtime. Not suggesting that would be the right plan here, just that it's doable to remove from main code that is still supported. |
Ah, you're quite right! I had mistakenly thought that Microsoft.Build.Engine depended on Microsoft.Build, but it doesn't. Conversion does, though--and with |
(not maintained here - moved to ticket description) Course of action:
|
I'm a bit surprised that you're only adding docs and not ObsoleteAttribute. (It doesn't have AttributeTargets.Assembly though.) ObsoleteAttribute on .NET Framework does not support separately-suppressible diagnostic codes, but IIRC it's possible to define an internal ObsoleteAttribute with this support and it'll be recognised by the compiler. |
To deliver the message ASAP it's easier to follow the lowest risk path (so no breaking changes). |
Backward compatibility note
Please use Visual Studio version 17.12 and lower to upgrade pre-msbuild project format.
Context
About 15 years ago a new MSBuild engine and API was created and the previous code was deprecated with very high servicing bar.
Keeping the code around (and publishing the packages) is a nontrivial liability especially as we try to model and improve our security.
Business justification
Maintanance cost
Engineering culture
Risks
External customers breaking
The packages are published on nuget (Microsoft.Build.Engine, Microsoft.Build.Conversion.Core) with nontrivial download count.
Mitigation(s):
Internal customers breaking
We have identified 7 groups of usages accross partner teams:
Mitigation(s):
Close cooperation with all affected partner teams:
Course of action
Update public documentation to make the fate very clear: @maridematte, sample: Test deprecation comment on BuildItemGroup.cs #10166. Done: Added deprecation messages #10198 & Fix badly formed deprecation xml comments #10233
Microsoft.Build.Conversion.Core
VC.MSBuild.Upgrade
(https://dev.azure.com/devdiv/DevDiv/_git/VS/pullRequest/550640#1717097236)Microsoft.Build.Engine
Untangle Microsoft.Build.BuildEngine usages in other repos
Removal PRs:
After actions
Background - Original ticket content
This was deprecated about 15 years ago and changes have long been at a high servicing bar. Can the code be removed from main now and serviced out of older branches? (This is done in runtime repo for some packages.) This would simplify the repo, speed up build and tests, and reduce risk of inadvertent changes to it. Likely it would make it easier to switch on new analyzers and warnings in the repo as the old code wouldn't need to be excluded.
The text was updated successfully, but these errors were encountered: