Skip to content
Permalink
Browse files

[Assets] PackageSession: Properly fallback to AssemblyName if Package…

…Id is not set
  • Loading branch information
xen2 committed Jan 27, 2019
1 parent c5164c5 commit aad3c7519457dc7aa9a4061af314b8420810074c
Showing with 1 addition and 1 deletion.
  1. +1 −1 sources/assets/Xenko.Core.Assets/PackageSession.Dependencies.cs
@@ -102,7 +102,7 @@ private async Task PreLoadPackageDependencies(ILogger log, SolutionProject proje
package.Meta.Version = new PackageVersion(packageVersion);

project.TargetPath = msProject.GetPropertyValue("TargetPath");
package.Meta.Name = msProject.GetPropertyValue("PackageId") ?? msProject.GetPropertyValue("AssemblyName") ?? package.Meta.Name;
package.Meta.Name = (msProject.GetProperty("PackageId") ?? msProject.GetProperty("AssemblyName"))?.EvaluatedValue ?? package.Meta.Name;

var outputType = msProject.GetPropertyValue("OutputType");
project.Type = outputType.ToLowerInvariant() == "winexe" || outputType.ToLowerInvariant() == "exe"

0 comments on commit aad3c75

Please sign in to comment.
You can’t perform that action at this time.