https://github.com/f2calv/vs-nuget-issue
demo of nuget annoyances in vs
https://github.com/f2calv/vs-nuget-issue
Last synced: about 1 month ago
JSON representation
demo of nuget annoyances in vs
- Host: GitHub
- URL: https://github.com/f2calv/vs-nuget-issue
- Owner: f2calv
- Created: 2021-08-19T08:41:25.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-19T08:52:22.000Z (almost 5 years ago)
- Last Synced: 2025-03-21T11:36:41.608Z (about 1 year ago)
- Language: C#
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Annoyances in Visual Studio 2019/2022
## Directory.Build.props
- VS finds outdated NuGet dependencies in Directory.Build.props - GREAT :)
- When you attempt to update that outdated dependency instead of updating the `Directory.Build.props` file VS adds the new dependency version to all CSPROJ files instead - NOT GREAT :(
[GitHub Issue](https://github.com/NuGet/Home/issues/10850)
## Unable to ignore outdated dependencies
MyLibrary.csproj has multiple target frameworks, a package reference for the netstandard2.0 target is deliberately old due to breaking changes in newer versions;
```xml
netstandard2.0;net5.0;net6.0
enable
```
Every time you use NuGet package explorer in VS it will attempts to update the older dependency which is annoying :(
There is no way to `ignore` or `skip` the older package version... or is there?