Skip to content

Commit

Permalink
VS2017 - NetCore2 (UnitTest for Net35 and Net40-client)
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot committed Sep 11, 2017
1 parent aed78aa commit e08c00e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions run-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,23 @@ dotnet test .\tests\NLog.UnitTests\ --configuration release --framework netcore
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }

msbuild /t:Build /p:targetFramework=net452 .\tests\NLog.UnitTests\ /p:Configuration=Release /p:TestTargetFramework=net35 /verbosity:minimal
nuget.exe install xunit.runner.console -OutputDirectory .\tools -ExcludeVersion -Version 2.2.0
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }

& ${env:xunit20}\xunit.console.x86.exe .\tests\NLog.UnitTests\bin\release\net452\NLog.UnitTests.dll -appveyor -noshadow
msbuild /t:Build /p:targetFramework=net452 .\tests\NLog.UnitTests\ /p:Configuration=Release /p:TestTargetFramework=net35 /p:OutputPath=.\bin\release\net35 /verbosity:minimal
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }

msbuild /t:Build /p:targetFramework=net452 .\tests\NLog.UnitTests\ /p:Configuration=Release /p:TestTargetFramework=net40-client /verbosity:minimal
& .\tools\xunit.runner.console\tools\xunit.console.x86.exe .\tests\NLog.UnitTests\bin\release\net35\NLog.UnitTests.dll -appveyor -noshadow
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }

& ${env:xunit20}\xunit.console.x86.exe .\tests\NLog.UnitTests\bin\release\net452\NLog.UnitTests.dll -appveyor -noshadow
msbuild /t:Build /p:targetFramework=net452 .\tests\NLog.UnitTests\ /p:Configuration=Release /p:TestTargetFramework=net40-client /p:OutputPath=.\bin\release\net40 /verbosity:minimal
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }

& .\tools\xunit.runner.console\tools\xunit.console.x86.exe .\tests\NLog.UnitTests\bin\release\net40\NLog.UnitTests.dll -appveyor -noshadow
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }

Expand Down

0 comments on commit e08c00e

Please sign in to comment.