Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Optionally specify "--no-restore" in DotNetBuildTask #40

Open
icnocop opened this issue Mar 15, 2023 · 1 comment · May be fixed by #43
Open

Optionally specify "--no-restore" in DotNetBuildTask #40

icnocop opened this issue Mar 15, 2023 · 1 comment · May be fixed by #43
Labels
enhancement New feature or request

Comments

@icnocop
Copy link

icnocop commented Mar 15, 2023

Hi.

Thank you for ADotNet.

DotNetBuildTask always specifies --no-restore.

This requires the pipeline to explicitly call RestoreTask if the project/solution being built references any nuget packages.

I expected DotNetBuildTask to make restoring nuget packages optional.

Thank you.

@icnocop icnocop linked a pull request Mar 26, 2023 that will close this issue
@cjdutoit cjdutoit added enhancement New feature or request and removed enhancement New feature or request labels May 23, 2024
@cjdutoit
Copy link
Collaborator

@icnocop the default is dotnet build --no-restore when you do:

  new DotNetBuildTask
  {
      Name = "Build",
  },

You can however override this behaviour by doing:

new DotNetBuildTask
{
    Name = "Build",
    Run = "dotnet build"
},

Hope this helps

@cjdutoit cjdutoit added the enhancement New feature or request label May 23, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants