@@ -49,7 +49,7 @@ public static Task InstallAsync(Assembly assembly, string fileName)
4949
5050 if ( fileName . Length == 0 )
5151 {
52- throw new ArgumentException ( nameof ( fileName ) , $ "{ nameof ( fileName ) } must not be empty.") ;
52+ throw new ArgumentException ( $ "{ nameof ( fileName ) } must not be empty.", nameof ( fileName ) ) ;
5353 }
5454
5555 var projectFilePath = GetProjectFilePath ( assembly , fileName ) ;
@@ -75,7 +75,7 @@ public static async Task InstallAsync(string source, TimeSpan? timeout = null, b
7575
7676 if ( source . Length == 0 )
7777 {
78- throw new ArgumentException ( nameof ( source ) , $ "{ nameof ( source ) } must not be empty.") ;
78+ throw new ArgumentException ( $ "{ nameof ( source ) } must not be empty.", nameof ( source ) ) ;
7979 }
8080
8181 await RunDotnetCommandAsync ( $ "new --install \" { source } \" ", timeout , showShellWindow ) . ConfigureAwait ( false ) ;
@@ -127,7 +127,7 @@ public static Task UninstallAsync(Assembly assembly, string fileName)
127127
128128 if ( fileName . Length == 0 )
129129 {
130- throw new ArgumentException ( nameof ( fileName ) , $ "{ nameof ( fileName ) } must not be empty.") ;
130+ throw new ArgumentException ( $ "{ nameof ( fileName ) } must not be empty.", nameof ( fileName ) ) ;
131131 }
132132
133133 var projectFilePath = GetProjectFilePath ( assembly , fileName ) ;
@@ -153,7 +153,7 @@ public static async Task UninstallAsync(string source, TimeSpan? timeout = null,
153153
154154 if ( source . Length == 0 )
155155 {
156- throw new ArgumentException ( nameof ( source ) , $ "{ nameof ( source ) } must not be empty.") ;
156+ throw new ArgumentException ( $ "{ nameof ( source ) } must not be empty.", nameof ( source ) ) ;
157157 }
158158
159159 await RunDotnetCommandAsync ( $ "new --uninstall \" { source } \" ", timeout , showShellWindow ) . ConfigureAwait ( false ) ;
0 commit comments