Giter VIP home page Giter VIP logo

Comments (10)

ronaldbosma avatar ronaldbosma commented on June 14, 2024

Thanks for the feedback.

Do you know a good way to check if the .NET Core hosting bundle is installed? I've looked at dotnet --info but it only lists the SDK and runtime. Not if the hosting bundle is installed.

from installnetcoreruntimeandhostingtask.

JonnyG365 avatar JonnyG365 commented on June 14, 2024

all I have been able to find so far is this registry key HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Updates.NET Core

from installnetcoreruntimeandhostingtask.

kdblocher avatar kdblocher commented on June 14, 2024

Try this - will return true if it finds it in the registry
(Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | % { $_.DisplayName } | Where { $_ -Match 'Microsoft ASP.NET Core Module V2' }).Count -gt 0

from installnetcoreruntimeandhostingtask.

Jetski5822 avatar Jetski5822 commented on June 14, 2024

This would be awesome!! +1

from installnetcoreruntimeandhostingtask.

kdblocher avatar kdblocher commented on June 14, 2024

I've forked it at https://github.com/wagner-machine/InstallNetCoreRuntimeAndHostingTask and will take a look.

from installnetcoreruntimeandhostingtask.

JonnyG365 avatar JonnyG365 commented on June 14, 2024

@kdblocher don't suppose this suggested improvement is able to make any progress. We love using this task but it's a bit of a blunt instrument in the every time you run a CI pipeline doing a fresh install without checking if you already have the latest version.

from installnetcoreruntimeandhostingtask.

JonnyG365 avatar JonnyG365 commented on June 14, 2024

@kdblocher don't suppose this suggested improvement is able to make any progress. We love using this task but it's a bit of a blunt instrument in the every time you run a CI pipeline doing a fresh install without checking if you already have the latest version.

from installnetcoreruntimeandhostingtask.

ronaldbosma avatar ronaldbosma commented on June 14, 2024

Hi @JonnyG365. Thanks for putting this issue on my radar again. Because you can use Microsoft Update now to update .NET Core I've decided to not add any major enhancement like this request.

from installnetcoreruntimeandhostingtask.

kdblocher avatar kdblocher commented on June 14, 2024

@ronaldbosma it doesn't appear that Microsoft Update supports CI/CD scenarios, rather just an automatic update experience. For those who need to support arbitrary versions of .NET Core, or don't want to allow automatic updates of this kind, it's not a good solution.

@JonnyG365, as you can see, @ronaldbosma sat on this issue for a year with no response. I may try to get a forked copy working with this feature.

from installnetcoreruntimeandhostingtask.

JonnyG365 avatar JonnyG365 commented on June 14, 2024

@kdblocher I assume you have a similar use case to us I want to be able to add this kind of task to the build pipeline and have it download/install/update if needed but do nothing if you are already running the version specified

from installnetcoreruntimeandhostingtask.

Related Issues (5)

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.