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

When trying to install dotnet-ef tool, we get error saying that dotnet-ef is not a .NET tool #43844

Closed
balachir opened this issue Oct 2, 2024 · 10 comments
Labels
Area-Tools untriaged Request triage from a team member

Comments

@balachir
Copy link

balachir commented Oct 2, 2024

Describe the bug

Unable to install dotnet-ef tool using 'dotnet tool install'. We get error saying that dotnet-ef is not a .NET tool

image

To Reproduce

INSTALL STEPS

  1. Clean Win11 machine
  2. Install VS 17.12 P3 (Web workload includes 9.0 SDK and check 8.0, uncheck 6.0 runtime, latest from main
    • Includes SDK 9.0.100-rc.2.24474.11 (with runtime 9.0.0-rc.2.24473.5) and runtimes 8.0.10
    • Apply feeds for 9.0 rc2 and 8.0.10

REPRO STEPS

  1. Open Command Prompt, and try to install dotnet-ef tool

ACTUAL
We get the error saying that dotnet-ef is not a tool

EXPECTED
The dotnet-ef tool should be installed.

Further technical details

  • Include the output of dotnet --info

image

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Tools untriaged Request triage from a team member labels Oct 2, 2024
@balachir
Copy link
Author

balachir commented Oct 2, 2024

@marcpopMSFT is this a known issue with 9.0 rc2 SDK? Am I missing something?

@richaverma1

@marcpopMSFT
Copy link
Member

This is new functionality in RC2 that is not included in GA and no plans to add because of a separate issue we found in the code wrt other feed technologies: #43651

This particular issue is unknown though. is dotnet-ef not correctly marked as a tool somehow? CC @joeloff who is going to be doing this for 9.0.2xx and @baronfel for visibility.

Do we need to relnote this?

@joeloff
Copy link
Member

joeloff commented Oct 3, 2024

We should relnote this. I checked the nuspec and it definitely has the correct package type - most of the original change was around local tools and I wonder whether this is because the tool is being installed globally.

@balachir
Copy link
Author

balachir commented Oct 3, 2024

I can reproduce it when installing the tool locally too, so I don't think it's only due to the global install. Is there a workaround for this?

Also, can we get this fixed this for 9.0 GA? Being able to 'dotnet tool install dotnet-ef' is a critical part of our publishing experience.

cc: @vijayrkn

@joeloff
Copy link
Member

joeloff commented Oct 3, 2024

Undoing the change in #43872

@joeloff
Copy link
Member

joeloff commented Oct 4, 2024

Merged for 9.0 GA, closing

@gdhuper
Copy link

gdhuper commented Oct 22, 2024

I am still running into this error. Here is my environment info:

.NET SDK:
 Version:           9.0.100-rc.2.24474.11
 Commit:            315e1305db
 Workload version:  9.0.100-manifests.4872d5d5
 MSBuild version:   17.12.0-preview-24473-03+fea15fbd1

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.26100
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:\Program Files\dotnet\sdk\9.0.100-rc.2.24474.11\

.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.

Host:
  Version:      9.0.0-rc.2.24473.5
  Architecture: x64
  Commit:       990ebf52fc

.NET SDKs installed:
  3.1.426 [C:\Program Files\dotnet\sdk]
  6.0.135 [C:\Program Files\dotnet\sdk]
  6.0.321 [C:\Program Files\dotnet\sdk]
  6.0.427 [C:\Program Files\dotnet\sdk]
  7.0.203 [C:\Program Files\dotnet\sdk]
  7.0.317 [C:\Program Files\dotnet\sdk]
  7.0.410 [C:\Program Files\dotnet\sdk]
  8.0.403 [C:\Program Files\dotnet\sdk]
  9.0.100-rc.2.24474.11 [C:\Program Files\dotnet\sdk]

Do I need to install a specific version of dotnet runtime to resolve this?

@martincostello
Copy link
Member

You need to wait for the stable .NET 9 release next month.

@gdhuper
Copy link

gdhuper commented Oct 22, 2024

You need to wait for the stable .NET 9 release next month.

Is there a workaround in the meantime?

@v-elenafeng
Copy link

Checked with 17.12.0 VAL (contains 9.0.0), this is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Tools untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

6 participants