Skip to content

Commit

Permalink
Activate runtime razor or all debug configs
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier committed Jul 29, 2020
1 parent cfdd1af commit 77fff55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions BTCPayServer/BTCPayServer.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Import Project="../Build/Version.csproj" Condition="Exists('../Build/Version.csproj')" />
<Import Project="../Build/Common.csproj" />
<PropertyGroup Condition="'$(Configuration)' == 'Debug' And '$(RazorCompileOnBuild)' != 'true'">
<RazorCompileOnBuild>false</RazorCompileOnBuild>
<DefineConstants>$(DefineConstants);RAZOR_RUNTIME_COMPILE</DefineConstants>
</PropertyGroup>

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
7 changes: 6 additions & 1 deletion Build/Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
<Altcoins>true</Altcoins>
</PropertyGroup>
<!-- -->


<PropertyGroup Condition="( '$(Configuration)' == 'Debug' Or '$(Configuration)' == 'Altcoins-Debug') And '$(RazorCompileOnBuild)' != 'true'">
<RazorCompileOnBuild>false</RazorCompileOnBuild>
<DefineConstants>$(DefineConstants);RAZOR_RUNTIME_COMPILE</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(Altcoins)' == 'true'">
<DefineConstants>$(DefineConstants);ALTCOINS</DefineConstants>
</PropertyGroup>
Expand Down

0 comments on commit 77fff55

Please sign in to comment.