'global usings and .NET Standard 2.0

I recently recognized that I can use the C# 10 feature file-scoped namespaces in .NET Standard 2.0 projects as well by setting <LangVersion>10</LangVersion> in the csproj file.

However, global usings don't work that way, I'm getting compiler errors due to missing using statements.

Are there any tweaks so that I can use global usings in a .NET Standard 2.0 library as well?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source