Code Monkey home page Code Monkey logo

Comments (3)

Ash258 avatar Ash258 commented on June 7, 2024

I am looking into experimenting with dotnet frameworks Ash258/Shovel-Ash258#19

It should be possible same way as there is vcredists packages.
I should have time this weekend to inpect.

from main.

niheaven avatar niheaven commented on June 7, 2024

ref: https://docs.microsoft.com/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed#find-net-framework-versions-45-and-later-in-the-registry

MS recommands using registry to get .Net versions.

from main.

nuno-andre avatar nuno-andre commented on June 7, 2024

You can get the latest version that verifies that condition with:

(gp "hklm:software\microsoft\net framework setup\ndp\v*\full").version |
    ? { $_ -ge [version]"4.7.2" } | select -last 1

(without the last segment (\full) for PS < 4.5)

But I warn you (since Microsoft doesn't) that Az Powershell is not as bloated as Azure Powershell (e.g. I had to reinstall Azure Powershell because it's yet not possible to manage an OAuth2 On-Behalf-Of flow for App Services).

I think the best approach is to keep Azure Powershell for PS5.1 (i.e. Windows Powershell -powershell.exe- which requires .NET Framework) and install Az Powershell as module of PS6 (i.e. Powershell Core -pwsh.exe- which doesn't).

from main.

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.