Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SponsorLink to ensure ongoing development and support #5

Merged
merged 1 commit into from
Mar 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Mvp.Xml.sln
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mvp.Xml.Tests", "src\Mvp.Xm
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MethodRenamer", "src\MethodRenamer\MethodRenamer.csproj", "{646EA64C-B277-49F7-87CA-CE101996A36D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mvp.Xml.CodeAnalysis", "src\Mvp.Xml.CodeAnalysis\Mvp.Xml.CodeAnalysis.csproj", "{C3C04A7C-ACE5-4A82-B2B7-2ECD6A6A9757}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -34,6 +36,10 @@ Global
{646EA64C-B277-49F7-87CA-CE101996A36D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{646EA64C-B277-49F7-87CA-CE101996A36D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{646EA64C-B277-49F7-87CA-CE101996A36D}.Release|Any CPU.Build.0 = Release|Any CPU
{C3C04A7C-ACE5-4A82-B2B7-2ECD6A6A9757}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C3C04A7C-ACE5-4A82-B2B7-2ECD6A6A9757}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C3C04A7C-ACE5-4A82-B2B7-2ECD6A6A9757}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C3C04A7C-ACE5-4A82-B2B7-2ECD6A6A9757}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
15 changes: 15 additions & 0 deletions src/Mvp.Xml.CodeAnalysis/Mvp.Xml.CodeAnalysis.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackFolder>analyzers/dotnet/roslyn4.0</PackFolder>
</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.2" />
</ItemGroup>

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

namespace Mvp.Xml;

[DiagnosticAnalyzer(LanguageNames.CSharp, LanguageNames.VisualBasic, LanguageNames.FSharp)]
class SponsorLinker : SponsorLink
{
public SponsorLinker() : base(SponsorLinkSettings.Create(
"devlooped", "Mvp.Xml",
diagnosticsIdPrefix: "MXML",
version: new Version(ThisAssembly.Info.Version).ToString(3)
#if DEBUG
, quietDays: 0
#endif
))
{ }
}
2 changes: 2 additions & 0 deletions src/Mvp.Xml.Tests/Mvp.Xml.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
<PackageReference Include="Devlooped.SponsorLink" Version="0.10.2" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Mvp.Xml\Mvp.Xml.csproj" />
<ProjectReference Include="..\Mvp.Xml.CodeAnalysis\Mvp.Xml.CodeAnalysis.csproj" ReferenceOutputAssembly="false" OutputItemType="Analyzer" />
</ItemGroup>

<ItemGroup>
Expand Down
9 changes: 3 additions & 6 deletions src/Mvp.Xml/Mvp.Xml.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,16 @@ making XML programming in .NET platform easier, more productive and effective.
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NuGetizer" Version="1.0.1" PrivateAssets="all" />
<PackageReference Include="NuGetizer" Version="1.0.1" PrivateAssets="all" PackTransitive="false" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="all" />
<PackageReference Include="System.CodeDom" Version="6.0.0" />
<PackageReference Include="System.Security.Permissions" Version="6.0.0" />
<PackageReference Include="System.Xml.XmlDocument" Version="4.3.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\MethodRenamer\MethodRenamer.csproj"
ReferenceOutputAssembly="false"
OutputItemType="None"
SkipGetTargetFrameworkProperties="true"
Pack="false" />
<ProjectReference Include="..\MethodRenamer\MethodRenamer.csproj" ReferenceOutputAssembly="false" OutputItemType="None" SkipGetTargetFrameworkProperties="true" Pack="false" />
<ProjectReference Include="..\Mvp.Xml.CodeAnalysis\Mvp.Xml.CodeAnalysis.csproj" ReferenceOutputAssembly="false" OutputItemType="None" />
</ItemGroup>

<ItemGroup>
Expand Down