Skip to content
Discussion options

You must be logged in to vote

Short answer: not with dotnetup itself. dotnetup is the SDK/runtime bootstrapper and version manager; .NET tools such as dotnet-ef are a separate NuGet-based feature managed by dotnet tool.

If the goal is reproducibility / keeping track of the tool, make it a local tool and commit the manifest:

# from the repository root
dotnet new tool-manifest          # explicit and works across SDK versions
dotnet tool install dotnet-ef
git add .config/dotnet-tools.json

After cloning the repo (or on CI), install exactly what the manifest declares with:

dotnet tool restore
dotnet ef --version

That gives each repository its own pinned dotnet-ef version and avoids depending on whatever happens to be inst…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@atenghamn
Comment options

Answer selected by atenghamn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants