core icon indicating copy to clipboard operation
core copied to clipboard

.NET Core 2.1

Open leecow opened this issue 8 years ago • 29 comments

.NET Core 2.1.0

Blog post Release Notes

Please report any issues you find with 2.1, either responding to this issue, creating a new issue or creating a new issue in one of the following repos:

leecow avatar May 30 '18 17:05 leecow

@leecow getting a 404 on the link to the blog post. Thinking that it might be correct, but just not published yet?

uffebjorklund avatar May 30 '18 17:05 uffebjorklund

Link to "Known Issues" from here is also returning 404.

winzig avatar May 30 '18 17:05 winzig

@uffebjorklund and @winzig - both should be up now.

leecow avatar May 30 '18 17:05 leecow

Link to https://github.com/dotnet/core/blob/master/release-notes/2.1/api-diff/rc1/2.1.md is broken in https://github.com/dotnet/core/blob/master/release-notes/2.1/2.1.0.md#api-changes

Looks like it should have been https://github.com/dotnet/core/blob/master/release-notes/2.1/api-diff/2.0-vs-2.1.md.

jnm2 avatar May 30 '18 18:05 jnm2

@jnm2 - fixed!

leecow avatar May 30 '18 18:05 leecow

The ubuntu packages for bionic seem to be missing "dotnet-sdk-2.1.300" and reverts to installing the preview. It looks like the package "dotnet-sdk-2.1" is pointing to the correct deb file though.

annymsMthd avatar May 30 '18 18:05 annymsMthd

@annymsMthd - We need to make an update to the install instructions so to refer to dotnet-sdk-2.1. This is part of the update to make the installers behave themselves for updates. I've changed the download page on github but need to look at https://www.microsoft.com/net/download/linux-package-manager.

cc @rowanmiller

leecow avatar May 30 '18 18:05 leecow

Site is updated - https://www.microsoft.com/net/download/linux-package-manager/rhel/sdk-current

rowanmiller avatar May 30 '18 19:05 rowanmiller

I have a weird issue with the trusty repo (perhaps other ubuntu repos are also affected)..

I'm using a mirroring too to mirror the entire repo for installation inside a segragated network consisting of hundreds of machines.

Unfortunately, one of packages in the repo seems to have a bad hash value in the Packages file...

While the package itself (addlogin) is not a dependency of dotnet-sdk-2.1.300 in itself, the mirroring tool has no way of knowing this, and fails on the hash mismatch regardless...

Here's is the information:

The 2.1.200 SDK depends on "aadlogin-selinux_1.0.004870001_amd64.deb" but the hash mismatches

General

When I do:

wget https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod/pool/main/a/aadlogin-selinux/aadlogin-selinux_1.0.004870001_amd64.deb
--2018-05-10 00:16:04--  https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod/pool/main/a/aadlogin-selinux/aadlogin-selinux_1.0.004870001_amd64.deb
Resolving packages.microsoft.com (packages.microsoft.com)... 13.80.10.205
Connecting to packages.microsoft.com (packages.microsoft.com)|13.80.10.205|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13378 (13K) [application/octet-stream]
Saving to: ‘aadlogin-selinux_1.0.004870001_amd64.deb’

100%[=================================================================================================================================================================>] 13,378      --.-K/s   in 0s

2018-05-10 00:16:05 (265 MB/s) - ‘aadlogin-selinux_1.0.004870001_amd64.deb’ saved [13378/13378]

$ md5sum aadlogin-selinux_1.0.004870001_amd64.deb
1341006af46b5b9f7ec7a4458e96ee5d  aadlogin-selinux_1.0.004870001_amd64.deb
$ sha1sum aadlogin-selinux_1.0.004870001_amd64.deb
9e0a0a27500889a18a3b52fe728a377266ece884  aadlogin-selinux_1.0.004870001_amd64.deb

If you download the package release file:

https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod/dists/trusty/main/binary-amd64/Packages.bz2

The package is signed with the following hashes:

Package: aadlogin
Priority: extra
Section: default
Installed-Size: 368
Maintainer: Azure AD <[email protected]>
Architecture: amd64
Version: 1.0.004880001
Depends: libcurl3, uuid-runtime
Filename: pool/main/a/aadlogin/aadlogin_1.0.004880001_amd64.deb
Size: 136322
MD5sum: f38961a87872d754fcf9beeb6cea83c6
SHA1: c05eb728d1208b5edbb8c07b3f3763a76da842ed
SHA256: c9e1819732b5da3ba984abf8fe9fbfd38637f3569fb726268c0b714f933f1934
SHA512: 5da10a913581539a4f0ce90668624676316864f9624faeaae289bb4e6bc49f1f911161fd5b7b2f993db7b6c337b049bd2c78fec72bd5026e8371bdf95c6847d7
Description: AAD NSS and PAM extensions
Homepage: https://azure.com
License: MIT
Vendor: Microsoft

I'm guessing something got messed up?

damageboy avatar May 30 '18 21:05 damageboy

@damageboy - I'll check with the product repo owners with respect to the hash.

Where are you seeing that the SDK has a dependency on aadlogin? The only defined dependencies are on aspnetcore-runtime and dotnet-runtime and it's not a dependency through any of the other packages.

Also, do you mind if I pull your comment up into an issue by itself?

leecow avatar May 30 '18 23:05 leecow

While installing .NET Core 2.1 in Fedora 27, I can see some dependent packages are RC version. Is it expected?

$ sudo dnf rm dotnet-*
$ sudo rm /etc/yum.repos.d/microsoft.repo
$ sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
$ wget -q https://packages.microsoft.com/config/fedora/27/prod.repo
$ sudo mv prod.repo /etc/yum.repos.d/microsoft-prod.repo
$ sudo dnf update
packages-microsoft-com-prod                                                                                                                                                        162 kB/s |  55 kB     00:00    
Last metadata expiration check: 0:00:00 ago on Thu 31 May 2018 09:48:57 AM JST.
Dependencies resolved.
Nothing to do.
Complete!
$ sudo dnf install dotnet-sdk-2.1
Last metadata expiration check: 0:00:11 ago on Thu 31 May 2018 09:48:57 AM JST.
Dependencies resolved.
===================================================================================================================================================================================================================
 Package                                                      Arch                                  Version                                       Repository                                                  Size
===================================================================================================================================================================================================================
Installing:
 dotnet-sdk-2.1                                               x86_64                                2.1.300-1                                     packages-microsoft-com-prod                                109 M
Installing dependencies:
 aspnetcore-runtime-2.1                                       x86_64                                2.1.0-1                                       packages-microsoft-com-prod                                 29 M
 dotnet-host                                                  x86_64                                2.1.0_rc1-1                                   packages-microsoft-com-prod                                 43 k
 dotnet-hostfxr-2.1                                           x86_64                                2.1.0-1                                       packages-microsoft-com-prod                                195 k
 dotnet-runtime-2.1                                           x86_64                                2.1.0-1                                       packages-microsoft-com-prod                                 27 M
 dotnet-runtime-deps-2.1                                      x86_64                                2.1.0-1                                       packages-microsoft-com-prod                                2.8 k
 dotnet-runtime-deps-2.1.0-rc1                                x86_64                                2.1.0_rc1-1                                   packages-microsoft-com-prod                                2.8 k

Transaction Summary
===================================================================================================================================================================================================================
Install  7 Packages

Total download size: 165 M
Installed size: 275 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): dotnet-runtime-2.1.0-x64.rpm                                                                                                                                                3.3 MB/s |  27 MB     00:08    
(2/7): dotnet-hostfxr-2.1.0-x64.rpm                                                                                                                                                905 kB/s | 195 kB     00:00    
(3/7): dotnet-runtime-deps-2.1.0-fedora.27-x64.rpm                                                                                                                                  32 kB/s | 2.8 kB     00:00    
(4/7): dotnet-host-2.1.0-rc1-x64.rpm                                                                                                                                               255 kB/s |  43 kB     00:00    
(5/7): dotnet-runtime-deps-2.1.0-rc1-fedora.27-x64.rpm                                                                                                                              38 kB/s | 2.8 kB     00:00    
(6/7): aspnetcore-runtime-2.1.0-x64.rpm                                                                                                                                            1.9 MB/s |  29 MB     00:15    
(7/7): dotnet-sdk-2.1.300-x64.rpm                                                                                                                                                  2.9 MB/s | 109 MB     00:37    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                              4.4 MB/s | 165 MB     00:37     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                           1/1 
  Installing       : dotnet-runtime-deps-2.1.0-rc1-2.1.0_rc1-1.x86_64                                                                                                                                          1/7 
  Installing       : dotnet-host-2.1.0_rc1-1.x86_64                                                                                                                                                            2/7 
  Running scriptlet: dotnet-host-2.1.0_rc1-1.x86_64                                                                                                                                                            2/7 
Creating dotnet host symbolic link: /usr/bin/dotnet
  Installing       : dotnet-hostfxr-2.1-2.1.0-1.x86_64                                                                                                                                                         3/7 
  Installing       : dotnet-runtime-deps-2.1-2.1.0-1.x86_64                                                                                                                                                    4/7 
  Installing       : dotnet-runtime-2.1-2.1.0-1.x86_64                                                                                                                                                         5/7 
  Installing       : aspnetcore-runtime-2.1-2.1.0-1.x86_64                                                                                                                                                     6/7 
  Installing       : dotnet-sdk-2.1-2.1.300-1.x86_64                                                                                                                                                           7/7 
  Running scriptlet: dotnet-sdk-2.1-2.1.300-1.x86_64                                                                                                                                                           7/7 
This software may collect information about you and your use of the software, and send that to Microsoft.
Please visit http://aka.ms/dotnet-cli-eula for more information.
Welcome to .NET Core!
---------------------
Learn more about .NET Core: https://aka.ms/dotnet-docs
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs

Telemetry
---------
The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous and doesn't include command-line arguments. The data is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

Configuring...
--------------
A command is running to populate your local package cache to improve restore speed and enable offline access. This command takes up to one minute to complete and only runs once.
Running as unit: run-ra6a83a23f169471ea8955ff301397889.service
  Verifying        : dotnet-sdk-2.1-2.1.300-1.x86_64                                                                                                                                                           1/7 
  Verifying        : aspnetcore-runtime-2.1-2.1.0-1.x86_64                                                                                                                                                     2/7 
  Verifying        : dotnet-runtime-2.1-2.1.0-1.x86_64                                                                                                                                                         3/7 
  Verifying        : dotnet-hostfxr-2.1-2.1.0-1.x86_64                                                                                                                                                         4/7 
  Verifying        : dotnet-runtime-deps-2.1-2.1.0-1.x86_64                                                                                                                                                    5/7 
  Verifying        : dotnet-host-2.1.0_rc1-1.x86_64                                                                                                                                                            6/7 
  Verifying        : dotnet-runtime-deps-2.1.0-rc1-2.1.0_rc1-1.x86_64                                                                                                                                          7/7 

Installed:
  dotnet-sdk-2.1.x86_64 2.1.300-1            aspnetcore-runtime-2.1.x86_64 2.1.0-1                dotnet-host.x86_64 2.1.0_rc1-1     dotnet-hostfxr-2.1.x86_64 2.1.0-1     dotnet-runtime-2.1.x86_64 2.1.0-1    
  dotnet-runtime-deps-2.1.x86_64 2.1.0-1     dotnet-runtime-deps-2.1.0-rc1.x86_64 2.1.0_rc1-1    

[tatanaka@tatanaka-lp ~]$ ^C
[tatanaka@tatanaka-lp ~]$ 
Complete!
```

tanaka-takayoshi avatar May 31 '18 01:05 tanaka-takayoshi

dotnet-sdk 2.1.300 still show an outdated message when first init. dotnet tool install dotnet-dev-certs -g --version 2.1.0-preview1-final(Not sure what's the full message in English, so only include the command here)

Maybe it's no longer needed as I can found it in C:\Program Files\dotnet\sdk\2.1.300\DotnetTools, and can be run with dotnet dev-certs, seems it's also include in sdk like dotnet ef does.


Updated: I see the message was removed in https://github.com/dotnet/cli/pull/8957, but the translations are never updated, so the message still left for all other languages.

yyjdelete avatar May 31 '18 05:05 yyjdelete

Can we install it to Win7 without sp1?

lindexi avatar May 31 '18 08:05 lindexi

The Known Issues page does not list a known issue we hit (and a pretty big one). The Alpine .NET Core images will segfault on a host running with SELinux on. https://github.com/dotnet/dotnet-docker/issues/561

gortok avatar May 31 '18 11:05 gortok

@leecow As for where I'm seeing this... Again, this is a bit of a non-standard situation. I'm seeing this while attempting to create a mirror of the repo... using an apt mirroring tool.

That is why even if there is NO dependency on addlogin through, for example, installing dotnet-sdk-2.1.300... The mirroring tool doesn't care or know about that. As far as a mirroring tool would be concerned it's all or nothing. And the moment it sees an hash mismatch on the Package release files, it's game over.

Again... Stressing that this is a less than standard situation, since what is failing is the apt repo MIRRORING rather than the installation.

I've previously opened an issue about this before, during the RC1 phase... Here it is: https://github.com/dotnet/core/issues/1530

damageboy avatar May 31 '18 13:05 damageboy

@tanaka-takayoshi - we're aware of the issue and tracking in https://github.com/dotnet/core/issues/1620

leecow avatar May 31 '18 15:05 leecow

@damageboy - contacting the repo admins to see if they can resolve.

leecow avatar May 31 '18 15:05 leecow

Looks like .NET Core 2.1 is broken on Arch Linux.

I'm having the same issues as this person here: https://stackoverflow.com/questions/50689340/asp-net-core-2-1-on-arch-linux-does-not-run

I'm trying to run this project (simple project to just play with signalr 2.1 and such).

https://github.com/JesseObrien/signalr-jwt

Error:

It was not possible to find any compatible framework version
The specified framework 'Microsoft.AspNetCore.App', version '2.1.0' was not found.
  - Check application dependencies and target a framework version installed at:
      /opt/dotnet/
  - Installing .NET Core prerequisites might help resolve this problem:
      http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
  - The .NET Core framework and SDK can be installed from:
      https://aka.ms/dotnet-download

Same package installed, same dotnet --info:

NET Core SDK (reflecting any global.json):
 Version:   2.1.300
 Commit:    adab45bf0c

Runtime Environment:
 OS Name:     arch
 OS Version:
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /opt/dotnet/sdk/2.1.300/

Host (useful for support):
  Version: 2.1.0
  Commit:  caa7b7e2ba

.NET Core SDKs installed:
  2.1.300 [/opt/dotnet/sdk]

jesseobrien avatar Jun 05 '18 01:06 jesseobrien

You likely need to copy aspnet into the right location. Should work if you do that an console apps run fine.

Petermarcu avatar Jun 05 '18 01:06 Petermarcu

This page doesn't have instructions or package links for .NET Core 2.1 in the "Install .NET Core for supported Red Hat Enterprise Linux (RHEL) versions" section: https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x#install-net-core-for-supported-red-hat-enterprise-linux-rhel-versions

Are the RHEL packages still being finalized for .NET Core 2.1?

mrichards3 avatar Jun 05 '18 14:06 mrichards3