Blog J.Schweiss

Infosammlung zu .NET- Programmier-Themen & Elektronik

Ikea Bekant

clock April 23, 2018 03:47 by author Administrator

Hardware + Table

Enclosure

Experiences



Lieblingsspruch

clock April 22, 2018 06:16 by author Administrator
  • Wir müssen sagen, was wir denken.
  • Wir müssen tun, was wir sagen.
  • Wir müssen sein, was wir tun.

 

(Alfred Herrhausen)



.Net core

clock April 16, 2018 05:15 by author Administrator

entry

versioms



Install .NET Core – what a mess

clock April 16, 2018 00:01 by author Administrator

heredokumentation and Tutorial 

get started

Installed Versions at : C:\Program Files\dotnet\sdk

 

Install

  • Uninstall any Preview versions (!)

If you have .NET Core Previews installed, it will need to be removed before attempting to install .NET Core 2.0. This can be done by running a command such as the following.

sudo apt autoremove dotnet-dev-2.0.0-preview2-006497

Ubuntu and Debian based systems

Register the Microsoft signing key, the product repository for your distro and install required system dependencies with the following scripts.

Ubuntu 17.10

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-artful-prod artful main" > /etc/apt/sources.list.d/dotnetdev.list'
 

Debian 8 (Jessie)

sudo apt-get install curl libunwind8 gettext
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-debian-jessie-prod jessie main" > /etc/apt/sources.list.d/dotnetdev.list
 

Then, update the package cache and install .NET Core

sudo apt-get update
sudo apt-get install dotnet-sdk-2.0.0
 

Installation from a binary archive

Installing from the packages detailed above is recommended and you can also install from binary archive.

When using binary archives to install, the contents must be extracted to a user location

such as $HOME/dotnet and a symbolic link created for dotnet.

 

mkdir -p $HOME/dotnet && tar zxf dotnet.tar.gz -C $HOME/dotnet
export PATH=$PATH:$HOME/dotnet

C:\Windows\SysWOW64>dotnet --info
.NET-Befehlszeilentools (2.1.104)

Product Information:
Version:           2.1.104
Commit SHA-1 hash:  48ec687460

Runtime Environment:
OS Name:     Windows
OS Version:  10.0.16299
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\2.1.104\

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.6
  Build    : 74b1c703813c8910df5b96f304b0f2b78cdf194d

 

pi@raspi3:~/NetCoreTest $ dotnet CoreConsoleTest.dll
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '2.0.0' was not found.
  - Check application dependencies and target a framework version installed at:
      /
  - Alternatively, install the framework version '2.0.0'.

compiled with:

.NET Command Line Tools (1.0.0-preview2-003131)

Product Information:
Version:           1.0.0-preview2-003131
Commit SHA-1 hash:  635cf40e58

Runtime Environment:
OS Name:     Windows
OS Version:  10.0.16299
OS Platform: Windows
RID:         win10-x64


Microsoft .NET Core Shared Framework Host

  Version  : 2.0.6

  Build    : 74b1c703813c8910df5b96f304b0f2b78cdf194d

project.json:

{   "version": "1.0.0-*",   "buildOptions": {     "emitEntryPoint": true   },   "dependencies": {     "Microsoft.NETCore.App": {       "type": "platform",       "version": "2.0.0"     }   },   "frameworks": {     "netcoreapp1.0": {       "imports": "dnxcore50"     }   }
}

pi@raspi3:~ $ curl -sSL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Runtime/release/2.0.0/dotnet-runtime-latest-linux-arm.tar.gz

https://www.microsoft.com/net/download/linux-package-manager/ubuntu16-04/runtime-2.1.0-preview1

 

PM> Install-Package Microsoft.NETCore.App -Version 2.0.8-servicing-26407-02

GET https://api.nuget.org/v3/registration3-gz/microsoft.netcore.app/index.json

OK https://api.nuget.org/v3/registration3-gz/microsoft.netcore.app/index.json 166ms

Install-Package : Unable to find version '2.0.8-servicing-26407-02' of package 'Microsoft.NETCore.App'.

At line:1 char:1

+ Install-Package Microsoft.NETCore.App -Version 2.0.8-servicing-26407- ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception

+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

Time Elapsed: 00:00:01.6324082

PM> Install-Package Microsoft.NETCore.App -Version 2.0.8

GET https://api.nuget.org/v3/registration3-gz/microsoft.netcore.app/index.json

OK https://api.nuget.org/v3/registration3-gz/microsoft.netcore.app/index.json 167ms

Install-Package : Unable to find version '2.0.8' of package 'Microsoft.NETCore.App'.

At line:1 char:1

+ Install-Package Microsoft.NETCore.App -Version 2.0.8

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception

+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

Time Elapsed: 00:00:00.9011205

PM> Install-Package Microsoft.NETCore.App -Version 2.0.6

GET https://api.nuget.org/v3/registration3-gz/microsoft.netcore.app/index.json

OK https://api.nuget.org/v3/registration3-gz/microsoft.netcore.app/index.json 162ms

Retrieving package 'Microsoft.NETCore.App 2.0.6' from 'nuget.org'.

GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.app/2.0.6/microsoft.netcore.app.2.0.6.nupkg

OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.app/2.0.6/microsoft.netcore.app.2.0.6.nupkg 486ms

Installing Microsoft.NETCore.App 2.0.6.

Installing NuGet package Microsoft.NETCore.App.2.0.6.

Successfully installed 'Microsoft.NETCore.App 2.0.6' to CoreConsoleTest

Executing nuget actions took 13,71 sec

Time Elapsed: 00:00:14.5877836

PM>

Lost in versions and tools: .NET Core, Core Tools, dotnet Core CLI

dotnet_core_package_references



Linux shell under windows 10

clock April 15, 2018 04:46 by author Administrator

here



mouse cam

clock April 2, 2018 22:30 by author Administrator

with A2051



Über den Author

Windows, Server, Programming, .Net, Tools, Arduino, RaspberryPi, IoT  & more

Sign in