@@ -60,12 +60,20 @@ export class DotNetClient {
6060 return parseDotnetNewListOutput ( output ) ;
6161 }
6262
63- build ( project : string , parameters ?: dotnetBuildOptions ) : void {
63+ build (
64+ project : string ,
65+ parameters ?: dotnetBuildOptions ,
66+ extraParameters ?: string ,
67+ ) : void {
6468 const params = [ `build` , project ] ;
6569 if ( parameters ) {
6670 parameters = swapKeysUsingMap ( parameters , buildKeyMap ) ;
6771 params . push ( ...getSpawnParameterArray ( parameters ) ) ;
6872 }
73+ if ( extraParameters ) {
74+ const matches = extraParameters . match ( EXTRA_PARAMS_REGEX ) ;
75+ params . push ( ...( matches as string [ ] ) ) ;
76+ }
6977 return this . logAndExecute ( params ) ;
7078 }
7179
@@ -89,6 +97,7 @@ export class DotNetClient {
8997 project : string ,
9098 watch ?: boolean ,
9199 parameters ?: dotnetTestOptions ,
100+ extraParameters ?: string ,
92101 ) : void | ChildProcess {
93102 const params = watch
94103 ? [ `watch` , `--project` , project , `test` ]
@@ -98,6 +107,10 @@ export class DotNetClient {
98107 parameters = swapKeysUsingMap ( parameters , testKeyMap ) ;
99108 params . push ( ...getSpawnParameterArray ( parameters ) ) ;
100109 }
110+ if ( extraParameters ) {
111+ const matches = extraParameters . match ( EXTRA_PARAMS_REGEX ) ;
112+ params . push ( ...( matches as string [ ] ) ) ;
113+ }
101114 if ( ! watch ) {
102115 return this . logAndExecute ( params ) ;
103116 } else {
@@ -138,7 +151,7 @@ export class DotNetClient {
138151 }
139152 if ( extraParameters ) {
140153 const matches = extraParameters . match ( EXTRA_PARAMS_REGEX ) ;
141- params . push ( ...( matches as RegExpMatchArray ) ) ;
154+ params . push ( ...( matches as string [ ] ) ) ;
142155 }
143156 return this . logAndExecute ( params ) ;
144157 }
0 commit comments