Skip to content

Commit 8010ef2

Browse files
committed
Fix NRE
1 parent 7069203 commit 8010ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cli/dotnet/commands/InstallingWorkloadCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ public InstallingWorkloadCommand(
9393

9494
_dotnetPath = creationResult.DotnetPath;
9595
_userProfileDir = creationResult.UserProfileDir;
96+
_sdkFeatureBand = new SdkFeatureBand(creationResult.SdkVersion);
9697
_workloadRootDir = WorkloadFileBasedInstall.IsUserLocal(_dotnetPath, _sdkFeatureBand.ToString()) ? _userProfileDir : _dotnetPath;
9798
_sdkVersion = creationResult.SdkVersion;
98-
_sdkFeatureBand = new SdkFeatureBand(creationResult.SdkVersion);
9999
_workloadResolver = creationResult.WorkloadResolver;
100100
_targetSdkVersion ??= _sdkVersion;
101101

0 commit comments

Comments
 (0)