-
-
Notifications
You must be signed in to change notification settings - Fork 40
Simplify API surface area #228
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
base: main
Are you sure you want to change the base?
Conversation
…for aborted builds
/// <param name="buildParameters">All of the settings which must be specified to start a build</param> | ||
/// <param name="ct">CancellationToken to cancel build submissions.</param> | ||
/// <returns>The BuildResult</returns> | ||
member x.BuildAsync(buildRequest: BuildRequestData, ?buildParameters: BuildParameters, ?ct: CancellationToken) = |
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.
There's a recent PR against MSbuild to add this as a core capability: dotnet/msbuild#12270
It'll be a bit until it lands and then is usable, but maybe the implementation can serve as a reference in the meantime.
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.
These are pretty much the same. Notable difference is I'm converting BuildAbortedException
to OperationCanceledException
when cancellation did happen.
…or clarity and consistency
- Introduced `TestUtils` module to encapsulate common testing functions and utilities. - Updated `TestAssetProjInfo2` to include new expectations for graph and project results. - Refactored existing tests to utilize the new `TestUtils` functions for better readability and maintainability. - Replaced inline error handling and logging with structured approaches in tests. - Ensured all tests now conform to the new expectations for project options, graph results, and project results.
No description provided.