Lexx
Lexx

Reputation: 725

Installing specific dotnet version in azure

I'm having an issue with a netcoreapp project that's running 2.2. In Microsoft Azure the 2 supported versions are 2.1 and 3.1, both will require some serious migrating. Is it possible to install 2.2 on the server?

Upvotes: 0

Views: 61

Answers (1)

Stelios Giakoumidis
Stelios Giakoumidis

Reputation: 2273

Your best option would be to deploy a self-contained application. You can do so by running

dotnet publish -r <RID> --self-contained

In this way you will cut loose the depedency on the supported runtimes from Azure side.

There is of course the downside (as always) that your applications would be bigger by roughly 100Mb

Upvotes: 1

Related Questions