-
-
Notifications
You must be signed in to change notification settings - Fork 738
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
Executing a cake script leads to System.IO.FileNotFoundException for several System.(...) assemblies #3823
Comments
Do you have a RunTarget(Argument("target", "Default")); |
I don't...I'm so sorry for missing out on this. When I add For context: I actually always thought the Does the documentation say something about what Thanks for all the great work you and the team are doing! Oh, and just for the record: The |
I have the same errors showing in my verbose log also. The script runs fine, but it does not sit well with me seeing these errors as it did not show these using version 1.0.0. Can someone confirm this is intended (showing this with verbosity=diagnostic) or is this actually an issue? |
I would say this isn't the intended behavior, in 2.0 we added support for correctly referencing reference assemblies too, which solved several historical issues. Just need to investigate if assemblies should be excluded or logs suppressed in some way. |
Additional info, because we have the same issue. We have .NET 6.0.3 installed. Resolving assembly 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' using runtime installed at 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3'... I dont know, why Cake.Tool 2.1.0 is searching in this directory. I can't solve the problem and it blocks our Builds. So this issue is Prio1. |
GH3823: Only load valid versioned assmblies
🎉 This issue has been resolved in version v2.2.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
Prerequisites
Cake runner
Cake .NET Tool
Cake version
2.1.0
Operating system
macOS
Operating system architecture
64-Bit
CI Server
running locally
What are you seeing?
When executing a very simple cake script (passing a concrete target), the task in the cake script is not executed at all. Using the
--verbosity=diagnostic
option it shows that it seems to try to compile the script (see output log), but cannot find several assemblies from the System.(...) namespace.I may should mention that I'm working on a Apple silicon based mac using the supported x64 variants of .NET Core 3.1, .NET 5 and .NET 6 (since I'm developing Xamarin apps and these are the variants Visual Studio For Mac installs automatically).
Environment:
Result:
What is expected?
I would expect the passed target/task to run and in the case of the example build.cake file to simply output
Cleaning...
using theInformation(...)
function.build.cake file:
Steps to Reproduce
dotnet tool install cake.tool
Result:
dotnet-tools.json in solution folder:
dotnet tool run dotnet-cake --target=Clean --verbosity=diagnostic
Output log
The text was updated successfully, but these errors were encountered: