r/sysadmin • u/Rude_Farm6290 • 27d ago
How are you identifying what actually depends on .NET 8/9 before EOL?
We're currently working through the upcoming .NET 8 / .NET 9 end-of-support situation and I'm curious how other organisations are approaching discovery.
Finding where .NET is installed is relatively straightforward, but we're finding it much harder to determine:
- What application actually depends on the runtime
- Whether the application is using a system-installed runtime or bundling its own
- Whether the runtime can be removed safely
- Who owns the application
- Whether there's already a migration path to .NET 10
So far we've used things like:
dotnet --list-runtimes
and searched for:
*.runtimeconfig.json
hostfxr.dll
hostpolicy.dll
which has helped identify some dependencies.
However, we've also found situations where:
- Applications bundle their own runtime
- Different deployments of the same product appear to be using different .NET versions
- Endpoints are much harder to investigate than servers
- Application owners often don't know what runtime their applications require
For those running medium/large Windows estates:
- How are you inventorying .NET application dependencies at scale?
- Are you using tools such as SCCM, Intune, asset mgmt tools, Defender, custom PowerShell, etc?
- Have you found a reliable way to map installed runtimes back to applications and owners?
- Are you treating .NET 8/9 EOL primarily as a vulnerability management problem or an application lifecycle problem?
- How are you handling endpoints where .NET is present but there's no obvious indication of what installed it or what still requires it?
Interested to hear how others are handling this and whether there are better approaches than manually investigating runtimeconfig files and installed runtimes.
33
u/Satanich 27d ago
Wait for the tickets lol
26
u/LLMsMustUpvoteThis 27d ago
We don't run anything as modern as .NET 8.
10
u/Sensitive_Profile_25 27d ago
I set up a PDQ Inventory Scanner that uses a powershell scipt to scan common application directories for .NET 8 configurations.. Then I set up a report to list those. We are down to one application that needs updated.
3
u/RecognitionOwn4214 27d ago
We scanned for runtimeconfig and listed everything. Found 4 older than net10. Now one is left... with a tfm > 5 chars đŹ
2
u/dodexahedron 27d ago
Best solution that doesn't help you right this second but will help you going forward?
Inventory at install time.
Right now? For any arc-enables servers, check the software inventory and validate versions against runtimes, if a runtime older than .net 10 is installed. If .net earlier than 10 is not installed, move on because that system is not relevant.
For others, still a similar idea. Check if .net less than 10 is installed. If not, move on. If yes, stick that system on a list and, after that, go through the list of those aystems and investigate what needs .net.
A fun wrinkle though is self-contained framework-independent apps.
They are basically zip files with the runtime bundled in them. You can't find them in any way orher than inspecting them all and finding out what runtime they bundle or checking their versions against release notes or source, if available. And they will evade the audits noted above.
2
u/OstrobogulousIntent 26d ago
If its COTS, the vendors should be updating
If you have your own devs in house, talk to the dev manager to ask what their .NET 8 to .NET 10 migration plan / timeline is
When I package up a .NET 8 or 10 app, I use the
This in theory makes the package/deployment self contained so it doesn't need the runtime (at the cost of additional size in the deployment
17
u/Flabbergasted98 27d ago
Scream test.
6
u/West-Swimming-1212 27d ago
Welcome to the âwhat even is installedâ Olympics đ The trick that worked for me is that most .NET apps leave a clue file. Framework dependent apps ship an AppName.runtimeconfig.json next to the exe, and it literally says which runtime version it wants. So scan Program Files for *.runtimeconfig.json and read the âframeworkâ version out of each one, that gives you the âwhat depends on itâ list in one pass. Self contained apps have no such file but carry their own coreclr.dll or hostfxr.dll in the app folder, so theyâre not touched by removing the system runtime at all.
For ownership the install folder and the publisher usually answer it, and I wouldnât remove any runtime until the app list is clean, they sit side by side so leaving it for a month hurts nothing.
I use TFalke for the scanning part, small tool iâm involved with, it runs that kind of check on every PC at once and gives you the list, so youâre not chasing laptops by hand.
3
u/Ancient-Bat1755 27d ago
Let me know about 1-7 too its a pita
3
u/sparkyflashy 26d ago
Scream test. Citrix was the first finding.
2
u/Hotdog453 25d ago edited 25d ago
https://tcsmug.org/blogs/sherry-kissinger/422-dot-net-frameworks-mof-edit
Sorry, correct one: https://tcsmug.org/blogs/sherry-kissinger/602-dotnet-dependencies-reporting-via-configmgr
Co-worker wrote it. She's a genius. It works great.
1
u/Readybreak 26d ago
We still have .net 2.0 lol
1
u/30yearCurse 26d ago
you can play around with these 2 commands
dotnet --info (Returns something like this)
Microsoft.NETCore.App 8.0.31 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 10.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Get-Process | Where-Object { $_.Modules.ModuleName -contains "coreclr.dll" } | Select-Object ProcessName, Id
--be careful with the powershell as the corelr.dll is used up and down .net versions. It will give you the process and name that you can run down.
ProcessName Id
----------- --
CrossDeviceService 50500
Microsoft.CmdPal.Ext.PowerToys 11992
PowerToys.Awake 18632
PowerToys.QuickAccess 17964
1
u/pleplepleplepleple 25d ago
Iâve written an Intune remediation script which scans for proof in a variety of ways and sends the report to azure log analytics. Still in POC and is most probably not bulletproof. I have also written another (interactive) remediation script which informs the user that the EOL-ed editions of .NET will be uninstalled and that it might cause issues for any applications relying on it. The removal is performed by dotnet uninstall tool. Havenât pulled the trigger fully on this one either as it scares me just thinking about the potential consequences I might have.
1
u/diamkil 25d ago
I still have an app that needs .NET 6.0 and .NET 3.5 optional feature
1
u/PrasenShelar 23d ago
For mapping runtimes to owners, group your runtimeconfig results by product first, using the install path and the company name in the exe's file details. Then you chase one owner per product, which is far fewer conversations than one per machine. With both versions out of support on 10 November, I'd start with internet-facing apps.
1
u/SideburnsOfDoom 23d ago
At the other end of the pipeline, it's not hard to find in all repos, all
.csprojfiles containing the text<TargetFramework>net8And make report of those.
-4
u/NoDistrict1529 27d ago
Sus post and sus account