Reference to "Microsoft.NETFramework.ReferenceAssemblies.net40" bubbling up
See original GitHub issueHi there,
VS shows “Microsoft.NETFramework.ReferenceAssemblies.net40” being added to a net462 project with the latest release:
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:
- Created a year ago
- Comments:6 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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)