nanobox-io / nanobox-pkgsrc-base

base pkgsrc packages for /data prefix
MIT License
6 stars 4 forks source link

dotnetcore #24

Open tylerflint opened 7 years ago

tylerflint commented 7 years ago

https://www.microsoft.com/net/download/linux

I think we'll have to do some digging to figure out exactly how to build, but that link should be a start.

cplotter commented 7 years ago

👍

mattiasw2 commented 6 years ago

Is dotnet-core2 or dotnet-sdk2 working?

I have been trying to add it like this, but I get errors?

run.config:
  engine: clojure
  extra_packages:
    - dotnet-sdk2

Running the following set of commands fixes 2.1 sdk, if I would like to run them all, where in my boxfile would I place them?

From https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x

I need to run these commands

sudo apt-get update sudo apt-get install curl libunwind8 gettext apt-transport-https

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg

sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list' sudo apt-get update

sudo apt-get install dotnet-sdk-2.1.3

and I can verify the installation by running

dotnet --version

and expect "2.1.3" as the answer

ghost commented 6 years ago

Some tidbits:

Once it is available, quick sanity test can be performed using dotnet-cli:

# successfully installed docker

dotnet new console -n TestHello
cd TestHello
dotnet run

# "Hello World!" gets printed