Add MSBuild tests for EFCore.Tasks and dotnet-ef
- Dominant language
- C#
- Stars
- 14.8k
- Forks
- 3.4k
- PR merge metrics
- PR metrics pending
Description
These tests would need to do the following:
1. Set up one or more target projects
a. The task binaries and content files need to be explicitly laid out and referenced, since there is no NuGet package yet when the tests run
3. Run a `dotnet` command on one of the above
4. Assert on the command output and the artifacts of the target project
## Features to test:
1. MsBuild integration for compiled model and precompiled query generation for Build and Publish
2. NativeAOT
3. Trimming
4. Feature flags
5. .NET Framework support (should fail gracefully, see https://github.com/dotnet/efcore/issues/37745#issuecomment-3950199646)
Related to #32616
Also see https://github.com/dotnet/efcore/blob/main/eng/testing/linker/trimmingTests.targets
Contributor guide
Assessment
This issue has not been assessed yet.