Blog J.Schweiss

Infosammlung zu .NET- Programmier-Themen & Elektronik

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



VB.NET Class overview

clock Juni 27, 2016 17:36 by author Administrator

here



WCF-WebServices

clock Februar 28, 2016 14:37 by author Administrator

Tutorial



Wrap unmanaged code

clock Februar 14, 2016 06:13 by author Administrator

here or here



LINQ to Objects

clock September 21, 2015 03:02 by author Administrator

Public Class Form1
    Private Sub Button1_Click(ByVal sender _
          As System.Object, _
          ByVal e As System.EventArgs) _
          Handles Button1.Click
        ' variabili per composizione
        ' del messaggio finale:
        Dim messaggio As String = ""
        Dim NL As String = Environment.NewLine
        ' dichiarazione array:
        Dim frutti() As String = _
           {"mela", "pera", "banana", "mandarino"}
        ' dichiarazione della variabile che conterrà
        ' l'insieme delle stringhe
restituite dalla
        ' query. La query è dichiarata nella stessa
        ' istruzione:
        Dim fruttiPreferiti = _
           From f In frutti _
           Where f.StartsWith("m") _
           Select f
        ' scorrimento dell'insieme delle stringhe
        ' per la composizione del messaggio:
        For Each frutto In fruttiPreferiti
            messaggio &= "Frutto: " & frutto & Environment.NewLine 
        Next
        MessageBox.Show(messaggio)
    End Sub
End Class



SignalR with Windows Service

clock April 4, 2015 01:32 by author Administrator

Article

  • ASP.NET SignalR Hubs API Guide - Server
  • ASP.NET SignalR Hubs API Guide - .NET Client
  • Creating a Windows Service Application
  • Learn About ASP.NET SignalR
  • Sample SignalR Game ShootR
  • SignalR Source Code
  • Building Web Apps with ASP.NET Jump Start: (08) Real-time Communication with SignalR
  • OWIN and Katana
  • Using SignalR in WinForms and WPF
  • Server Broadcast with SignalR
  • HubConnectionContext Class
  • SignalR Hubs API Guide
  • Working with Groups in SignalR
  • ASP.NET SignalR
  • SignalR Project
  • SignalR Github and Samples
  • SignalR Wiki
  • For a walkthrough on how to deploy a SignalR application to Azure, see Using SignalR with Web Apps in Azure App Service. For detailed information about how to deploy a Visual Studio web project to a Windows Azure Web Site, see Create an ASP.NET web app in Azure App Service.


  • Installing .Net Framework 4.5.x

    clock August 17, 2014 23:08 by author Administrator

    overview



    Über den Author

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

    Sign in