tag:help.appveyor.com,2012-11-13:/discussions/questions/47366-nunit-console-runner-versionAppVeyor: Discussion 2020-05-25T21:03:06Ztag:help.appveyor.com,2012-11-13:Comment/481764492020-03-23T17:33:28Z2020-03-23T17:33:28ZNunit-console-runner version<div><p>Hi Jan Philipp,</p>
<p>You can update NUnit 3 runner to the latest 3.11.1 version with the following PowerShell script:</p>
<pre>
<code># nunit
$nunitPath = "$env:SYSTEMDRIVE\Tools\NUnit3"
Remove-Item $nunitPath -Recurse -Force
$zipPath = "$env:TEMP\NUnit.Console-3.11.1.zip"
(New-Object Net.WebClient).DownloadFile('https://github.com/nunit/nunit-console/releases/download/v3.11.1/NUnit.Console-3.11.1.zip', $zipPath)
7z x $zipPath -y -o"$nunitPath" | Out-Null
# logger
$zipPath = "$env:TEMP\Appveyor.NUnit3Logger.zip"
(New-Object Net.WebClient).DownloadFile('https://www.appveyor.com/downloads/Appveyor.NUnit3Logger.zip', $zipPath)
7z x $zipPath -y -o"$nunitPath\addins" | Out-Null
Move-Item "$nunitPath\addins\appveyor.addins" "$nunitPath\appveyor.addins"</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/481764492020-03-23T17:34:25Z2020-03-23T17:34:25ZNunit-console-runner version<div><p>Created a new issue to update the images: <a href="https://github.com/appveyor/ci/issues/3360">https://github.com/appveyor/ci/issues/3360</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/481764492020-03-24T09:22:13Z2020-03-24T09:22:14ZNunit-console-runner version<div><p>I’m sorry for this question, but where I execute this script? Before every build?</p>
<p>I used it in the init script as ps, but nothing changes / happens.</p>
<p>Regards JP Lührig</p>
<p>Von: Feodor Fitsner <a href="mailto:tender2+d09bbaef94@tenderapp.com">tender2+d09bbaef94@tenderapp.com</a><br>
Gesendet: Montag, 23. März 2020 18:34<br>
An: Jan Philipp Lührig <a href="mailto:Jan.Luehrig@slm-solutions.com">Jan.Luehrig@slm-solutions.com</a><br>
Betreff: [EXTERNAL] Re: Nunit-console-runner version [Questions #47366]</p></div>Jan Philipp Lührigtag:help.appveyor.com,2012-11-13:Comment/481764492020-03-24T19:29:25Z2020-03-24T19:29:25ZNunit-console-runner version<div><p>If you are using <code>appveyor.yml</code> then you should put that script into <code>appveyor.yml</code> as UI settings will be ignored:</p>
<pre>
<code>init:
- ps: |
# nunit
$nunitPath = "$env:SYSTEMDRIVE\Tools\NUnit3"
Remove-Item $nunitPath -Recurse -Force
$zipPath = "$env:TEMP\NUnit.Console-3.11.1.zip"
(New-Object Net.WebClient).DownloadFile('https://github.com/nunit/nunit-console/releases/download/v3.11.1/NUnit.Console-3.11.1.zip', $zipPath)
7z x $zipPath -y -o"$nunitPath" | Out-Null
# logger
$zipPath = "$env:TEMP\Appveyor.NUnit3Logger.zip"
(New-Object Net.WebClient).DownloadFile('https://www.appveyor.com/downloads/Appveyor.NUnit3Logger.zip', $zipPath)
7z x $zipPath -y -o"$nunitPath\addins" | Out-Null
Move-Item "$nunitPath\addins\appveyor.addins" "$nunitPath\appveyor.addins"</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/481764492020-03-24T21:43:29Z2020-03-24T21:43:29ZNunit-console-runner version<div><p>I’ve done this, but then there is following error<br>
'"nunit3-console"' is not recognized as an internal or external command,</p>
<p>Best regards Jan P. Lührig</p>
<p>Von: Feodor Fitsner <a href="mailto:tender2+d09bbaef94@tenderapp.com">tender2+d09bbaef94@tenderapp.com</a><br>
Gesendet: Dienstag, 24. März 2020 20:29<br>
An: Jan Philipp Lührig <a href="mailto:Jan.Luehrig@slm-solutions.com">Jan.Luehrig@slm-solutions.com</a><br>
Betreff: [EXTERNAL] Re: Nunit-console-runner version [Questions #47366]</p></div>Jan Philipp Lührigtag:help.appveyor.com,2012-11-13:Comment/481764492020-03-24T21:51:02Z2020-03-24T21:51:02ZNunit-console-runner version<div><p>Oh, I see. For newer versions of NUnit there are multiple distros included in the zip. OK, this script should work:</p>
<pre>
<code>init:
- ps: |
# nunit
$nunitPath = "$env:SYSTEMDRIVE\Tools\NUnit3"
Remove-Item $nunitPath -Recurse -Force
$zipPath = "$env:TEMP\NUnit.Console-3.11.1.zip"
$tempPath = "$env:TEMP\NUnit.Console"
(New-Object Net.WebClient).DownloadFile('https://github.com/nunit/nunit-console/releases/download/v3.11.1/NUnit.Console-3.11.1.zip', $zipPath)
7z x $zipPath -y -o"$tempPath" | Out-Null
[IO.Directory]::Move("$tempPath\bin\net35", $nunitPath)
# logger
$zipPath = "$env:TEMP\Appveyor.NUnit3Logger.zip"
(New-Object Net.WebClient).DownloadFile('https://www.appveyor.com/downloads/Appveyor.NUnit3Logger.zip', $zipPath)
7z x $zipPath -y -o"$nunitPath\addins" | Out-Null
Move-Item "$nunitPath\addins\appveyor.addins" "$nunitPath\appveyor.addins"</code>
</pre></div>Feodor Fitsner