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.

Reference to "Microsoft.NETFramework.ReferenceAssemblies.net40" bubbling up

See original GitHub issue

Hi there,

VS shows “Microsoft.NETFramework.ReferenceAssemblies.net40” being added to a net462 project with the latest release: image

Reason is that the package reference is not defined as private:

    <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net40" Version="1.0.2" />

nuget.org provides following snippet (also for 1.0.2):

<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net40" Version="1.0.3">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>

Was the reference just manually added, or is there a reason behind making the dependency transient? If not, could you possible revert to a private one?

And, could you possibly update the reference to 1.0.3?

Best Andreas

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
tom-englertcommented, Oct 15, 2022

Usually I prefer a flat history without the cluttered graph generated by merge, which is more confusing than helpful. (https://www.tugberkugurlu.com/archive/resistance-against-london-tube-map-commit-history-a-k-a--git-merge-hell)

Anyhow, thanks to dependabot the history of all Fody repos is rendered totally useless, so using merge instead of rebase would not make it worse.

1reaction
tom-englertcommented, Oct 15, 2022

I have one machine where it doesn’t work without, but only within VS, MSBuild works fine. Got no clue where the root cause is.

Also having net40 as the first entry in the <TargetFrameworkds> results in this fancy behavior, where VS is playing with itself: (I don’t click anything, and this will run forever) devenv_eCS6qB9tzw

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build apps against Microsoft.NETFramework. ...
Learn how to reference the .NET Framework Reference Assemblies in your project, when you can't install a matching developer pack.
Read more >
The reference assemblies for .NETFramework, Version=v4. ...
I installed Visual Studio Enterprise 2022 64 bit Version 17.1.3 on Windows 10 21H2 and with Python 3.9.12 installed under C:\Python\Python39_64.
Read more >
Releases · Fody/PropertyChanged
#901 Invalid Codegen for Value Types (Breaks .NET 7); #902 Reference to "Microsoft.NETFramework.ReferenceAssemblies.net40" bubbling up. Assets 2.
Read more >
Build apps against Microsoft.NETFramework. ...
Try the following steps. Install Microsoft.NETFramework.ReferenceAssemblies.net40. User's image. Restore NuGet packages: msbuild /t:restore.
Read more >
Microsoft.NETFramework.ReferenceAssemblies.net40 1.0.3
Microsoft .NET Framework Reference Assemblies.
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