Skip to content

Instantly share code, notes, and snippets.

@adamsitnik
Created August 15, 2018 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamsitnik/7477f4e513bc9b2bf2b237076255048d to your computer and use it in GitHub Desktop.
Save adamsitnik/7477f4e513bc9b2bf2b237076255048d to your computer and use it in GitHub Desktop.
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