diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.cs b/src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.cs index 3f41716858f9..2f4b4657edf7 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.cs @@ -362,18 +362,17 @@ private IEnumerable GetRuntimePackLibraries(IEnumerable asset.PackageName + "/" + asset.PackageVersion).Select( runtimePackAssetGroup => { - // Prefix paths with "./" to workaround https://github.com/dotnet/core-setup/issues/4978 List runtimeAssemblyGroups = new List() { new RuntimeAssetGroup(string.Empty, runtimePackAssetGroup.Where(asset => asset.AssetType == AssetType.Runtime) - .Select(asset => CreateRuntimeFile("./" + asset.DestinationSubPath, asset.SourcePath))) + .Select(asset => CreateRuntimeFile(asset.DestinationSubPath, asset.SourcePath))) }; List nativeLibraryGroups = new List() { new RuntimeAssetGroup(string.Empty, runtimePackAssetGroup.Where(asset => asset.AssetType == AssetType.Native) - .Select(asset => CreateRuntimeFile($"./" + asset.DestinationSubPath, asset.SourcePath))) + .Select(asset => CreateRuntimeFile(asset.DestinationSubPath, asset.SourcePath))) }; return new RuntimeLibrary("runtimepack",