diff --git a/src/Microsoft.DotNet.ProjectModel/Compilation/LibraryExporter.cs b/src/Microsoft.DotNet.ProjectModel/Compilation/LibraryExporter.cs index 98de24b31..44f534369 100644 --- a/src/Microsoft.DotNet.ProjectModel/Compilation/LibraryExporter.cs +++ b/src/Microsoft.DotNet.ProjectModel/Compilation/LibraryExporter.cs @@ -174,7 +174,7 @@ namespace Microsoft.DotNet.ProjectModel.Compilation compileAssemblies.Add(compileAsset); runtimeAssets.Add(pdbPath); } - else + else if(project.Project.Files.SourceFiles.Any()) { var outputCalculator = project.GetOutputPathCalculator(); var assemblyPath = outputCalculator.GetAssemblyPath(_configuration);