How to install multiple versions of .NET Core side by side on ubuntu

We have an application written in .NET Core rc2 running in a decision-making environment (linux server). Recently, our client performed its own performance tests, which, as it turned out, completely violated the application. We could not reproduce it for several reasons: 1) We develop on windows 2) We have since migrated from rc2 to 1.0.0.

In the windows, we were unable to reproduce either our new version (1.0.0) or rc2. Therefore, we tried to play it on a Linux machine. at 1.0.0 we were also unable to reproduce their results, but when we tried to test against rc2 (the old version of our application, obviously), we faced a really annoying problem: I seem to be unable to install 1.0.0 and rc2 side by side although an error message means it is possible. Below is the error message

The specified framework 'Microsoft.NETCore.App', version '1.0.0-rc2-3002702' was not found.
  - Check application dependencies and target a framework version installed at:
      /usr/share/dotnet/shared/Microsoft.NETCore.App
  - The following versions are installed:
      1.0.0
  - Alternatively, install the framework version '1.0.0-rc2-3002702'.

Basically we want to be able to check the current version of the version when receiving our application (rc2) on a linux machine, but we are struggling with what we actually get rc2.

Thank. If something is unclear, write your question in the comments.

EDIT: I tried to create it as a standalone deployment, but then I get the following error:

Errors in /home/nicolaas/Projects/digipolis-survey-engine/Digipolis.FormEngine/Digipolis.FormEngine.Response.API/project.json
    System.AppContext 4.1.0-rc2-24027 provides a compile-time reference assembly for System.AppContext on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
    System.Runtime.InteropServices.RuntimeInformation 4.0.0-rc2-24027 provides a compile-time reference assembly for System.Runtime.InteropServices.RuntimeInformation on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
    One or more packages are incompatible with .NETCoreApp,Version=v1.0 (ubuntu.15.10-x64).

, rc2 , Linux.

+6
2

.

  • dotnet .

  • . , 1.1.2 symlink/path/to/dotnet-latest/shared/Microsoft.NETCore.App/1.1.2 → /path/to/dotnet-1.1.2/shared/Microsoft.NETCore.App/1.1.2

  • dotnet , .

, , Windows. . sdks sdk.

+1

Source: https://habr.com/ru/post/1653034/


All Articles