-
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
Stub tasks that are not supported on .NET #9153
Stub tasks that are not supported on .NET #9153
Conversation
I added a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The strategy looks good--a few nits mentioned below, but I'm ok with adding the CP0007
exceptions for this, once the classes are static
.
Did you mean |
Sure did! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for keeping this up to date. We'll be taking a bunch of PRs now that we've forked for .NET 8/VS 17.8.
Following the pattern used for the `ResolveComReference` task, create stubs for .NET that provide a clear error message indicating the task is not supported on .NET. Fixes dotnet#3499.
Fixes #3499
Context
Following the pattern used for the
ResolveComReference
task, create stubs for .NET that provide a clear error message indicating the task is not supported on .NET.Changes Made
The following tasks have been updated:
AL
AspNetCompiler
GenerateBootstrapper
GenerateTrustInfo
GetFrameworkSdkPath
RegisterAssembly
ResolveComReference
ResolveNativeReference
UnregisterAssembly
UpdateManifest
WinMDExp
Additionally, the Utilities project has been updated so thatAppDomainIsolatedTask
(base class ofAppDomainIsolatedTaskExtension
and a dependency ofResolveComReference
) is included for '.NETFramework' only.Testing
Tested on macOS and Windows 11 with test project files (attached as TaskTest.zip.)
Notes
I don't have a full understanding of the interactions of the preprocessor symbols. (e.g. Is
FEATURE_APPDOMAIN
only valid forNETFRAMEWORK
?) There may be improvements that can be made to the conditionals in the source and in the .targets file.Should unit tests be added for the stubs?