Skip to content

Commit

Permalink
feat: Add debugging supports for SourceGenerator project (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrzesniewski authored Sep 20, 2023
2 parents 3b201bc + fdb5470 commit d2e475f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/.vsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": "1.0",
"components": [
"Microsoft.Component.CodeAnalysis.SDK"
]
}
8 changes: 8 additions & 0 deletions src/RazorBlade.Analyzers/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"profiles": {
"DebugSourceGenerator": {
"commandName": "DebugRoslynComponent",
"targetProject": "..\\RazorBlade.IntegrationTest\\RazorBlade.IntegrationTest.csproj"
}
}
}
1 change: 1 addition & 0 deletions src/RazorBlade.Analyzers/RazorBlade.Analyzers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</ItemGroup>

<PropertyGroup>
<IsRoslynComponent>true</IsRoslynComponent>
<RazorLanguageDir>../../lib/razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/src</RazorLanguageDir>
<RazorCodeAnalysisDir>../../lib/razor/src/Compiler/Microsoft.CodeAnalysis.Razor/src</RazorCodeAnalysisDir>
<RazorLanguageSupportDir>../../lib/razor/src/Shared/Microsoft.AspNetCore.Razor.LanguageSupport</RazorLanguageSupportDir>
Expand Down
4 changes: 2 additions & 2 deletions src/RazorBlade.sln
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RazorBlade", "RazorBlade\RazorBlade.csproj", "{1280633E-E181-4E53-9819-2B0A0AC07A7E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RazorBlade.Analyzers", "RazorBlade.Analyzers\RazorBlade.Analyzers.csproj", "{F94996B6-EC52-4CAD-8E0B-2CB7B97DE31A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RazorBlade", "RazorBlade\RazorBlade.csproj", "{1280633E-E181-4E53-9819-2B0A0AC07A7E}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{12E535CC-9AAC-4EEC-92BC-87A9325577B8}"
ProjectSection(SolutionItems) = preProject
Directory.Build.props = Directory.Build.props
Expand Down

0 comments on commit d2e475f

Please sign in to comment.