Skip to content

Commit

Permalink
💟 Add SponsorLink to ensure ongoing maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Apr 5, 2023
1 parent a851df7 commit ff8fc3e
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Web.sln
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Project("{13B669BE-BB05-4DDF-9536-439F39A36129}") = "Css", "src\Css\Css.msbuildp
EndProject
Project("{13B669BE-BB05-4DDF-9536-439F39A36129}") = "Html", "src\Html\Html.msbuildproj", "{82AA3B56-E65A-46D2-9072-5F7D9E5B7D7E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeAnalysis", "src\CodeAnalysis\CodeAnalysis.csproj", "{622A2825-0C12-4CE0-9F55-CE35A0995F93}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -40,6 +42,10 @@ Global
{82AA3B56-E65A-46D2-9072-5F7D9E5B7D7E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{82AA3B56-E65A-46D2-9072-5F7D9E5B7D7E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{82AA3B56-E65A-46D2-9072-5F7D9E5B7D7E}.Release|Any CPU.Build.0 = Release|Any CPU
{622A2825-0C12-4CE0-9F55-CE35A0995F93}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{622A2825-0C12-4CE0-9F55-CE35A0995F93}.Debug|Any CPU.Build.0 = Debug|Any CPU
{622A2825-0C12-4CE0-9F55-CE35A0995F93}.Release|Any CPU.ActiveCfg = Release|Any CPU
{622A2825-0C12-4CE0-9F55-CE35A0995F93}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
17 changes: 17 additions & 0 deletions src/CodeAnalysis/CodeAnalysis.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Devlooped.Web.CodeAnalysis</AssemblyName>
<PackFolder>analyzers/dotnet/roslyn4.0</PackFolder>
<SignAssembly>false</SignAssembly>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NuGetizer" Version="1.0.1" PrivateAssets="all" PackTransitive="false" />
<PackageReference Include="ThisAssembly.AssemblyInfo" Version="1.2.12" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" Pack="false" />
<PackageReference Include="Devlooped.SponsorLink" Version="0.10.3" PrivateAssets="all" />
</ItemGroup>

</Project>
19 changes: 19 additions & 0 deletions src/CodeAnalysis/SponsorLinker.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;

namespace Devlooped.Web;

[DiagnosticAnalyzer(LanguageNames.CSharp, LanguageNames.VisualBasic, LanguageNames.FSharp)]
class SponsorLinker : SponsorLink
{
public SponsorLinker() : base(SponsorLinkSettings.Create(
"devlooped", "Devlooped.Web",
diagnosticsIdPrefix: "DW",
version: new Version(ThisAssembly.Info.Version).ToString(3)
#if DEBUG
, quietDays: 0
#endif
))
{ }
}
4 changes: 4 additions & 0 deletions src/Web/Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,9 @@
<ItemGroup>
<InternalsVisibleTo Include="Devlooped.Tests" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\CodeAnalysis\CodeAnalysis.csproj" ReferenceOutputAssembly="false" OutputItemType="None" />
</ItemGroup>

</Project>

0 comments on commit ff8fc3e

Please sign in to comment.