Skip to content

Commit 848e2c5

Browse files
author
Chris Gårdenberg
committed
Just run the precompilation when we build release
1 parent ad1271d commit 848e2c5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

MN.L10n/CodeCompilerModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void BeforeCompile(BeforeCompileContext context)
2222
bool isBuildEnvironment = !string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("is_build_environment"));
2323

2424
var runPhrase = false;
25-
//try { runPhrase = context.Arguments.CompilationOptions.OptimizationLevel == OptimizationLevel.Debug; } catch { }
25+
try { runPhrase = context.Arguments.CompilationOptions.OptimizationLevel == OptimizationLevel.Release; } catch { }
2626
if (!runPhrase) return;
2727
Debugger.Break();
2828
Stopwatch stw = new Stopwatch();

MN.L10n/MN.L10n.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Translation package</Description>
1212
<PackageProjectUrl>https://github.com/MultinetInteractive/MN.L10n</PackageProjectUrl>
1313
<RepositoryType>git</RepositoryType>
1414
<Copyright>© 20XX MultiNet Interactive AB</Copyright>
15-
<Version>1.0.76</Version>
15+
<Version>1.0.77</Version>
1616
<AutoIncrementPackageRevision>True</AutoIncrementPackageRevision>
1717
</PropertyGroup>
1818

0 commit comments

Comments
 (0)