From d4a8fa24db7f6195e69974d8a95b6135b484aac7 Mon Sep 17 00:00:00 2001 From: David Fowler Date: Wed, 27 Jan 2016 14:22:06 -0800 Subject: [PATCH] Oops, fixed the asset name for the main asset --- .../Compilation/LibraryExporter.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.DotNet.ProjectModel/Compilation/LibraryExporter.cs b/src/Microsoft.DotNet.ProjectModel/Compilation/LibraryExporter.cs index 282c7a6df..ba6deabfa 100644 --- a/src/Microsoft.DotNet.ProjectModel/Compilation/LibraryExporter.cs +++ b/src/Microsoft.DotNet.ProjectModel/Compilation/LibraryExporter.cs @@ -184,14 +184,14 @@ namespace Microsoft.DotNet.ProjectModel.Compilation foreach (var path in outputCalculator.GetBuildOutputs(_configuration)) { - if (Path.GetFileNameWithoutExtension(path) == project.Identity.Name) + var assetName = project.Identity.Name; + if (Path.GetFileNameWithoutExtension(path) != project.Identity.Name) { - continue; + assetName += "/" + Path.GetExtension(path).Substring(1); } // We're going to call this asset - var extension = Path.GetExtension(path).Substring(1); - runtimeAssemblies.Add(new LibraryAsset(project.Identity.Name + "/" + extension, null, path)); + runtimeAssemblies.Add(new LibraryAsset(assetName, null, path)); } }