Skip to content

Commit 0112da8

Browse files
committed
Address CR feedback
1 parent 5879f1b commit 0112da8

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/Cli/dotnet/ToolPackage/ToolPackageDownloaderBase.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,7 @@ protected ToolPackageDownloaderBase(
5757
_currentWorkingDirectory = currentWorkingDirectory;
5858

5959
_localToolAssetDir = new DirectoryPath(_fileSystem.Directory.CreateTemporarySubdirectory());
60-
61-
// Tools target modern (net8.0+) frameworks, for which the SDK resolves RIDs using the simplified
62-
// "portable" RID graph by default (UseRidGraph=false). Prefer that graph here so tool RID-asset
63-
// selection matches normal restore/build; fall back to the legacy graph if the portable one isn't
64-
// present in the layout.
65-
string portableRuntimeJsonPath = Path.Combine(AppContext.BaseDirectory!, "PortableRuntimeIdentifierGraph.json");
66-
string legacyRuntimeJsonPath = Path.Combine(AppContext.BaseDirectory!, "RuntimeIdentifierGraph.json");
67-
_runtimeJsonPath = runtimeJsonPathForTests
68-
?? (File.Exists(portableRuntimeJsonPath) ? portableRuntimeJsonPath : legacyRuntimeJsonPath);
60+
_runtimeJsonPath = runtimeJsonPathForTests ?? Path.Combine(AppContext.BaseDirectory!, "PortableRuntimeIdentifierGraph.json");
6961
}
7062

7163
protected abstract INuGetPackageDownloader CreateNuGetPackageDownloader(

0 commit comments

Comments
 (0)