SourceCodeGenerator.Net project added.
This commit is contained in:
1 parent
12083c4682
commit
e7c424dfa9
3 files changed
+45
No files matched your search
@@ -9,6 +9,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Recyclable.CollectionsTests
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Recyclable.Collections.Benchmarks", "Recyclable.Collections.Benchmarks\Recyclable.Collections.Benchmarks.csproj", "{CDC0CF78-FC11-43E3-9059-3261DA3639D1}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SourceCodeGenerator.Net", "SourceCodeGenerator.Net\SourceCodeGenerator.Net.csproj", "{30C187CF-D469-48FC-8D35-6EB031535668}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -29,6 +31,14 @@ Global
|
||||
{CDC0CF78-FC11-43E3-9059-3261DA3639D1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{CDC0CF78-FC11-43E3-9059-3261DA3639D1}.Release|x64.ActiveCfg = Release|x64
|
||||
{CDC0CF78-FC11-43E3-9059-3261DA3639D1}.Release|x64.Build.0 = Release|x64
|
||||
{30C187CF-D469-48FC-8D35-6EB031535668}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{30C187CF-D469-48FC-8D35-6EB031535668}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{30C187CF-D469-48FC-8D35-6EB031535668}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{30C187CF-D469-48FC-8D35-6EB031535668}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{30C187CF-D469-48FC-8D35-6EB031535668}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{30C187CF-D469-48FC-8D35-6EB031535668}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{30C187CF-D469-48FC-8D35-6EB031535668}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{30C187CF-D469-48FC-8D35-6EB031535668}.Release|x64.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
using Microsoft.CodeAnalysis;
|
||||
using System;
|
||||
|
||||
namespace SourceCodeGenerator.Net
|
||||
{
|
||||
[Generator]
|
||||
public class RecyclableCollectionsGenerator : ISourceGenerator
|
||||
{
|
||||
public void Execute(GeneratorExecutionContext context)
|
||||
{
|
||||
context.AddSource($".g.cs");
|
||||
}
|
||||
|
||||
public void Initialize(GeneratorInitializationContext context)
|
||||
{
|
||||
// Nothing to initialize at this point yet
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<EnforceExtendedAnalyzerRules>True</EnforceExtendedAnalyzerRules>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.6.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in new issue
Block a user