Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Feb 23, 2024
1 parent 9e6a88b commit 4405ae4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tasks/PublishPackageTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ public override async Task RunAsync(BuildContext context)
projectData = projectData.Replace("{LicencePath}", context.PackContext.LicensePath);

if (context.PackContext.LicensePath.EndsWith(".txt"))
projectData = projectData.Replace("{LicenceName}", "LICENSE.txt").Replace ("{LicencePackagePath}", "LICENSE.txt");
projectData = projectData.Replace("{LicenceName}", "LICENSE.txt").Replace("{LicencePackagePath}", "LICENSE.txt");
else if (context.PackContext.LicensePath.EndsWith(".md"))
projectData = projectData.Replace("{LicenceName}", "LICENSE.md").Replace ("{LicencePackagePath}", "LICENSE.md");
projectData = projectData.Replace("{LicenceName}", "LICENSE.md").Replace("{LicencePackagePath}", "LICENSE.md");
else if (context.PackContext.LicensePath.EndsWith ("LICENSE"))
// https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu5030#issue
projectData = projectData.Replace("{LicenceName}", "LICENSE").Replace ("{LicencePackagePath}", "");
projectData = projectData.Replace("{LicenceName}", "LICENSE").Replace("{LicencePackagePath}", "");
else
projectData = projectData.Replace("{LicenceName}", "LICENSE").Replace ("{LicencePackagePath}", "LICENSE");
projectData = projectData.Replace("{LicenceName}", "LICENSE").Replace("{LicencePackagePath}", "");

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

0 comments on commit 4405ae4

Please sign in to comment.