NuGet updates the TargetFrameworks according to the documentation's support requirements. #1
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
原因:文档上写支持
.NET Framework 4.6.1+ or .NET Core 3.1+ / .NET 5.0+, 但是 NuGet 支持的 Framework 是net8。工作:
net8.0变更为net8.0;net5.0;netcoreapp3.1;net462Error CS8400 : 功能“全局 using 指令”在 C# 8.0 中不可用。请使用语言版本 10.0 或更高版本。Reason: The document states that it supports ".NET Framework 4.6.1+ or .NET Core 3.1+ / .NET 5.0+". However, NuGet supports the Framework of "net8".
Work:
net8.0tonet8.0;net5.0;netcoreapp3.1;net462LangVersionhas been added and the error "Error CS8400: The feature 'Global Using Directive' is not available in C# 8.0. Please use a language version 10.0 or higher." has been fixed. `