Giter Site home page Giter Site logo

Failed to find .NET Core SDK about slngen HOT 7 CLOSED

microsoft avatar microsoft commented on May 19, 2024
Failed to find .NET Core SDK

from slngen.

Comments (7)

jeffkl avatar jeffkl commented on May 19, 2024

This is very strange. SlnGen is running dotnet --info and looking for the line that says:

  Base Path:   C:\Program Files\dotnet\sdk\3.1.302\

Does this happen consistently?

from slngen.

sidfloyd90 avatar sidfloyd90 commented on May 19, 2024

Yes, It happens every time. I'm unable to make SlnGen work on my machine.

from slngen.

jeffkl avatar jeffkl commented on May 19, 2024

Very strange. I added a unit test with your exact output and it seems to work.

Can you try building SlnGen locally and debugging it on your machine? The TryGetDotNetCoreBasePath method is what parses the output of dotnet --info to get the value of BasePath.

You can also downgrade to unblock yourself

dotnet tool uninstall --global microsoft.visualstudio.slngen.tool
dotnet tool install --global --version 3.4.11 microsoft.visualstudio.slngen.tool

You can try older versions until it works again, that would narrow down which commit broke you.

from slngen.

shelfeng-ms avatar shelfeng-ms commented on May 19, 2024

Same error on me and old version also doesn't work.

from slngen.

shelfeng-ms avatar shelfeng-ms commented on May 19, 2024

I'm able to mitigate by uninstalling all 2.xx version .net core SDKs. Only keep the latest one.

from slngen.

sidfloyd90 avatar sidfloyd90 commented on May 19, 2024

+1
I had to uninstall all 2.0.xxx and 2.1.xxx .Net Core versions to get unblocked.

from slngen.

jeffkl avatar jeffkl commented on May 19, 2024

This is now fixed in the latest version

from slngen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.