Skip to content
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 NuGetizer.sln
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
.github\workflows\release.yml = .github\workflows\release.yml
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeAnalysis", "src\CodeAnalysis\CodeAnalysis.csproj", "{8D400518-0FF9-4180-8D2A-D152D7A59075}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -51,6 +53,10 @@ Global
{53B47B9E-212F-420D-9E9A-68EC3B44D39E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{53B47B9E-212F-420D-9E9A-68EC3B44D39E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{53B47B9E-212F-420D-9E9A-68EC3B44D39E}.Release|Any CPU.Build.0 = Release|Any CPU
{8D400518-0FF9-4180-8D2A-D152D7A59075}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8D400518-0FF9-4180-8D2A-D152D7A59075}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8D400518-0FF9-4180-8D2A-D152D7A59075}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8D400518-0FF9-4180-8D2A-D152D7A59075}.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>
<AssemblyName>NuGetizer.CodeAnalysis</AssemblyName>
<TargetFramework>netstandard2.0</TargetFramework>
<IsPackable>false</IsPackable>
<PackFolder>analyzers/dotnet</PackFolder>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ThisAssembly.AssemblyInfo" Version="1.2.5" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" Pack="false" />
<PackageReference Include="Devlooped.SponsorLink" Version="0.9.2" />
</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.CredentialManager;

[Generator]
[DiagnosticAnalyzer(LanguageNames.CSharp, LanguageNames.VisualBasic, LanguageNames.FSharp)]
class SponsorLinker : SponsorLink
{
public SponsorLinker() : base(SponsorLinkSettings.Create(
"devlooped", "NuGetizer",
version: new Version(ThisAssembly.Info.Version).ToString(2)
#if DEBUG
, quietDays: 0
#endif
))
{ }
}
2 changes: 1 addition & 1 deletion src/Directory.targets
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<Import Project="$(MSBuildThisFileDirectory)NuGetizer.Tasks\$(OutputPath)NuGetizer.targets"
Condition="'$(IsPackable)' == 'true' AND '$(NuGetize)' == 'true'" />
Condition="($(IsPackable) == 'true' OR $(PackFolder) != '') AND $(NuGetize) == 'true'" />

<PropertyGroup>
<PackFolderKindFile>$(IntermediateOutputPath)PackFolderKind.g$(DefaultLanguageSourceExtension)</PackFolderKindFile>
Expand Down
4 changes: 4 additions & 0 deletions src/NuGetizer.Tasks/NuGetizer.Tasks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
<None Include="..\..\readme.md" PackagePath="readme.md" />
</ItemGroup>

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

<ItemGroup>
<EmbeddedResource Update="Resources.resx" Generator="" />
</ItemGroup>
Expand Down