Skip to content

Commit

Permalink
Add workaround for Rider to see the Antlr3 generated files at design …
Browse files Browse the repository at this point in the history
…time (#3518)
  • Loading branch information
hazzik authored Apr 6, 2024
1 parent 5a4823e commit f3afcf9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
11 changes: 2 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,10 @@ indent_style = tab
indent_style = space
indent_size = 2

[*.xml]
indent_style = space
indent_size = 2

[*.csproj]
indent_style = space
indent_size = 2

[*.vbproj]
[{*.xml,*.csproj,*.vbproj}]
indent_style = space
indent_size = 2
ij_xml_space_inside_empty_tag = true

[*.g]
indent_style = tab
13 changes: 11 additions & 2 deletions src/NHibernate/NHibernate.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../../build-common/NHibernate.props" />

<PropertyGroup>
Expand All @@ -14,7 +14,7 @@
<PackageTags>ORM; O/RM; DataBase; DAL; ObjectRelationalMapping; NHibernate; ADO.Net; Core</PackageTags>
<PackageReadmeFile>NHibernate.readme.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<None Remove="**\*.g" />
<None Remove="**\*.xsd" />
Expand Down Expand Up @@ -92,4 +92,13 @@
</Content>
<None Include="../../logo/NHibernate-NuGet.png" Pack="true" PackagePath="/" />
</ItemGroup>

<!-- Workaround to enable Rider to see the Antlr3 generated files at design time -->
<Target Name="_AntrlDesignTimeGrammarCompilationWorkaround" BeforeTargets="CoreCompile" Condition="'$(BuildingByReSharper)' == 'true'">
<CallTarget
Targets="AntlrCompile"
ContinueOnError="true"
Condition="'$(DesignTimeBuild)' == 'true' OR '$(BuildingProject)' != 'true'"
/>
</Target>
</Project>

0 comments on commit f3afcf9

Please sign in to comment.