Sdk: `dotnet new manifestfile` or `dotnet tool install package id --create-new-manifest-file`

Created on 31 Oct 2018  路  6Comments  路  Source: dotnet/sdk

A way to create manifest file since we will throw when dotnet tool install cannot find a manifest file

tool

Most helpful comment

We went dotnet new tool-manifest

All 6 comments

Could a default also be to create a new manifest file at the working directory if no one is found?
Or pass an argument:

dotnet tool install foo --manifest-dir ../..

Could a default also be to create a new manifest file at the working directory if no one is found?

We talked about this. But the problem is if you are in a directory like /obj or /bin it won't make sense.

pass an argument

This could also work.

/obj or /bin it won't make sense.

well.. problem between keyboard and chair? 馃槀

alternatives: check for any known source control root, say .git or top-level .svn directory and if not found use the cwd.
You've surely discussed this as well so I'm interested in that result.

alternatives: check for any known source control root, say .git or top-level .svn directory and if not found use the cwd.

Yes, we discussed that. We don't want to depend on implementations of source controls. And we would have to deal with sub-model and future new source control system.

We went dotnet new tool-manifest

Was this page helpful?
0 / 5 - 0 ratings