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

Move to latest NuGet.exe #23786

Merged
merged 2 commits into from
Jul 10, 2020
Merged

Move to latest NuGet.exe #23786

merged 2 commits into from
Jul 10, 2020

Conversation

dougbu
Copy link
Member

@dougbu dougbu commented Jul 8, 2020

  • 5.3.0 -> 5.6.0
  • should improve performance and may improve reliability

- 5.3.0 -> 5.6.0
- should improve performance and may improve reliability
@dougbu dougbu requested review from rrelyea and a team July 8, 2020 22:08
@ghost ghost added the feature-installers Includes: Installers label Jul 8, 2020
@wtgodbe
Copy link
Member

wtgodbe commented Jul 8, 2020

What about other references to nuget in the repo? There's at least one other:

<PackageReference Include="NuGet.Build.Tasks" Version="5.3.0" />

@@ -25,9 +25,8 @@ if (-not (Test-Path $NuGetDir)) {
}

if (-not (Test-Path $NuGetExe)) {
# Using 5.3.0 to workaround https://github.com/NuGet/Home/issues/5016
Copy link
Member Author

Choose a reason for hiding this comment

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

@rrelyea this bug doesn't appear relevant anymore, especially because we aren't using the more-performant 3.5.0 version. If that's correct, I'm wondering if is dotnet pack able to handle https://github.com/dotnet/aspnetcore/blob/master/src/Installers/Windows/SharedFramework/SharedFrameworkPackage.nuspec and https://github.com/dotnet/aspnetcore/blob/master/src/Installers/Windows/TargetingPack/TargetingPackPackage.nuspec as well as the properties we pass in below yet ❔ I don't see *.nuspecsupport in the help dotnet pack -? spits out but hope it's just undocumented 😄 or will be coming soon.

Copy link
Member Author

Choose a reason for hiding this comment

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

Chatted offline w/ @rrelyea and it's likely we could create the two installer packages using a new *.csproj that runs after our *.wixproj.

Will file a separate issue about this work. It's a larger change and not something I'm going to tackle now. But, it would remove our need for NuGet.exe anywhere in this repo (outside a couple of Arcade post-build stages).

@dougbu
Copy link
Member Author

dougbu commented Jul 8, 2020

What about other references to nuget in the repo? There's at least one other:

<PackageReference Include="NuGet.Build.Tasks" Version="5.3.0" />

@rrelyea would changing that one negatively impact loading our tasks into dotnet msbuild or msbuild❔ If not, I'll add another commit…

@dougbu
Copy link
Member Author

dougbu commented Jul 8, 2020

And @rrelyea if I shouldn't be asking you NuGet questions anymore please add the right contact.

@rrelyea
Copy link

rrelyea commented Jul 8, 2020

it might be easier to have a quick teams call to chat through these several questions. call me sometime?

@dougbu
Copy link
Member Author

dougbu commented Jul 8, 2020

Sounds good @rrelyea

@dougbu
Copy link
Member Author

dougbu commented Jul 9, 2020

@rrelyea and I also discussed updating

<PackageReference Include="NuGet.Build.Tasks" Version="5.3.0" />
There should be no downside to moving to 5.6.0. @rrelyea also pointed out we don't need all of NuGet.Build.Tasks and could move to getting just NuGet.Packaging. Overall, that transitively brings in 5 packages instead of the current 12. I confirmed this looking at RepoTasks.dll and am going to try this narrowing out in the next iteration.

- move to 5.6.0 version here too
- reduce transitive dependencies; we don't need them all
@dougbu
Copy link
Member Author

dougbu commented Jul 9, 2020

/ping @dotnet/aspnet-build this is building successfully and just needs a review 😺

@dougbu dougbu merged commit 59433bc into master Jul 10, 2020
@dougbu dougbu deleted the dougbu/latest.nuget branch July 10, 2020 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-installers Includes: Installers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants