Skip to content

Commit

Permalink
Removed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Feb 23, 2024
1 parent 4405ae4 commit f5cde6b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Tasks/PublishPackageTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ public override async Task RunAsync(BuildContext context)
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");
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}", "");
else
// https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu5030#issue
projectData = projectData.Replace("{LicenceName}", "LICENSE").Replace("{LicencePackagePath}", "");

var librariesToInclude = from rid in requiredRids from filePath in Directory.GetFiles($"runtimes/{rid}/native")
Expand Down

0 comments on commit f5cde6b

Please sign in to comment.