Skip to content

Commit 3ad2ae2

Browse files
committed
Enable debugging analyzer
1 parent 6b5402f commit 3ad2ae2

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

src/TableStorage.CodeAnalysis/Devlooped.TableStorage.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
<ItemGroup>
44
<!-- Brings in the analyzer file to report installation time -->
55
<FundingPackageId Include="Devlooped.TableStorage" />
6+
<FundingProduct Include="Devlooped.TableStorage" />
67
</ItemGroup>
78
</Project>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"profiles": {
3+
"TableStorage.CodeAnalysis": {
4+
"commandName": "DebugRoslynComponent",
5+
"targetProject": "..\\Tests\\Tests.csproj",
6+
"environmentVariables": {
7+
"SPONSORLINK_TRACE": "true"
8+
}
9+
}
10+
}
11+
}

src/TableStorage.CodeAnalysis/TableStorage.CodeAnalysis.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<SignAssembly>false</SignAssembly>
88
<CustomAfterMicrosoftCSharpTargets>$(MSBuildThisFileDirectory)..\SponsorLink\SponsorLink.Analyzer.targets</CustomAfterMicrosoftCSharpTargets>
99
<FundingPackageId>Devlooped.TableStorage</FundingPackageId>
10+
<IsRoslynComponent>true</IsRoslynComponent>
1011
</PropertyGroup>
1112

1213
<ItemGroup>

src/Tests/Tests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
<ProjectReference Include="..\TableStorage.Newtonsoft\TableStorage.Newtonsoft.csproj" />
2121
<ProjectReference Include="..\TableStorage.Protobuf\TableStorage.Protobuf.csproj" />
2222
<ProjectReference Include="..\TableStorage\TableStorage.csproj" />
23+
<!-- This project reference allows debugging the source generator/analyzer project -->
24+
<ProjectReference Include="..\TableStorage.CodeAnalysis\TableStorage.CodeAnalysis.csproj" ReferenceOutputAssembly="false" OutputItemType="Analyzer" />
2325
</ItemGroup>
2426

2527
<ItemGroup>

0 commit comments

Comments
 (0)