diff --git a/GitInfo.sln b/GitInfo.sln index 74fcbf9..706d55d 100644 --- a/GitInfo.sln +++ b/GitInfo.sln @@ -1,16 +1,20 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.31613.86 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33213.308 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A5ED9F27-FAE0-45B7-84F9-9D6C35C7E1AC}" ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig + .github\workflows\build.yml = .github\workflows\build.yml src\Directory.props = src\Directory.props + .github\workflows\publish.yml = .github\workflows\publish.yml EndProjectSection EndProject Project("{13B669BE-BB05-4DDF-9536-439F39A36129}") = "GitInfo", "src\GitInfo\GitInfo.msbuildproj", "{1D5D9080-CF62-49E1-87AC-F2EDA58A824E}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Analyzer", "src\Analyzer\Analyzer.csproj", "{B96EB399-A569-4C4B-A702-99D6050B1FAF}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -21,6 +25,10 @@ Global {1D5D9080-CF62-49E1-87AC-F2EDA58A824E}.Debug|Any CPU.Build.0 = Debug|Any CPU {1D5D9080-CF62-49E1-87AC-F2EDA58A824E}.Release|Any CPU.ActiveCfg = Release|Any CPU {1D5D9080-CF62-49E1-87AC-F2EDA58A824E}.Release|Any CPU.Build.0 = Release|Any CPU + {B96EB399-A569-4C4B-A702-99D6050B1FAF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B96EB399-A569-4C4B-A702-99D6050B1FAF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B96EB399-A569-4C4B-A702-99D6050B1FAF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B96EB399-A569-4C4B-A702-99D6050B1FAF}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/Analyzer/Analyzer.csproj b/src/Analyzer/Analyzer.csproj new file mode 100644 index 0000000..35ca81f --- /dev/null +++ b/src/Analyzer/Analyzer.csproj @@ -0,0 +1,15 @@ + + + + netstandard2.0 + analyzers/dotnet + + + + + + + + + + diff --git a/src/Analyzer/SponsorLinker.cs b/src/Analyzer/SponsorLinker.cs new file mode 100644 index 0000000..c4c95f3 --- /dev/null +++ b/src/Analyzer/SponsorLinker.cs @@ -0,0 +1,20 @@ +using System; +using Devlooped; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.Diagnostics; + +namespace GitInfo; + +[Generator] +[DiagnosticAnalyzer(LanguageNames.CSharp, LanguageNames.VisualBasic, LanguageNames.FSharp)] +class SponsorLinker : SponsorLink +{ + public SponsorLinker() : base(SponsorLinkSettings.Create( + "devlooped", "GitInfo", + version: new Version(ThisAssembly.Info.Version).ToString(2) +#if DEBUG + , quietDays: 0 +#endif + )) + { } +} \ No newline at end of file diff --git a/src/GitInfo/GitInfo.msbuildproj b/src/GitInfo/GitInfo.msbuildproj index 7a0c2e1..368b016 100644 --- a/src/GitInfo/GitInfo.msbuildproj +++ b/src/GitInfo/GitInfo.msbuildproj @@ -10,8 +10,8 @@ readme.md - - + + @@ -19,4 +19,7 @@ + + + \ No newline at end of file