cake icon indicating copy to clipboard operation
cake copied to clipboard

DotNetCoreRestore: support multiple root paths

Open adamhathcock opened this issue 8 years ago • 9 comments

Right now, the tool assumes there is only one path.

However, you can do the following: dotnet restore "src/" "test/" which is just a list of paths to restore. I'll make the tool support that.

adamhathcock avatar Aug 31 '16 09:08 adamhathcock

ok, you could probably do dotnet restore ./ too to restore all.

devlead avatar Aug 31 '16 09:08 devlead

You definitely can. I just don't want to restore all. Just specific directories.

adamhathcock avatar Aug 31 '16 10:08 adamhathcock

@adamhathcock is this related to #1111 ?

RLittlesII avatar Aug 31 '16 15:08 RLittlesII

@rlittlesii it looks like what you did is kind of what I'd do.

I think restore still supports subpath searching because I can do the command in the OP and it finds all project.jsons one level deeper. I guess that might not be the same as globbing

Would your PR cover the command I put?

adamhathcock avatar Aug 31 '16 16:08 adamhathcock

@adamhathcock it could, I was going to add an alias for directory. It sounds like dot net restore can handle the following

  • List of directories
  • List of Files
  • Specific file
  • Specific directory

Any I am missing any?

RLittlesII avatar Aug 31 '16 17:08 RLittlesII

As far as I know, that looks complete from the docs say about '' in the docs: https://docs.microsoft.com/en-us/dotnet/articles/core/tools/dotnet-restore

adamhathcock avatar Aug 31 '16 18:08 adamhathcock

That's supposed to say "root"

adamhathcock avatar Aug 31 '16 18:08 adamhathcock

@adamhathcock perfect. Ill get moving on this.

RLittlesII avatar Aug 31 '16 18:08 RLittlesII

Hey @RLittlesII it's been a few years since the last update on this one... Is this something you interested in reviving? If not, no worries and I'll put it up-for-grabs

augustoproiete avatar Oct 12 '21 00:10 augustoproiete