diff --git a/src/Directory.props b/src/Directory.props index b0630fe3..eccd3517 100644 --- a/src/Directory.props +++ b/src/Directory.props @@ -4,7 +4,8 @@ dotnet roslyn true - analyzers/dotnet/cs + 4.0 + analyzers/dotnet/roslyn$(ThisAssemblyMinimumRoslynVersion)/cs false https://api.nuget.org/v3/index.json $([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\..\nugetizer\bin'));$(RestoreSources) diff --git a/src/ThisAssembly.AssemblyInfo/ThisAssembly.AssemblyInfo.csproj b/src/ThisAssembly.AssemblyInfo/ThisAssembly.AssemblyInfo.csproj index d07d1adf..8fd25447 100644 --- a/src/ThisAssembly.AssemblyInfo/ThisAssembly.AssemblyInfo.csproj +++ b/src/ThisAssembly.AssemblyInfo/ThisAssembly.AssemblyInfo.csproj @@ -8,7 +8,7 @@ ThisAssembly.AssemblyInfo - ** C# 9.0+ ONLY ** + This package generates a static `ThisAssembly.Info` class with public constants exposing the following attribute values generated by default for SDK style projects: diff --git a/src/ThisAssembly.Constants/ThisAssembly.Constants.csproj b/src/ThisAssembly.Constants/ThisAssembly.Constants.csproj index 63840e32..bd17f326 100644 --- a/src/ThisAssembly.Constants/ThisAssembly.Constants.csproj +++ b/src/ThisAssembly.Constants/ThisAssembly.Constants.csproj @@ -8,7 +8,7 @@ ThisAssembly.Constants - ** C# 9.0+ ONLY ** + This package generates a static `ThisAssembly.Constants` class with public constants for each Constant MSBuild item in the project. diff --git a/src/ThisAssembly.Metadata/ThisAssembly.Metadata.csproj b/src/ThisAssembly.Metadata/ThisAssembly.Metadata.csproj index d50be096..7160a9f5 100644 --- a/src/ThisAssembly.Metadata/ThisAssembly.Metadata.csproj +++ b/src/ThisAssembly.Metadata/ThisAssembly.Metadata.csproj @@ -8,7 +8,7 @@ ThisAssembly.Metadata - ** C# 9.0+ ONLY ** + This package generates a static `ThisAssembly.Metadata` class with public constants exposing each `[System.Reflection.AssemblyMetadata(..)]` defined for the project, such as when using .NET 5.0+ support for `AssemblyMetadata` MSBuild items. diff --git a/src/ThisAssembly.Prerequisites/ThisAssembly.Prerequisites.csproj b/src/ThisAssembly.Prerequisites/ThisAssembly.Prerequisites.csproj index 3802f252..154ee17c 100644 --- a/src/ThisAssembly.Prerequisites/ThisAssembly.Prerequisites.csproj +++ b/src/ThisAssembly.Prerequisites/ThisAssembly.Prerequisites.csproj @@ -7,11 +7,7 @@ ThisAssembly.Prerequisites - Ensures that referencing project satisfies the prerequisites for ThisAssembly, namely: - -* MSBuild 16.8+: contains the Roslyn support for source generators -* C# 9.0 or greater language: it's the only language supported by Roslyn source generators at the moment. - + Ensures that referencing project is using a compatible Compiler API (Roslyn). diff --git a/src/ThisAssembly.Prerequisites/ThisAssembly.Prerequisites.props b/src/ThisAssembly.Prerequisites/ThisAssembly.Prerequisites.props index 3d62326f..b87c19bb 100644 --- a/src/ThisAssembly.Prerequisites/ThisAssembly.Prerequisites.props +++ b/src/ThisAssembly.Prerequisites/ThisAssembly.Prerequisites.props @@ -1,7 +1,9 @@ - - - - + + + 4.0 + + \ No newline at end of file diff --git a/src/ThisAssembly.Prerequisites/ThisAssembly.Prerequisites.targets b/src/ThisAssembly.Prerequisites/ThisAssembly.Prerequisites.targets index e99cf302..a7f41858 100644 --- a/src/ThisAssembly.Prerequisites/ThisAssembly.Prerequisites.targets +++ b/src/ThisAssembly.Prerequisites/ThisAssembly.Prerequisites.targets @@ -1,18 +1,21 @@ - + - + + - - + + + $(CompilerApiVersion.Substring(6)) + 0.0 + + + + diff --git a/src/ThisAssembly.Project/ThisAssembly.Project.csproj b/src/ThisAssembly.Project/ThisAssembly.Project.csproj index 26e0b9fc..bb9048f3 100644 --- a/src/ThisAssembly.Project/ThisAssembly.Project.csproj +++ b/src/ThisAssembly.Project/ThisAssembly.Project.csproj @@ -8,7 +8,7 @@ ThisAssembly.Project - ** C# 9.0+ ONLY ** + This package generates a static `ThisAssembly.Project` class with public constants exposing project properties that have been opted into this mechanism by adding them as `ProjectProperty` MSBuild items in project file, such as: diff --git a/src/ThisAssembly.Resources/ThisAssembly.Resources.csproj b/src/ThisAssembly.Resources/ThisAssembly.Resources.csproj index 3565c5b2..1bcf9f15 100644 --- a/src/ThisAssembly.Resources/ThisAssembly.Resources.csproj +++ b/src/ThisAssembly.Resources/ThisAssembly.Resources.csproj @@ -13,7 +13,6 @@ ThisAssembly.Resources - ** C# 9.0+ ONLY ** This package generates a static `ThisAssembly.Resources` class with public properties exposing `string` and `Stream` shortcuts to access embedded resources. diff --git a/src/ThisAssembly.Strings/ThisAssembly.Strings.csproj b/src/ThisAssembly.Strings/ThisAssembly.Strings.csproj index 8138c1b2..7982c323 100644 --- a/src/ThisAssembly.Strings/ThisAssembly.Strings.csproj +++ b/src/ThisAssembly.Strings/ThisAssembly.Strings.csproj @@ -8,7 +8,7 @@ ThisAssembly.Strings - ** C# 9.0+ ONLY ** + This package generates a static `ThisAssembly.Strings` class with public constants exposing string resources in .resx files or methods with the right number of parameters for strings that use formatting parameters. diff --git a/src/ThisAssembly.Tests/ThisAssembly.Tests.csproj b/src/ThisAssembly.Tests/ThisAssembly.Tests.csproj index cd2f8d11..cfa29a75 100644 --- a/src/ThisAssembly.Tests/ThisAssembly.Tests.csproj +++ b/src/ThisAssembly.Tests/ThisAssembly.Tests.csproj @@ -6,7 +6,6 @@ net472 ThisAssemblyTests true - $(GetTargetPathDependsOn);GetDependencyTargetPaths true @@ -64,14 +63,6 @@ - - - - - - diff --git a/src/ThisAssembly/ThisAssembly.csproj b/src/ThisAssembly/ThisAssembly.csproj index c9ec4736..23be382b 100644 --- a/src/ThisAssembly/ThisAssembly.csproj +++ b/src/ThisAssembly/ThisAssembly.csproj @@ -8,7 +8,7 @@ ThisAssembly - Meta-package that includes all ThisAssembly.* packages. ** C# 9.0 ONLY ** + Meta-package that includes all ThisAssembly.* packages. @@ -26,11 +26,11 @@ + -