Skip to content

Fix Build: Disable NuGet auditing in file-based app test - #39512

Merged
AndriySvyryd merged 1 commit into
mainfrom
copilot/fix-file-app-nuget-audit
Nov 5, 2026
Merged

AndriySvyryd merged 1 commit into
mainfrom
copilot/fix-file-app-nuget-audit

Conversation

Copilot AI commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Disable NuGet auditing in the temporary app created by ProjectTest.File_based_app_can_be_built, matching test/Directory.Build.props, which the app outside the repository does not inherit. This prevents the ILCompiler NU1903 warning from disrupting the test without changing auditing for user projects.

- Match the repository test settings for the temporary app

Co-authored-by: Copilot <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The reviewed change has no active issues and narrowly disables NuGet auditing only in the temporary test application to prevent audit warnings from disrupting the test.

No open issues 🎉

What changed in this PR

Updates the file-based app test to disable NuGet auditing in its temporary application, preventing ILCompiler audit warnings from disrupting the test without changing auditing for user projects.

Changes:

  • Adds #:property NuGetAudit=false to the generated file-based app.
  • Aligns the temporary app with the repository’s test configuration.
  • Keeps NuGet auditing unchanged for user projects.
File Description
test/​dotnet-ef.Tests/​ProjectTest.cs Disables NuGet auditing in the temporary file-based app used by the build test.

Review effort: Lite

@AndriySvyryd
AndriySvyryd marked this pull request as ready for review November 4, 2026 01:03
@AndriySvyryd
AndriySvyryd requested a review from a team as a code owner November 4, 2026 01:03
@AndriySvyryd
AndriySvyryd enabled auto-merge (squash) November 4, 2026 01:03
@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: C#

C# / code-coverage

main 767a660 copilot/fix-file-app... fdc2e6f +/-
76% 76% 0%
View coverage of the 10 most impacted files.
File main 767a660 copilot/fix-file-app... fdc2e6f +/-
src/Microsoft.D...nnectionPool.cs 100% 97% -3%
src/EFCore.Rela...seExtensions.cs 80% 80% 0%
src/EFCore/Quer...sionVisitors.cs 91% 91% 0%
src/EFCore.InMe...ssionVisitor.cs 90% 90% 0%
src/EFCore.Rela...ssionVisitor.cs 95% 95% 0%
src/EFCore.Abst...erExtensions.cs 100% 100% 0%
src/EFCore/Meta...xTypeBuilder.cs 33% 34% +1%
src/EFCore.Rela...osticsLogger.cs 98% 99% +1%
src/EFCore.Rela...tyExtensions.cs 61% 65% +4%
src/EFCore/Meta...nComplexType.cs 0% 25% +25%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@AndriySvyryd AndriySvyryd changed the title Disable NuGet auditing in file-based app test Fix Build: Disable NuGet auditing in file-based app test Nov 4, 2026
@AndriySvyryd
AndriySvyryd merged commit cb885fc into main Nov 5, 2026
29 checks passed
@AndriySvyryd
AndriySvyryd deleted the copilot/fix-file-app-nuget-audit branch November 5, 2026 10:36
@abdoalaa2001 abdoalaa2001 mentioned this pull request Nov 5, 2026
6 tasks done
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 6, 2026
Hassan1305 added a commit to Hassan1305/efcore that referenced this pull request Nov 13, 2026
Picks up dotnet#39512, which fixes the File_based_app_can_be_built test failure.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Hassan1305 added a commit to Hassan1305/efcore that referenced this pull request Nov 13, 2026
Picks up dotnet#39512, which fixes the File_based_app_can_be_built test failure.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

4 participants