Skip to content

Commit

Permalink
Ignore if RevitVersion does not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Mar 27, 2024
1 parent 3aec0dc commit f81bad0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net45</TargetFramework>
<RevitVersion>2021</RevitVersion>
<RevitVersion>2017</RevitVersion>
<DefineConstants>TEST</DefineConstants>
</PropertyGroup>

Expand All @@ -23,7 +23,7 @@
</ItemGroup>

<!-- Add RevitVerison and OR_GREATER defines -->
<Target Name="GenerateRevitVersionDefineConstants" AfterTargets="PrepareForBuild">
<Target Name="GenerateRevitVersionDefineConstants" AfterTargets="PrepareForBuild" Condition="'$(RevitVersion)' != ''">

<ItemGroup>
<_SupportedRevitVersions Include="@(SupportedRevitVersion->'%(Identity)'->TrimStart('REVIT'))" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</ItemGroup>

<!-- Add RevitVerison and OR_GREATER defines -->
<Target Name="GenerateRevitVersionDefineConstants" AfterTargets="PrepareForBuild">
<Target Name="GenerateRevitVersionDefineConstants" AfterTargets="PrepareForBuild" Condition="'$(RevitVersion)' != ''">

<ItemGroup>
<_SupportedRevitVersions Include="@(SupportedRevitVersion->'%(Identity)'->TrimStart('REVIT'))" />
Expand Down

0 comments on commit f81bad0

Please sign in to comment.