Skip to content

Conversation

TheAngryByrd
Copy link
Member

No description provided.

/// <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) =
Copy link
Collaborator

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.

Copy link
Member Author

@TheAngryByrd TheAngryByrd Aug 8, 2025

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.

- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants