@@ -39,11 +39,11 @@ public AutobuildOptions(IBuildActions actions)
39
39
{
40
40
RootDirectory = actions . GetCurrentDirectory ( ) ;
41
41
VsToolsVersion = actions . GetEnvironmentVariable ( prefix + "VSTOOLS_VERSION" ) ;
42
- MsBuildArguments = actions . GetEnvironmentVariable ( prefix + "MSBUILD_ARGUMENTS" ) . AsStringWithExpandedEnvVarsMaybeNull ( actions ) ;
42
+ MsBuildArguments = actions . GetEnvironmentVariable ( prefix + "MSBUILD_ARGUMENTS" ) ? . AsStringWithExpandedEnvVars ( actions ) ;
43
43
MsBuildPlatform = actions . GetEnvironmentVariable ( prefix + "MSBUILD_PLATFORM" ) ;
44
44
MsBuildConfiguration = actions . GetEnvironmentVariable ( prefix + "MSBUILD_CONFIGURATION" ) ;
45
45
MsBuildTarget = actions . GetEnvironmentVariable ( prefix + "MSBUILD_TARGET" ) ;
46
- DotNetArguments = actions . GetEnvironmentVariable ( prefix + "DOTNET_ARGUMENTS" ) . AsStringWithExpandedEnvVarsMaybeNull ( actions ) ;
46
+ DotNetArguments = actions . GetEnvironmentVariable ( prefix + "DOTNET_ARGUMENTS" ) ? . AsStringWithExpandedEnvVars ( actions ) ;
47
47
DotNetVersion = actions . GetEnvironmentVariable ( prefix + "DOTNET_VERSION" ) ;
48
48
BuildCommand = actions . GetEnvironmentVariable ( prefix + "BUILD_COMMAND" ) ;
49
49
Solution = actions . GetEnvironmentVariable ( prefix + "SOLUTION" ) . AsListWithExpandedEnvVars ( actions , new string [ 0 ] ) ;
@@ -107,9 +107,6 @@ public static string[] AsListWithExpandedEnvVars(this string? value, IBuildActio
107
107
108
108
static readonly Regex linuxEnvRegEx = new Regex ( @"\$([a-zA-Z_][a-zA-Z_0-9]*)" , RegexOptions . Compiled ) ;
109
109
110
- public static string ? AsStringWithExpandedEnvVarsMaybeNull ( this string ? value , IBuildActions actions ) =>
111
- value ? . AsStringWithExpandedEnvVars ( actions ) ;
112
-
113
110
public static string AsStringWithExpandedEnvVars ( this string value , IBuildActions actions )
114
111
{
115
112
if ( string . IsNullOrEmpty ( value ) )
0 commit comments