Browse Source

Generic attributes were added in .net7 and c# 11.

Brandon Thetford 1 year ago
parent
commit
1818c2441e
1 changed files with 1 additions and 3 deletions
  1. 1 3
      UnitTests/UnitTests.csproj

+ 1 - 3
UnitTests/UnitTests.csproj

@@ -10,9 +10,7 @@
   </PropertyGroup>
   <PropertyGroup>
     <TargetFramework>net8.0</TargetFramework>
-    <!-- https://stackoverflow.com/questions/294216/why-does-c-sharp-forbid-generic-attribute-types -->
-    <!-- for AutoInitShutdown attribute -->
-    <LangVersion>Preview</LangVersion>
+    <LangVersion>12</LangVersion>
     <IsPackable>false</IsPackable>
     <UseDataCollector />
   </PropertyGroup>