Skip to content

Commit

Permalink
Add code fixes project
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorKrolic committed Mar 14, 2024
1 parent 67eb993 commit abec33d
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ArgumentParsing.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.9.34414.90
Expand All @@ -20,6 +20,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ArgumentParsing", "src\Argu
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ArgumentParsing.Generators", "src\ArgumentParsing.Generators\ArgumentParsing.Generators.csproj", "{40A37207-8F5A-4289-86AA-CAD12F76CDD4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArgumentParsing.CodeFixes", "src\ArgumentParsing.CodeFixes\ArgumentParsing.CodeFixes.csproj", "{1D4CE478-AC09-4A5E-A784-7830F8C2B0A9}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{75866132-EEF7-4DFB-B353-23A2A132B519}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ArgumentParsing.Tests.Unit", "tests\ArgumentParsing.Tests.Unit\ArgumentParsing.Tests.Unit.csproj", "{F1DE9D21-CC10-4E79-AE07-917919473620}"
Expand All @@ -40,6 +42,10 @@ Global
{40A37207-8F5A-4289-86AA-CAD12F76CDD4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{40A37207-8F5A-4289-86AA-CAD12F76CDD4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{40A37207-8F5A-4289-86AA-CAD12F76CDD4}.Release|Any CPU.Build.0 = Release|Any CPU
{1D4CE478-AC09-4A5E-A784-7830F8C2B0A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1D4CE478-AC09-4A5E-A784-7830F8C2B0A9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1D4CE478-AC09-4A5E-A784-7830F8C2B0A9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1D4CE478-AC09-4A5E-A784-7830F8C2B0A9}.Release|Any CPU.Build.0 = Release|Any CPU
{F1DE9D21-CC10-4E79-AE07-917919473620}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F1DE9D21-CC10-4E79-AE07-917919473620}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F1DE9D21-CC10-4E79-AE07-917919473620}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -55,6 +61,7 @@ Global
GlobalSection(NestedProjects) = preSolution
{D4C9F2B0-E066-4ADA-AECD-833E91E0A0AE} = {46554B19-7D88-4A3E-8844-D31E8971AE30}
{40A37207-8F5A-4289-86AA-CAD12F76CDD4} = {46554B19-7D88-4A3E-8844-D31E8971AE30}
{1D4CE478-AC09-4A5E-A784-7830F8C2B0A9} = {46554B19-7D88-4A3E-8844-D31E8971AE30}
{F1DE9D21-CC10-4E79-AE07-917919473620} = {75866132-EEF7-4DFB-B353-23A2A132B519}
{D9DBBC55-0513-4447-ACDA-FA9343E864F0} = {75866132-EEF7-4DFB-B353-23A2A132B519}
EndGlobalSection
Expand Down
15 changes: 15 additions & 0 deletions src/ArgumentParsing.CodeFixes/ArgumentParsing.CodeFixes.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>
<IsPackable>false</IsPackable>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(MicrosoftCodeAnalysisVersion)" PrivateAssets="all" Pack="false" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ArgumentParsing.Generators\ArgumentParsing.Generators.csproj" />
</ItemGroup>
</Project>
2 changes: 2 additions & 0 deletions src/ArgumentParsing/ArgumentParsing.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
<!-- Reference source generator without referencing the actual binary so we can be sure it is up to date when packaging this project -->
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<ProjectReference Include="..\ArgumentParsing.Generators\ArgumentParsing.Generators.csproj" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\ArgumentParsing.CodeFixes\ArgumentParsing.CodeFixes.csproj" ReferenceOutputAssembly="false" />
</ItemGroup>

<!-- Pack the source generator to the right folder -->
<ItemGroup>
<None Include="..\ArgumentParsing.Generators\bin\$(Configuration)\netstandard2.0\ArgumentParsing.Generators.dll" PackagePath="analyzers\dotnet\cs" Pack="true" Visible="false" />
<None Include="..\ArgumentParsing.CodeFixes\bin\$(Configuration)\netstandard2.0\ArgumentParsing.CodeFixes.dll" PackagePath="analyzers\dotnet\cs" Pack="true" Visible="false" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@
<ItemGroup>
<ProjectReference Include="..\..\src\ArgumentParsing\ArgumentParsing.csproj" />
<ProjectReference Include="..\..\src\ArgumentParsing.Generators\ArgumentParsing.Generators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="all" />
<ProjectReference Include="..\..\src\ArgumentParsing.CodeFixes\ArgumentParsing.CodeFixes.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="all" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
<ItemGroup>
<ProjectReference Include="..\..\src\ArgumentParsing\ArgumentParsing.csproj" SetTargetFramework="TargetFramework=netstandard2.0" />
<ProjectReference Include="..\..\src\ArgumentParsing.Generators\ArgumentParsing.Generators.csproj" />
<ProjectReference Include="..\..\src\ArgumentParsing.CodeFixes\ArgumentParsing.CodeFixes.csproj" />
</ItemGroup>
</Project>

0 comments on commit abec33d

Please sign in to comment.