Skip to content

Commit

Permalink
Always set .NET Core when on .NET .Core runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
ltcmelo committed Aug 8, 2018
1 parent 030728b commit e415c1b
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/Buildalyzer/Environment/EnvironmentFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,6 @@ public BuildEnvironment GetBuildEnvironment(string targetFramework, EnvironmentO
return CreateFrameworkEnvironment(options);
}

if (string.IsNullOrEmpty(targetFramework))
{
switch (_projectFile.TargetKindHint())
{
case "netcoreapp":
_manager.ProjectLogger.LogInformation("guess as a .NET Core project\n");
return CreateCoreEnvironment(options);

case "net":
_manager.ProjectLogger.LogInformation("guess as a .NET Framework project\n");
return CreateFrameworkEnvironment(options);

default:
_manager.ProjectLogger.LogInformation("won't guess the project kind\n");
break;
}
}

// If we're running on .NET Core, use the .NET Core SDK regardless of the project file
if (BuildEnvironment.IsRunningOnCore)
{
Expand Down

0 comments on commit e415c1b

Please sign in to comment.