-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception calling "DownloadFile" with "2" argument(s): "The path is not of a legal form." #60
Comments
Hello @gep13 - It looks like the change you made for 0.4.2 is causing this issue. The stack trace we saw is below. It seems like the build task, when we don't specify the location, is still interpreting I'm also assuming you made this change because elsewhere you were getting
|
test if $nugetExeDownloadLocation is empty or null
Hey i have a change and proposed it as a PR. i would do a check like this if (-Not $nugetExeDownloadLocation) |
test if $nugetExeDownloadLocation is empty or null
🎉 This issue has been resolved in version 0.4.3 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
@sreeraj-rajendran @dannmichelson @MO2k4 @scott-the-programmer @danieljgmaclean @bkowalczyk88 This issue should now be resolved, with version 0.4.3 of the extension. Can you please let me know if you are still seeing problems. Thanks |
Looks beautiful again, thanks for your fast response 👍 |
We have been experiencing this bug again since this morning:
We are having this issue again with Cake.AzureDevOps v0.4.4, is it possible that the same bug as in v0.4.2 snug it's way back in? |
@JoaoDiogoF For reference, there is a new issue because of the removal of TLS1.X. I've also added a workaround, when you are in full control of the machine. |
TLS 1.2 should be enabled to get it working. In PowerShell you can find out which protocols your system supports by running this code: [Enum]::GetNames([Net.SecurityProtocolType]) -contains 'Tls12' If the result is True then TLS 1.2 is being used . However, you can add TLS 1.2 explicitly by using: [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 |
Per the the task configuration, nuget.exe will be downloaded from : https://dist.nuget.org/win-x86-commandline/latest/nuget.exe if the :Nuget.exe location" is unspecified.
The task seems to be failing with the error: ##[error]Exception calling "DownloadFile" with "2" argument(s): "The path is not of a legal form." When leaving this to default.
The behavior is the same when we try from a dummy pipeline - just with the cake task with no arguments as well.
However, enabling the option – “Use the Build Agent Nuget” works
The text was updated successfully, but these errors were encountered: