Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET Core January Update - 2.1.7 and 2.2.1 #2210

Closed
leecow opened this issue Jan 8, 2019 · 20 comments
Closed

.NET Core January Update - 2.1.7 and 2.2.1 #2210

leecow opened this issue Jan 8, 2019 · 20 comments

Comments

@leecow
Copy link
Member

leecow commented Jan 8, 2019

.NET Core January Update - 2.1.7 and 2.2.1

Included fixes address security issues detailed in the release notes.

Note: The 2.2 SDK was re-released on 1/16/2019 to address an issue (dotnet/source-build#942) where developers targeting the 2.1 Runtime (LTS) will not get the latest release when building self-contained applications.

.NET Core

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

.NET Support Policies

Microsoft support policies are defined in the following documents:

@johnkors
Copy link
Contributor

johnkors commented Jan 9, 2019

The links to the CVEs in the release notes of 2.2.1 are broken. Fix: #2214

@karelz
Copy link
Member

karelz commented Jan 9, 2019

@johnkors thanks for the fixes!

@Ryszka
Copy link

Ryszka commented Jan 14, 2019

When can we expect 2.2.1 packages to be available on NuGet? I can see 2.1.x packages had been updated to 2.1.7, but newest 2.2.x packages are still at version 2.2.0.

@leecow
Copy link
Member Author

leecow commented Jan 17, 2019

@Ryszka - I just checked nuget.org and see the appropriate versions available for affected packages detailed in the release notes. Is there a specific package you're not seeing?

@Ryszka
Copy link

Ryszka commented Jan 18, 2019

@leecow I have checked again and they're in fact there. Must have been some caching issue or I just missed it before.

@jsoques
Copy link

jsoques commented Jan 22, 2019

I just installed dotnet-sdk-2.2.103-win-x64.exe. When I do a dotnet new mvc at the command line I get the error: C:\Program Files\dotnet\sdk\2.1.500\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(137,5): error NETSDK1045: The current .NET SDK does not support targeting .NET Core 2.2. Either target .NET Core 2.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.2.

When I do dotnet --version I get 2.2.103

Here is a complete output:

D:\VSProjects\DotNet2.2>dotnet new mvc
The template "ASP.NET Core Web App (Model-View-Controller)" was created successfully.
This template contains technologies from parties other than Microsoft, see https://aka.ms/aspnetcore-template-3pn-210 for details.

Processing post-creation actions...
Running 'dotnet restore' on D:\VSProjects\DotNet2.2\DotNet2.2.csproj...
C:\Program Files\dotnet\sdk\2.1.500\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(137,5): error NETSDK1045: The current .NET SDK does not support targeting .NET Core 2.2. Either target .NET Core 2.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.2. [D:\VSProjects\DotNet2.2\DotNet2.2.csproj]

Restore failed.
Post action failed.
Description: Restore NuGet packages required by this project.
Manual instructions: Run 'dotnet restore'

Help would be appreciated, Thanks.

@leecow
Copy link
Member Author

leecow commented Jan 29, 2019

@murat / @bradygaster, can you have a look at @jsoques issue above?

@muratg
Copy link

muratg commented Jan 29, 2019

@jsoques You don't happen to have a global.json do you?

@leecow This looks like a CLI/SDK question to me. @livarcocc any thoughts here?

@livarcocc
Copy link

@jsoques what happens when you run dotnet --info on the project folder?

@jsoques
Copy link

jsoques commented Jan 30, 2019

@muratg No global.json
@livarcocc This is the output:

.NET Core SDK (reflecting any global.json):
Version: 2.2.103
Commit: 8edbc2570a

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

Host (useful for support):
Version: 2.2.1
Commit: 878dd11e62

.NET Core SDKs installed:
1.0.1 [C:\Program Files\dotnet\sdk]
1.0.4 [C:\Program Files\dotnet\sdk]
1.1.4 [C:\Program Files\dotnet\sdk]
1.1.5 [C:\Program Files\dotnet\sdk]
1.1.7 [C:\Program Files\dotnet\sdk]
1.1.8 [C:\Program Files\dotnet\sdk]
1.1.9 [C:\Program Files\dotnet\sdk]
1.1.10 [C:\Program Files\dotnet\sdk]
1.1.11 [C:\Program Files\dotnet\sdk]
2.0.0 [C:\Program Files\dotnet\sdk]
2.0.2 [C:\Program Files\dotnet\sdk]
2.0.3 [C:\Program Files\dotnet\sdk]
2.1.2 [C:\Program Files\dotnet\sdk]
2.1.4 [C:\Program Files\dotnet\sdk]
2.1.100 [C:\Program Files\dotnet\sdk]
2.1.101 [C:\Program Files\dotnet\sdk]
2.1.102 [C:\Program Files\dotnet\sdk]
2.1.103 [C:\Program Files\dotnet\sdk]
2.1.104 [C:\Program Files\dotnet\sdk]
2.1.200 [C:\Program Files\dotnet\sdk]
2.1.201 [C:\Program Files\dotnet\sdk]
2.1.202 [C:\Program Files\dotnet\sdk]
2.1.302 [C:\Program Files\dotnet\sdk]
2.1.400 [C:\Program Files\dotnet\sdk]
2.1.401 [C:\Program Files\dotnet\sdk]
2.1.402 [C:\Program Files\dotnet\sdk]
2.1.403 [C:\Program Files\dotnet\sdk]
2.1.500 [C:\Program Files\dotnet\sdk]
2.1.502 [C:\Program Files\dotnet\sdk]
2.1.503 [C:\Program Files\dotnet\sdk]
2.2.103 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 1.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.3-servicing-26724-03 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

@livarcocc
Copy link

For some reason, when it restores the project it is using the 2.1.500 props/targets, as seen in the logs here:

C:\Program Files\dotnet\sdk\2.1.500\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(137,5): error NETSDK1045: The current .NET SDK does not support targeting .NET Core 2.2. Either target .NET Core 2.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.2. [D:\VSProjects\DotNet2.2\DotNet2.2.csproj]`

Emphasis in sdk\2.1.500. Do you have MSBuildSDKsPath environment variable set for any reason? Could you share a binlog with us of running dotnet restore /bl on the newly created project and then share the binlog file?

@jsoques
Copy link

jsoques commented Jan 30, 2019

@livarcocc Ah, now that you've mentioned it, yes I have a MSBuildSDKsPath pointing to that version. I had created it because of an issue I had with VS Code/Omnisharp.
I removed MSBuildSDKsPath and it works now!

Thanks,

@Leon99
Copy link

Leon99 commented Feb 4, 2019

@muratg
Copy link

muratg commented Feb 4, 2019

@Leon99 ANCM was deployed to Azure in late December. What's the exact issue you're having?

@Leon99
Copy link

Leon99 commented Feb 4, 2019

@muratg I had a problem described on https://stackoverflow.com/questions/53811569/using-netcore-2-2-and-using-the-in-process-hosting-model last week, solved by switching to OutOfProcess.

@muratg
Copy link

muratg commented Feb 4, 2019

@Leon99 Ah, so you haven't deployed to Azure. Did you install the latest .NET Core SDK/runtime? (dotnet --info output would tell.)

@Leon99
Copy link

Leon99 commented Feb 5, 2019

I did deploy to Azure (App Service).

@muratg
Copy link

muratg commented Feb 5, 2019

@Leon99 could you please share your csproj file?

@Leon99
Copy link

Leon99 commented Feb 6, 2019

I can't reproduce it now, InProcess seems to work fine once I put it back and re-deployed. There was nothing fancy about it when I encountered the issue, just a standard Core 2.2 API one generated by the latest VS.

@leecow
Copy link
Member Author

leecow commented Feb 12, 2019

Closing this release discussion issue in favor of #2304

@leecow leecow closed this as completed Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants