Netcore 2.1.1 release leads to app failing to run

  • A+
Category:Languages

It seems there is suddenly something out of sync with asp.net core packages.

It looks like Microsoft.AspNetCore.App 2.1.1 was released 16 hours ago on nuget.org but only 158 downloads, and apparently I'm one of the downloaders.

My .csproj file is like this:

<Project Sdk="Microsoft.NET.Sdk.Web">   <PropertyGroup>     <TargetFramework>netcoreapp2.1</TargetFramework>   </PropertyGroup>   <ItemGroup>     <ProjectReference Include="../cloudscribe.Web.Navigation/cloudscribe.Web.Navigation.csproj" />     <ProjectReference Include="../cloudscribe.Web.SiteMap/cloudscribe.Web.SiteMap.csproj" />     <ProjectReference Include="../cloudscribe.Web.SiteMap.FromNavigation/cloudscribe.Web.SiteMap.FromNavigation.csproj" />   </ItemGroup>   <ItemGroup>     <PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.*" />     <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.1.*" />   </ItemGroup> </Project> 

It builds but when I try to run it I get:

It was not possible to find any compatible framework version The specified framework 'Microsoft.AspNetCore.App', version '2.1.1' was not found. - Check application dependencies and target a framework version installed at: C:/Program Files/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 - The following versions are installed: 2.1.0 at [C:/Program Files/dotnet/shared/Microsoft.AspNetCore.App]

If I change my version for Microsoft.AspNetCore.App to 2.1.0 and do dotnet restore I get this:

C:_c/cloudscribe.Web.Navigation/src/NavigationDemo.Web/NavigationDemo.Web.csproj : error NU1107: Version conflict detected for Microsoft.AspNetCore.Antiforgery. Reference the package directly from the project to resolve this issue. C:_c/cloudscribe.Web.Navigation/src/NavigationDemo.Web/NavigationDemo.Web.csproj : error NU1107: NavigationDemo.Web -> cloudscribe.Web.Navigation -> Microsoft.AspNetCore.Mvc.Razor 2.1.1 -> Microsoft.AspNetCore.Mvc.ViewFeatures 2.1.1 -> Microsoft.AspNetCore.Antiforgery (>= 2.1.1) C:_c/cloudscribe.Web.Navigation/src/NavigationDemo.Web/NavigationDemo.Web.csproj : error NU1107: NavigationDemo.Web -> Microsoft.AspNetCore.App 2.1.0 -> Microsoft.AspNetCore.Antiforgery (= 2.1.0). Restore failed in 3.54 sec for C:_c/cloudscribe.Web.Navigation/src/NavigationDemo.Web/NavigationDemo.Web.csproj.

I suppose that is partly due to the other projects in my solution with dependencies like this:

<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.1.*" /> <PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="2.1.*" /> <PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="2.1.*" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="2.1.*" /> <PackageReference Include="Microsoft.Extensions.Options" Version="2.1.*" /> <PackageReference Include="Newtonsoft.Json" Version="11.0.*" /> <PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="2.1.*" /> <PackageReference Include="Microsoft.AspNetCore.Mvc.Razor" Version="2.1.*" /> <PackageReference Include="Microsoft.AspNetCore.Mvc.Abstractions" Version="2.1.*" /> 

There does not seem to be an updated sdk for 2.1.1 but the availability of Microsoft.AspNetCore.App 2.1.1 on GitHub seems to be breaking things for me.

 


The 2.1.1 (preview) SDK is available on their GitHub.

You can download directly here:

https://dotnetfeed.blob.core.windows.net/orchestrated-release-2-1/20180605-09/final/assets/Sdk/2.1.301-preview-008906/dotnet-sdk-2.1.301-win-x64.exe

See:

https://github.com/dotnet/versions/tree/7a833dddfddc27f2074b755b94234a25b9757637/build-info/dotnet/product/cli/release/2.1

We are still waiting on the official SDK...

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: