Skip to content
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

Set NuGetAudit property defaults in MSBuild #5469

Merged
merged 5 commits into from
Nov 10, 2023

Conversation

zivkan
Copy link
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
src/NuGet.Core/NuGet.Build.Tasks/NuGet.props Outdated Show resolved Hide resolved
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
@@ -163,6 +165,8 @@ function Test-NetCoreVSandMSBuildNoOp {
}

function Test-NetCoreTargetFrameworksVSandMSBuildNoOp {
[SkipTest('https://github.com/NuGet/Home/issues/13003')]
Copy link
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
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 :)

@zivkan zivkan merged commit c5abfc6 into dev Nov 10, 2023
1 check passed
@zivkan zivkan deleted the dev-zivkan-NuGetAudit-msbuild-defaults branch November 10, 2023 09:39
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