Skip to content

Commit 04c155f

Browse files
committed
Remove workaround for dotnet/core-setup#4978
1 parent 78b2448 commit 04c155f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -362,18 +362,17 @@ private IEnumerable<RuntimeLibrary> GetRuntimePackLibraries(IEnumerable<RuntimeP
362362
return runtimePackAssets.GroupBy(asset => asset.PackageName + "/" + asset.PackageVersion).Select(
363363
runtimePackAssetGroup =>
364364
{
365-
// Prefix paths with "./" to workaround https://github.com/dotnet/core-setup/issues/4978
366365
List<RuntimeAssetGroup> runtimeAssemblyGroups = new List<RuntimeAssetGroup>()
367366
{
368367
new RuntimeAssetGroup(string.Empty,
369368
runtimePackAssetGroup.Where(asset => asset.AssetType == AssetType.Runtime)
370-
.Select(asset => CreateRuntimeFile("./" + asset.DestinationSubPath, asset.SourcePath)))
369+
.Select(asset => CreateRuntimeFile(asset.DestinationSubPath, asset.SourcePath)))
371370
};
372371
List<RuntimeAssetGroup> nativeLibraryGroups = new List<RuntimeAssetGroup>()
373372
{
374373
new RuntimeAssetGroup(string.Empty,
375374
runtimePackAssetGroup.Where(asset => asset.AssetType == AssetType.Native)
376-
.Select(asset => CreateRuntimeFile($"./" + asset.DestinationSubPath, asset.SourcePath)))
375+
.Select(asset => CreateRuntimeFile(asset.DestinationSubPath, asset.SourcePath)))
377376
};
378377

379378
return new RuntimeLibrary("runtimepack",

0 commit comments

Comments
 (0)