Merge pull request #5356 from piotrpMSFT/piotrpMSFT/issues/5345

Fixes #5345
This commit is contained in:
Livar 2017-01-16 17:12:46 -08:00 committed by GitHub
commit 9095743ff7

View file

@ -14,8 +14,9 @@ namespace Microsoft.DotNet.ProjectJsonMigration
{
public static string GetProjectName(this ProjectContext projectContext)
{
// _ here is just an arbitrary configuration value so we can obtain the output name
return Path.GetFileNameWithoutExtension(projectContext.GetOutputPaths("_").CompilationFiles.Assembly);
var projectDirectory = projectContext.ProjectDirectory;
return Path.GetFileName(projectDirectory);
}
public static bool HasRuntimes(this IEnumerable<ProjectContext> projectContexts)