Is the microsoft.aspnetcore.app.2.1.0-preview2-final.nupkg package built correctly ( served via Nuget.org ) ?
It is only 4k and does not appear to contain any valid 'lib' files. Also the "C:\Program Files\dotnet\shared\" directory is not populated with any preview2 files, so IIS Express fails within VS.
Thanks for checking
Ed
UPDATE: With the release of the "2.1.0-preview2-final shared framework." files, things are now working as would be expected. Thanks very much for the help and support
Instructions will be published shortly.
Microsoft.AspNetCore.App is a metapackage. It doesn't contain binaries; it points to other packages which do.
I'm having all sort of issues with the nuget package not finding other compatible packages when targeting netcoreapp2.1 ? is this working; this can be reproduced by using the standard aspnet.core web mvc template app selecting .net core 2.1 from within VS2017 15.7.0 preview 3
FYI
C:\DEV\WebApplication210P2\WebApplication210P2>dotnet add package Microsoft.AspNetCore.App --version 2.1.0-preview2-final
Writing C:\Users\grahamh\AppData\Local\Temp\tmpD11B.tmp
info : Adding PackageReference for package 'Microsoft.AspNetCore.App' into project 'C:\DEV\WebApplication210P2\WebApplication210P2\WebApplication210P2.csproj'.
log : Restoring packages for C:\DEV\WebApplication210P2\WebApplication210P2\WebApplication210P2.csproj...
info : Package 'Microsoft.AspNetCore.App' is compatible with all the specified frameworks in project 'C:\DEV\WebApplication210P2\WebApplication210P2\WebApplication210P2.csproj'.
info : PackageReference for package 'Microsoft.AspNetCore.App' version '2.1.0-preview2-final' updated in file 'C:\DEV\WebApplication210P2\WebApplication210P2\WebApplication210P2.csproj'.
C:\DEV\WebApplication210P2\WebApplication210P2>dotnet restore
Restoring packages for C:\DEV\WebApplication210P2\WebApplication210P2\WebApplication210P2.csproj...
Generating MSBuild file C:\DEV\WebApplication210P2\WebApplication210P2\obj\WebApplication210P2.csproj.nuget.g.props.
Restore completed in 546.76 ms for C:\DEV\WebApplication210P2\WebApplication210P2\WebApplication210P2.csproj.
C:\DEV\WebApplication210P2\WebApplication210P2>dotnet build
Microsoft (R) Build Engine version 15.7.124.19828 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 39.61 ms for C:\DEV\WebApplication210P2\WebApplication210P2\WebApplication210P2.csproj.
You are working with a preview version of the .NET Core SDK. You can define the SDK version via a global.json file in the current project. More at https://go.microsoft.com/fwlink/?linkid=869452
WebApplication210P2 -> C:\DEV\WebApplication210P2\WebApplication210P2\bin\Debug\netcoreapp2.1\WebApplication210P2.dll
WebApplication210P2 -> C:\DEV\WebApplication210P2\WebApplication210P2\bin\Debug\netcoreapp2.1\WebApplication210P2.Views.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.52
C:\DEV\WebApplication210P2\WebApplication210P2>dotnet run
Using launch settings from C:\DEV\WebApplication210P2\WebApplication210P2\Properties\launchSettings.json...
It was not possible to find any compatible framework version
The specified framework 'Microsoft.AspNetCore.App', version '2.1.0-preview2-final' 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-preview1-final at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.0-preview2-30431 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
C:\DEV\WebApplication210P2\WebApplication210P2>
As mentioned in the error, you're missing the 2.1.0-preview2-final shared framework. It hasn't been published yet to https://aka.ms/dotnet-download because we're having issues. In the meantime, you can get it here: https://github.com/dotnet/versions/tree/master/build-info/dotnet/product/cli/release/2.1-preview2#aspnet-core-runtime-installers-and-binaries
I鈥檓 also seeing that swashbuckle seems to have issues when using the 2.1.0-preview packages I鈥檓 investigating and will raise an issue when I know more and can give steps on how to repo with a link to a github repo
Closing issue as the ASP.NET Core file issue has been resolved. The additional third party concerns, unfortunately are part of a "preview release" and will need to be addressed separately with those vendors.