Merge pull request #5356 from piotrpMSFT/piotrpMSFT/issues/5345
Fixes #5345
This commit is contained in:
commit
9095743ff7
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue