Skip to content

Commit

Permalink
Just run the precompilation when we build release
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimple committed Sep 13, 2017
1 parent ad1271d commit 848e2c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MN.L10n/CodeCompilerModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void BeforeCompile(BeforeCompileContext context)
bool isBuildEnvironment = !string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("is_build_environment"));

var runPhrase = false;
//try { runPhrase = context.Arguments.CompilationOptions.OptimizationLevel == OptimizationLevel.Debug; } catch { }
try { runPhrase = context.Arguments.CompilationOptions.OptimizationLevel == OptimizationLevel.Release; } catch { }
if (!runPhrase) return;
Debugger.Break();
Stopwatch stw = new Stopwatch();
Expand Down
2 changes: 1 addition & 1 deletion MN.L10n/MN.L10n.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Translation package</Description>
<PackageProjectUrl>https://github.com/MultinetInteractive/MN.L10n</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
<Copyright>© 20XX MultiNet Interactive AB</Copyright>
<Version>1.0.76</Version>
<Version>1.0.77</Version>
<AutoIncrementPackageRevision>True</AutoIncrementPackageRevision>
</PropertyGroup>

Expand Down

0 comments on commit 848e2c5

Please sign in to comment.