Skip to content

Commit

Permalink
Enable debugging analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Jul 10, 2024
1 parent 6b5402f commit 3ad2ae2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
<ItemGroup>
<!-- Brings in the analyzer file to report installation time -->
<FundingPackageId Include="Devlooped.TableStorage" />
<FundingProduct Include="Devlooped.TableStorage" />
</ItemGroup>
</Project>
11 changes: 11 additions & 0 deletions src/TableStorage.CodeAnalysis/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"profiles": {
"TableStorage.CodeAnalysis": {
"commandName": "DebugRoslynComponent",
"targetProject": "..\\Tests\\Tests.csproj",
"environmentVariables": {
"SPONSORLINK_TRACE": "true"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<SignAssembly>false</SignAssembly>
<CustomAfterMicrosoftCSharpTargets>$(MSBuildThisFileDirectory)..\SponsorLink\SponsorLink.Analyzer.targets</CustomAfterMicrosoftCSharpTargets>
<FundingPackageId>Devlooped.TableStorage</FundingPackageId>
<IsRoslynComponent>true</IsRoslynComponent>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<ProjectReference Include="..\TableStorage.Newtonsoft\TableStorage.Newtonsoft.csproj" />
<ProjectReference Include="..\TableStorage.Protobuf\TableStorage.Protobuf.csproj" />
<ProjectReference Include="..\TableStorage\TableStorage.csproj" />
<!-- This project reference allows debugging the source generator/analyzer project -->
<ProjectReference Include="..\TableStorage.CodeAnalysis\TableStorage.CodeAnalysis.csproj" ReferenceOutputAssembly="false" OutputItemType="Analyzer" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 3ad2ae2

Please sign in to comment.