Skip to content

Set NuGetAudit property defaults in MSBuild#5469

Merged
zivkan merged 5 commits intodevfrom
dev-zivkan-NuGetAudit-msbuild-defaults
Nov 10, 2023
Merged

Set NuGetAudit property defaults in MSBuild#5469
zivkan merged 5 commits intodevfrom
dev-zivkan-NuGetAudit-msbuild-defaults

Conversation

@zivkan
Copy link
Copy Markdown
Member

@zivkan zivkan commented Oct 23, 2023

Bug

Fixes: NuGet/Home#12960

Regression? No

Description

In order to make Visual Studio's project properties window more user friendly, we need to set these properties default values in project evaluation. See dotnet/project-system#9246 for more info.

Since this breaks NuGetAudit's telemetry for telling the difference between "explicit enable" and "implicit enable", it was changed to just "enabled" or "disabled". This is a breaking change, so telemetry queries need to be updated, but it reduces long term confusion for people looking at telemetry, as they no longer need to understand what implicit/explicit really mean.

Added skips for 2 VS E2E tests that are failing because project system's nomination isn't passing through the NuGetAuditMode property. I already have a PR to fix that, but we have to wait until it's merged into the dotnet/project-system repo, and then dotnet/project-system is inserted into VS, before these tests can work. Fortunately project-system inserts pretty much every day, so it shouldn't take long, just depends on how quick the PR gets merged. We can either merge this PR with the skips and I'll need to revert the skips afterwards, or we can wait for project-system to merge and insert, then I can update this PR. 

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@zivkan zivkan requested a review from a team as a code owner October 23, 2023 09:03
@zivkan zivkan requested a review from jebriede October 23, 2023 09:15
nkolev92
nkolev92 previously approved these changes Oct 23, 2023
jeffkl
jeffkl previously approved these changes Oct 23, 2023
jebriede
jebriede previously approved these changes Oct 26, 2023
@zivkan zivkan dismissed stale reviews from jebriede, jeffkl, and nkolev92 via 9acb934 October 30, 2023 08:51
nkolev92
nkolev92 previously approved these changes Oct 30, 2023
}

function Test-NetCoreTargetFrameworksVSandMSBuildNoOp {
[SkipTest('https://github.com/NuGet/Home/issues/13003')]
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I updated the PR description, but this is failing because I forgot to update dotnet/project-system to pass NuGetAuditMode in nomination:

We can either:

  1. Merge this PR with the skip and then I'll need to undo the skip once project-system merged my PR and inserts into VS
  2. Wait until project-system merges and inserts the fix, then I need to update this PR to remove these skips.

Copy link
Copy Markdown
Member

@nkolev92 nkolev92 Nov 9, 2023

Choose a reason for hiding this comment

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

personally, I'm fine with merging the skip.
Let's just get it done :)

@nkolev92 nkolev92 mentioned this pull request Apr 2, 2026
3 tasks
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.

Set NuGetAudit defaults in MSBuild

6 participants