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.

Custom SDK Microsoft.NET.Sdk.IL causing exception in dependencies tree

See original GitHub issue

Reported by @ViktorHofer.

Repro steps:

Error:

Must contain activeTargetFramework (.NETCoreApp,Version=v6.0). Parameter name: dependenciesByTargetFramework

Exception:

Recoverable
System.AggregateException: Project system data flow 'DataflowBlockSlim (ActionBlockSlimAsync`1 : 17673919)' closed because of an exception: System.AggregateException: One or more errors occurred. ---> System.ArgumentException: Must contain activeTargetFramework (.NETCoreApp,Version=v6.0).
Parameter name: dependenciesByTargetFramework
at Microsoft.VisualStudio.ProjectSystem.Tree.Dependencies.Snapshot.DependenciesSnapshot..ctor(TargetFramework activeTargetFramework, ImmutableDictionary`2 dependenciesByTargetFramework)
at Microsoft.VisualStudio.ProjectSystem.Tree.Dependencies.Snapshot.DependenciesSnapshot.SetTargets(ImmutableArray`1 targetFrameworks, TargetFramework activeTargetFramework)
at Microsoft.VisualStudio.ProjectSystem.Tree.Dependencies.Subscriptions.DependenciesSnapshotProvider.<>c__DisplayClass32_0.<UpdateProjectContextAndSubscriptionsAsync>b__2(DependenciesSnapshot previousSnapshot)
at Microsoft.VisualStudio.ProjectSystem.Tree.Dependencies.Subscriptions.DependenciesSnapshotProvider.SnapshotUpdater.TryUpdate(Func`2 updateFunc, CancellationToken token)
at Microsoft.VisualStudio.ProjectSystem.Tree.Dependencies.Subscriptions.DependenciesSnapshotProvider.<<UpdateProjectContextAndSubscriptionsAsync>b__32_0>d.MoveNext()

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
drewnoakescommented, Dec 15, 2020

I will make a change to the error message to help diagnose this problem. It would be useful to know the set of target frameworks it expects activeTargetFramework to be in.

1reaction
dsplaistedcommented, Dec 4, 2020

If this is a bug in the custom SDK, there still needs to be a way to figure out what it’s doing wrong.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The SDK 'Microsoft.NET.Sdk' specified could not be found. ...
Since Visual Studio 2022 updated from version 17.4 to 17.5, I couldn't load my project. and get the error "The SDK 'Microsoft.NET.
Read more >
NET project SDK overview
NET projects can package custom MSBuild targets and properties for use by projects that consume the package. Use this type of extensibility when ......
Read more >
NETSDK1141: Unable to resolve the .NET SDK version as ...
NET SDK version as specified in the global.json located at C:\path\global.json. Cause. The SDK version in the global.json file is incorrectly ...
Read more >
dotnet sdk is installed but not recognized - Linux Ubuntu ...
I had the same problem, and here's what I did to resolve it. Removed all .NET packages sudo apt remove 'dotnet*' sudo apt...
Read more >
The SDK 'Microsoft.NET.Sdk' specified could not be found - ...
I encountered this error after playing around with .Net Core 2.0 installation and seemingly messing it up. I would get this same error...
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