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

Build NuGet from the VMR #5749

Merged
merged 5 commits into from
Apr 17, 2024
Merged

Build NuGet from the VMR #5749

merged 5 commits into from
Apr 17, 2024

Conversation

mmitche
Copy link
Contributor

@mmitche mmitche commented Apr 9, 2024

Bug

N/A

Description

Changes to enable building of NuGet in the VMR in the windows and Linux builds (in non-source-only modes). Highlights:

  • Update to a newer arcade, and update the property property usage in this repo to match
  • Update build scripts to enable non-source-only builds
  • Cleanup the SB wrapper project. Previously theree was actually no pre-built detection going on
  • Add windows builds scripts.

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

@dotnet-policy-service dotnet-policy-service bot added the Community PRs created by someone not in the NuGet team label Apr 9, 2024
@mmitche
Copy link
Contributor Author

mmitche commented Apr 9, 2024

A bit more verification to do here.

@mmitche mmitche marked this pull request as ready for review April 16, 2024 17:31
@mmitche mmitche requested a review from a team as a code owner April 16, 2024 17:31
nkolev92
nkolev92 previously approved these changes Apr 16, 2024
@@ -6,6 +6,7 @@
<Description>Implementation of the NuGet.VisualStudio extensibility APIs.</Description>
<Guid>9623cf30-192c-4864-b419-29649169ae30</Guid>
<ImportedFromTypeLib>NuGet.VisualStudio.Implementation</ImportedFromTypeLib>
Copy link
Member

Choose a reason for hiding this comment

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

I'm confused as to why we need all these.
Aren't the projects scoped down differently?

I think we can probably solve this in a different file where it affects all projects in the src/NuGet.Clients subfolder.

Copy link
Member

Choose a reason for hiding this comment

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

I can probably make that change myself, if you prefer not add more complications in this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The issue is that these projects don't build properly in the VMR in non-source-only modes. I think typically in non-Windows cases. The goal is to exclude as little as possible from the default repo build in VMR modes. This is the only case of this. The rest of the Exclude* are just changing the source-only exclusion property to match the new name.

Copy link
Member

Choose a reason for hiding this comment

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

I noticed the prop change, I was more thinking that we shouldn't have to mark each individual project, since source build only cares about nuget.core projects with the exception of NuGet.PackageManagement, so there should be easier ways to do this (example, directory.build.props).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Generally, we've tried to avoid proactively trimming down the set of projects to build, especially in non-source-only modes. My view is that the repo should mostly work 'stock', and we should avoid removing extras if not necessary.

If you want to stop building more projects, that's fine, but I think it's probably good that we only exclude 3 projects.

NuGet.sln Show resolved Hide resolved
@mmitche
Copy link
Contributor Author

mmitche commented Apr 16, 2024

@nkolev92 It looks like the test failures are unrelated

@nkolev92
Copy link
Member

retriggered again.

@nkolev92 nkolev92 merged commit e935504 into NuGet:dev Apr 17, 2024
12 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community PRs created by someone not in the NuGet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants