jakeswenson / BitBetter

Modify bit warden to provide my own licensing for self hosting
500 stars 112 forks source link

The framework 'Microsoft.NETCore.App', version '3.1.0' was not found. #113

Closed alexgn100 closed 3 years ago

alexgn100 commented 3 years ago

Hello,

I have the following error when running the build script:

---> Running in 3e4597201bf0
+ dotnet /bitBetter/bitBetter.dll
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '3.1.0' was not found.
  - The following frameworks were found:
      5.0.9 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.1.0&arch=x64&rid=debian.10-x64
The command '/bin/sh -c set -e; set -x;     dotnet /bitBetter/bitBetter.dll &&     mv /app/Core.dll /app/Core.orig.dll &&     mv /app/modified.dll /app/Core.dll &&     rm -rf /bitBetter && rm -rf /newLicensing.cer' returned a non-zero code: 150

I have already looked at the closed issue as this problem has been encountered several times by others, however none of these have led to my solution.

Have anyone a idea?

captainhook commented 3 years ago

Install .NET core.

alexgn100 commented 3 years ago

Install .NET core.

I have installing .NET core and is not function:

root@Bitwarden:~# dotnet --version 3.1.412

captainhook commented 3 years ago

https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#how-to-install-other-versions

Install 3.1.0

alexgn100 commented 3 years ago

3.1.412 dotnet not compatible?

alexgn100 commented 3 years ago

So I have now tried the 3.1.0 version from the 2019 and this also did not work.

captainhook commented 3 years ago

I've just tested on a fresh install of Ubuntu 18.04 LTS, no issue. You don't need to install . NET core on the host machine.

captainhook commented 3 years ago

Start on a new VM or delete all images/containers and start again.

alexgn100 commented 3 years ago

I've just tested on a fresh install of Ubuntu 18.04 LTS, no issue. You don't need to install . NET core on the host machine.

Also i try this on a fresh Debian 10 VM. I will try this on Ubuntu 18.04...

alexgn100 commented 3 years ago

I've just tested on a fresh install of Ubuntu 18.04 LTS, no issue. You don't need to install . NET core on the host machine.

I have now created a Ubuntu 18.04 VM an install normal the newest Bitwarden Server. And git clone and build.sh but the same error coming.

captainhook commented 3 years ago

@MG-100 please refer to this: https://github.com/jakeswenson/BitBetter/issues/115

alexgn100 commented 3 years ago

Thanks this is working for me.