question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preview builds: The FrameworkReference 'Microsoft.AspNetCore.App' was not recognized

See original GitHub issue

I’m trying to pull in 1.1.0-preview1-10442 into the latest version of Crankier, but when I use any of the preview packages it fails on build:

C:\Program Files\dotnet\sdk\3.0.100-preview7-012821\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(274,5): error NETSDK1073: The FrameworkReference ‘Microsoft.AspNetCore.App’ was not recognized [c:\git\aspnetcore\src\SignalR\perf\benchmarkapps\Crankier\Crankier.csproj

Using 1.0.12 builds but fails at runtime with:

System.MissingMethodException: Method not found: ‘System.Threading.Tasks.Task Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.DisposeAsync()’

Any pointers to unblock me here appreciated - branch here.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
staff0rdcommented, Sep 1, 2019

Ah, I see the PR. It seems as though

<DisableTransitiveFrameworkReferences>true</DisableTransitiveFrameworkReferences>

solves this also.

0reactions
staff0rdcommented, Sep 1, 2019

@ccic, that perf guide is most informative, thanks for pointing it out.

Thanks @JialinXin, the workaround with TransitiveFrameworkReference worked for me - is that reference type documented anywhere?

Read more comments on GitHub >

github_iconTop Results From Across the Web

The FrameworkReference was not recognized - .NET CLI
This error typically means there is a version of a particular FrameworkReference that the SDK cannot find. Try deleting your obj and bin ......
Read more >
The FrameworkReference 'Microsoft.AspNetCore.App' was ...
NETSDK1073: The FrameworkReference 'Microsoft. AspNetCore. App' was not recognized. How to fix it?
Read more >
Can't build app because of The FrameworkReference ...
Can't build app because of The FrameworkReference 'Microsoft.NETCore.App' was not recognized ... App' was not recognized exception in build console
Read more >
The FrameworkReference 'Microsoft.AspNetCore.App' was ...
I'm trying to upgrade my library project from .net core 2.2 to .net core 3.0 using below setup for the .csproj netstandard2.0 latest....
Read more >
.NET Core 3.1 - The FrameworkReference 'Microsoft ...
App' was not recognized : Today I upgraded my .NET Core 2.2 application to 3.1. My solution builds fine in Visual Studio but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found