JackYumCha / QA

Question and Answer
0 stars 0 forks source link

Install .Net Core 2 in Ubuntu 16.04 #3

Open JackYumCha opened 6 years ago

JackYumCha commented 6 years ago

https://github.com/dotnet/docs/blob/master/docs/core/linux-prerequisites.md 1) Register the Microsoft Product key as trusted. curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg 2) Set up the desired version host package feed. 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 3) Install .NET Core sudo apt-get install dotnet-sdk-2.1.4 4) Run the dotnet --version command to prove the installation succeeded dotnet --version

With the setup above, google-chrome and selenium should work for both python and C# .Net Core 2.1.4. In C#, the --no-sandbox argument must be added as well to run in linux.