Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions Tasks/PublishPackageTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,9 @@ public override async Task RunAsync(BuildContext context)
var readMePath = $"{readMeName}";

var licensePath = context.PackContext.LicensePath;
var licenseName = "LICENSE";
var licenseName = System.IO.Path.GetFileName(licensePath);

if (licensePath.EndsWith(".txt")) licenseName += ".txt";
else if (licensePath.EndsWith(".md")) licenseName += ".md";

var librariesToInclude = from rid in downloadedRids from filePath in Directory.GetFiles($"runtimes/{rid}/native")
var librariesToInclude = from rid in downloadedRids from filePath in Directory.GetFiles($"runtimes/{rid}/native")
select $"<Content Include=\"{filePath}\"><PackagePath>runtimes/{rid}/native</PackagePath></Content>";

// Generate Project
Expand Down