@@ -86,12 +86,6 @@ public static LibraryInfo GetLibraryInfo(Assembly assembly)
86
86
87
87
public static string GetDotnetDirectory ( )
88
88
{
89
- var environmentOverride = Environment . GetEnvironmentVariable ( "DOTNET_MSBUILD_SDK_RESOLVER_CLI_DIR" ) ;
90
- if ( ! string . IsNullOrEmpty ( environmentOverride ) )
91
- {
92
- return environmentOverride ;
93
- }
94
-
95
89
var dotnetExe = GetDotnetPath ( ) ;
96
90
97
91
if ( dotnetExe . IsNotNullOrEmpty ( ) && ! InteropHelper . RunningOnWindows )
@@ -162,6 +156,7 @@ private static RuntimeInfo GetRuntimeInfo()
162
156
OSDescription = RuntimeInformation . OSDescription ,
163
157
OSVersion = Environment . OSVersion . ToString ( ) ,
164
158
MachineName = Environment . MachineName ,
159
+ UserName = Environment . UserName ,
165
160
166
161
IsInContainer = IsInContainer ( ) ,
167
162
IsInKubernetes = IsInKubernetesCluster ( ) ,
@@ -229,6 +224,7 @@ public sealed class RuntimeInfo : LibraryInfo
229
224
public required string OSDescription { get ; init ; }
230
225
public required string OSVersion { get ; init ; }
231
226
public required string MachineName { get ; init ; }
227
+ public required string UserName { get ; init ; }
232
228
233
229
#if NET6_0_OR_GREATER
234
230
public required string RuntimeIdentifier { get ; init ; }
0 commit comments