Created
August 15, 2018 14:00
-
-
Save adamsitnik/7477f4e513bc9b2bf2b237076255048d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DebugVsRelease : ManualConfig | |
{ | |
public DebugVsRelease() | |
{ | |
IToolchain toolchain = // to rebuild the project we need to use the CsProj toolchain not the Roslyn one (the default for .NET) | |
#if NETFRAMEWORK | |
CsProjClassicNetToolchain.Current.Value; | |
#else | |
CsProjCoreToolchain.Current.Value; | |
#endif | |
Add(JitOptimizationsValidator.DontFailOnError); // ALLOW NON-OPTIMIZED DLLS | |
Add(Job.Default.With(toolchain).WithCustomBuildConfiguration("Debug").WithId("Debug")); | |
Add(Job.Default.With(toolchain).AsBaseline().WithId("Release")); | |
// add columns, exporters, loggers, diagnosers etc | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment