question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`build.cmd RunTests` on Windows throws error

See original GitHub issue

for the Site solution build.cmd RunTests on Windows throws error The request was aborted: Could not create SSL/TLS secure channel. (Github)

error log


No version specified. Downloading latest stable. The request was aborted: Could not create SSL/TLS secure channel. (Github) Paket version 5.189.1 The last restore is still up to date. Nothing left to do. Performance:

  • Runtime: 672 milliseconds Building project with version: LocalBuild Shortened DependencyGraph for Target RunTests: <== RunTests <== CopyAssets <== CopyBinaries <== Build <== AssemblyInfo <== Clean

The resulting target order is:

  • Clean
  • AssemblyInfo
  • Build
  • CopyBinaries
  • CopyAssets
  • RunTests Starting Target: Clean Deleting contents of bin Deleting contents of temp Finished Target: Clean Starting Target: AssemblyInfo (==> Clean) Created AssemblyInfo file “C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAutomation-master\src\tests\AssemblyInfo.fs”. Finished Target: AssemblyInfo Starting Target: Build (==> AssemblyInfo) Building project: C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAutomation-master\Site.sln c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAutomation-master\Site.sln /t:Rebuild /m /p:RestorePackages=“False” /p:Configuration=“Release” /logger:Fake.MsBuildLogger+ErrorLogger,“C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAutomation-master\packages\FAKE\tools\FakeLib.dll” c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAutomation-master\Site.sln /t:Rebuild /m /p:RestorePackages=“False” /p:Configuration=“Release” /logger:Fake.MsBuildLogger+ErrorLogger,“C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAutomation-master\packages\FAKE\tools\FakeLib.dll” Microsoft ® Build Engine version 4.7.3056.0 [Microsoft .NET Framework, version 4.0.30319.42000] Copyright © Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the “/m” switch. Build started 11/30/2018 4:16:12 AM. Project “C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAutomation-master \Site.sln” on node 1 (Rebuild target(s)). ValidateSolutionConfiguration: Building solution configuration “Release|Any CPU”. Project “C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAutomation-master \Site.sln” (1) is building “C:\Users\Admin\Downloads\turtletestAutomation-master\turtlete stAutomation-master\src\tests\tests.fsproj” (2) on node 1 (Rebuild target(s)). C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAutomation-master\src\test s\tests.fsproj : error MSB4057: The target “Rebuild” does not exist in the project. Done Building Project “C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAut omation-master\src\tests\tests.fsproj” (Rebuild target(s)) – FAILED.

Done Building Project “C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAut omation-master\Site.sln” (Rebuild target(s)) – FAILED.

Build FAILED.

“C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAutomation-master\Site.sl n” (Rebuild target) (1) -> “C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAutomation-master\src\tes ts\tests.fsproj” (Rebuild target) (2) -> C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAutomation-master\src\te sts\tests.fsproj : error MSB4057: The target “Rebuild” does not exist in the project.

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:03.29 Running build failed. Error: Building C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAutomation-master\Site.sln failed with exitcode 1.


Build Time Report

Target Duration


Clean 00:00:00.0028455 AssemblyInfo 00:00:00.0458439 Total: 00:00:11.6638233 Status: Failure

  1. Building C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAutomation-master\Site.sln failed with exitcode 1.
  2. MSB4057: C:\Users\Admin\Downloads\turtletestAutomation-master\turtletestAutomation-master\src\tests\tests.fsproj(0,0): The target “Rebuild” does not exist in the project.


Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
manishdubecommented, Dec 4, 2018

WORKS !!! thanks @lefthandedgoat !!!

0reactions
lefthandedgoatcommented, Dec 4, 2018

I see in your messages that its using MSBuild v4 and for me its v15

Can you see if you have any of the three folders here in green?

https://github.com/fsharp/FAKE/commit/b2e29f30b7c638964cd4d81d2761871ce9f016c8

I have also checked in one more change which may help, try getting latest.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting error when running test project using cmd file
But when I try executing this via Powershell, Getting below error. Could not execute because the specified command or file was not found....
Read more >
build.cmd fails if path contains a space · Issue #42397
My username is abc def and I get an error running build.cmd. PS> .\build.cmd Determining projects to restore.
Read more >
Running tests from the command line | Test Framework
It's pretty simple to run a test project from the command line. Here is an example in Windows: Unity.exe -runTests -batchmode -projectPath ...
Read more >
Troubleshooting Windows HLK Test Failures
1. Install latest updates and filters · 2. Review the Status icons · 3. Make sure that the test was run correctly ·...
Read more >
Testing Extensions
Because of VS Code's limitation, if you are using VS Code stable release and try to run the integration test on CLI, it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found