Unable to run The .NET Portability Analyzer on the Microsoft Windows Server 2016 (Datacenter)

35 views Asked by At

I was assigned with the .NET Portability Analyzer scan on the Microsoft Windows Server 2016 (Datacenter)

On that datacenter we host ASP.NET Web Forms application hosted on the IIS version 10

I was told that I can download portable .NET Portability Analyzer from https://github.com/microsoft/dotnet-apiport

I did download portable version and ran this command

C:\..\ApiPort.2.8.25.Offline\ApiPort.Offline\netcoreapp3.1\ApiPort.exe analyze -r DGML -f PROJECT_DIRECTORY

I got this response

You must install or update .NET to run this application.

App: C:...\ApiPort.2.8.25.Offline\ApiPort.Offline\netcoreapp3.1\ApiPort.exe Architecture: x64 Framework: 'Microsoft.NETCore.App', version '3.1.32' (x64) .NET location: C:\Program Files\dotnet\

The following frameworks were found: 8.0.1 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Learn more: https://aka.ms/dotnet/app-launch-failed

To install missing framework, download: https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.1.32&arch=x64&rid=win-x64&os=win10

But I did install all the necessary frameworks, everything is up-to-date

Can some one suggest what is missing?

1

There are 1 answers

0
Guru Stron On BEST ANSWER

Downloand and install runtime for the console apps from the linked page (this one).

Also note that the provided tool seems to be deprecated, consider looking into the Upgrade Assistant which also has a CLI option.