Skip to content

Commit b57ebee

Browse files
committed
Add SponsorLink
This introduces SponsorLink to the project, so we can properly attribute sponsorships from uesrs. See https://github.com/devlooped/SponsorLink/
1 parent 02250f4 commit b57ebee

File tree

14 files changed

+94
-1
lines changed

14 files changed

+94
-1
lines changed

src/Directory.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
<!-- See https://github.com/scriban/scriban#source-embedding -->
1616
<PackageScribanIncludeSource>true</PackageScribanIncludeSource>
17+
18+
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
1719
</PropertyGroup>
1820

1921
<PropertyGroup Label="Build">
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Devlooped;
2+
using Microsoft.CodeAnalysis;
3+
4+
namespace ThisAssembly;
5+
6+
[Generator]
7+
class Generator : IIncrementalGenerator
8+
{
9+
readonly SponsorLink link;
10+
11+
public Generator() => link = new SponsorLink("devlooped", "ThisAssembly.AssemblyInfo");
12+
13+
public void Initialize(IncrementalGeneratorInitializationContext context) => link.Initialize(context);
14+
}

src/ThisAssembly.AssemblyInfo/ThisAssembly.AssemblyInfo.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ on the `ThisAssembly.Info` class.
2727
</PropertyGroup>
2828

2929
<ItemGroup>
30+
<PackageReference Include="Devlooped.SponsorLink" Version="0.3.0" />
3031
<PackageReference Include="NuGetizer" Version="0.9.1" />
3132
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="all" />
3233

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Devlooped;
2+
using Microsoft.CodeAnalysis;
3+
4+
namespace ThisAssembly;
5+
6+
[Generator]
7+
class Generator : IIncrementalGenerator
8+
{
9+
readonly SponsorLink link;
10+
11+
public Generator() => link = new SponsorLink("devlooped", "ThisAssembly.Constants");
12+
13+
public void Initialize(IncrementalGeneratorInitializationContext context) => link.Initialize(context);
14+
}

src/ThisAssembly.Constants/ThisAssembly.Constants.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ C#:
4747
</ItemGroup>
4848

4949
<ItemGroup>
50+
<PackageReference Include="Devlooped.SponsorLink" Version="0.3.0" />
5051
<PackageReference Include="NuGetizer" Version="0.9.1" />
5152
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="all" />
5253

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Devlooped;
2+
using Microsoft.CodeAnalysis;
3+
4+
namespace ThisAssembly;
5+
6+
[Generator]
7+
class Generator : IIncrementalGenerator
8+
{
9+
readonly SponsorLink link;
10+
11+
public Generator() => link = new SponsorLink("devlooped", "ThisAssembly.Metadata");
12+
13+
public void Initialize(IncrementalGeneratorInitializationContext context) => link.Initialize(context);
14+
}

src/ThisAssembly.Metadata/ThisAssembly.Metadata.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ C#:
3939
</PropertyGroup>
4040

4141
<ItemGroup>
42+
<PackageReference Include="Devlooped.SponsorLink" Version="0.3.0" />
4243
<PackageReference Include="NuGetizer" Version="0.9.1" />
4344
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="all" />
4445

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Devlooped;
2+
using Microsoft.CodeAnalysis;
3+
4+
namespace ThisAssembly;
5+
6+
[Generator]
7+
class Generator : IIncrementalGenerator
8+
{
9+
readonly SponsorLink link;
10+
11+
public Generator() => link = new SponsorLink("devlooped", "ThisAssembly.Project");
12+
13+
public void Initialize(IncrementalGeneratorInitializationContext context) => link.Initialize(context);
14+
}

src/ThisAssembly.Project/ThisAssembly.Project.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ C#:
3838
</PropertyGroup>
3939

4040
<ItemGroup>
41+
<PackageReference Include="Devlooped.SponsorLink" Version="0.3.0" />
4142
<PackageReference Include="NuGetizer" Version="0.9.1" />
4243
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="all" />
4344

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Devlooped;
2+
using Microsoft.CodeAnalysis;
3+
4+
namespace ThisAssembly;
5+
6+
[Generator]
7+
class Generator : IIncrementalGenerator
8+
{
9+
readonly SponsorLink link;
10+
11+
public Generator() => link = new SponsorLink("devlooped", "ThisAssembly.Resources");
12+
13+
public void Initialize(IncrementalGeneratorInitializationContext context) => link.Initialize(context);
14+
}

0 commit comments

Comments
 (0)