Reference to Microsoft.AspNetCore.App
not lead to an clear error when upgrade old projects to netcoreapp3.0
#4490
Labels
External
This is an issue in a component not contained in this repository. It is open for tracking purposes.
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Describe the bug
Reference to
Microsoft.AspNetCore.App
not lead to an clear error when upgrade old projects to netcoreapp3.0.To Reproduce
Steps to reproduce the behavior:
PackageReference
orFrameworkReference
toMicrosoft.AspNetCore.App
With these arguments 'dotnet run'
See error(case 1 and 2)
When use
PackageReference
, withdotnet run
in cmd failed, BUT INTERESTINGLY build&run successful in VS2019.FrameworkReference
build successful but run failed withInvalid runtimeconfig.json
.See there are duplicate items
Microsoft.AspNetCore.App
inframeworks
Microsoft.AspNetCore.App
works. But most docs only say useFrameworkReference
instead(like Breaking changes to Microsoft.AspNetCore.App in 3.0 aspnet/Announcements#325), and don't say people should remove it when upgrade.Expected behavior
Run successful or get an error to say what's wrong clearly in case 2.
And the result in
case 1
shouldn't be inconsistent betweendotnet sdk
(use directly in console) and VS2019.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
VS:
16.0.0 preview1
Add any other context about the problem here.
Include the output of
dotnet --info
The text was updated successfully, but these errors were encountered: