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

[tests] Add --no-restore to dotnet invocations for better performance. #1040

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jpobst
Copy link
Contributor

@jpobst jpobst commented Nov 8, 2024

Calling dotnet new <template> and dotnet add nuget <package> implicitly does a NuGet restore before returning.

However, after we get the test set up using these commands we call dotnet build which also does a NuGet restore.

Improve performance by opting out of these initial restores and only doing the one at build time.

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.

1 participant