@@ -2,15 +2,15 @@ param (
22 [switch ]$Debug ,
33 [string ]$VisualStudioVersion = " 15.0" ,
44 [switch ]$NoClean ,
5- [string ]$Verbosity = " normal " ,
5+ [string ]$Verbosity = " minimal " ,
66 [string ]$Logger ,
77 [string ]$Java6Home ,
88 [string ]$MavenHome ,
99 [string ]$MavenRepo ,
1010 [switch ]$SkipMaven ,
1111 [switch ]$SkipKeyCheck ,
1212 [switch ]$GenerateTests ,
13- [switch ]$Validate
13+ [switch ]$NoValidate
1414)
1515
1616# build the solutions
@@ -183,7 +183,7 @@ ForEach ($package in $packages) {
183183}
184184
185185# Validate code generation using the Java code generator
186- If ($Validate ) {
186+ If (-not $NoValidate ) {
187187 git ' clean' ' -dxf' ' DotnetValidationOld'
188188 dotnet ' run' ' --project' ' .\DotnetValidationOld\DotnetValidation.csproj' ' --framework' ' netcoreapp1.1'
189189 if (-not $? ) {
@@ -192,7 +192,7 @@ If ($Validate) {
192192 }
193193
194194 git ' clean' ' -dxf' ' DotnetValidationOld'
195- nuget ' restore' ' DotnetValidationOld'
195+ & $ nuget ' restore' ' DotnetValidationOld'
196196 & $msbuild ' /nologo' ' /m' ' /nr:false' ' /t:Rebuild' $LoggerArgument " /verbosity:$Verbosity " " /p:Configuration=$BuildConfig " ' .\DotnetValidationOld\DotnetValidation.sln'
197197 if (-not $? ) {
198198 $host.ui.WriteErrorLine (' Build failed, aborting!' )
@@ -237,7 +237,7 @@ If ($Validate) {
237237}
238238
239239# Validate code generation using the C# code generator
240- If ($Validate ) {
240+ If (-not $NoValidate ) {
241241 git ' clean' ' -dxf' ' DotnetValidation'
242242 dotnet ' run' ' --project' ' .\DotnetValidation\DotnetValidation.csproj' ' --framework' ' netcoreapp1.1'
243243 if (-not $? ) {
@@ -246,7 +246,7 @@ If ($Validate) {
246246 }
247247
248248 git ' clean' ' -dxf' ' DotnetValidation'
249- nuget ' restore' ' DotnetValidation'
249+ & $ nuget ' restore' ' DotnetValidation'
250250 & $msbuild ' /nologo' ' /m' ' /nr:false' ' /t:Rebuild' $LoggerArgument " /verbosity:$Verbosity " " /p:Configuration=$BuildConfig " ' .\DotnetValidation\DotnetValidation.sln'
251251 if (-not $? ) {
252252 $host.ui.WriteErrorLine (' Build failed, aborting!' )
0 commit comments