Crossgen by default, add additional dependency to shared framework

* We need a newer version of Microsoft.CodeAnalysis.CSharp than the one
  that NETCore.App depends on. When a newer version of NETCore.App is
  published with a higher dependency, we can remove this explicit
  reference.
This commit is contained in:
Eric Mellino 2016-03-18 15:18:18 -07:00
parent ca74a9b177
commit 241ef778ea
2 changed files with 4 additions and 3 deletions

View file

@ -477,9 +477,9 @@ namespace Microsoft.DotNet.Cli.Build
public static BuildTargetResult CrossgenSharedFx(BuildTargetContext c, string pathToAssemblies) public static BuildTargetResult CrossgenSharedFx(BuildTargetContext c, string pathToAssemblies)
{ {
// Check if we need to skip crossgen // Check if we need to skip crossgen
if (!string.Equals(Environment.GetEnvironmentVariable("CROSSGEN_SHAREDFRAMEWORK"), "1")) if (string.Equals(Environment.GetEnvironmentVariable("DONT_CROSSGEN_SHAREDFRAMEWORK"), "1"))
{ {
c.Warn("Skipping crossgen for SharedFx because CROSSGEN_SHAREDFRAMEWORK is not set to 1"); c.Warn("Skipping crossgen for SharedFx because DONT_CROSSGEN_SHAREDFRAMEWORK is set to 1");
return c.Success(); return c.Success();
} }

View file

@ -5,7 +5,8 @@
}, },
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": "1.0.0-rc2-23911" "Microsoft.NETCore.App": "1.0.0-rc2-23911",
"Microsoft.CodeAnalysis.CSharp": "1.3.0-beta1-20160318-02"
}, },
"runtimes": { "runtimes": {