Addin Framework parsing fails
- Dominant language
- C#
- Stars
- 4.2k
- Forks
- 778
- Avg merge
- 1h 15m
- Merged PRs (30d)
- 19
Description
### What You Are Seeing?
Error: System.InvalidOperationException: Something went wrong when parsing framework.
### What is Expected?
Script should run withour error
### What version of Cake are you using?
Version 0.16.2+Branch.main.Sha.fb23be463dacfa51c9b19a7cd111149dda7e8c6b
### Are you running on a 32 or 64 bit system?
64-bit
### What environment are you running on? Windows? Linux? Mac?
Windows 7
### Are you running on a CI Server? If so, which one?
No
### How Did You Get This To Happen? (Steps to Reproduce)
Attaching debugger to a script that installs any Cake Addin. I am using VS Code and have tried with Visual Studio too
### Output Log
```
Error: System.InvalidOperationException: Something went wrong when parsing framework.
at Cake.NuGet.V3.NuGetV3ContentResolver.ParseFromDirectoryPath(NuGetFramework current, DirectoryPath path)
at Cake.NuGet.V3.NuGetV3ContentResolver.GetAddinAssemblies(DirectoryPath path)
at Cake.NuGet.NuGetContentResolver.GetFiles(DirectoryPath path, PackageReference package, PackageType type)
at Cake.NuGet.NuGetPackageInstaller.Install(PackageReference package, PackageType type, DirectoryPath path)
at Cake.Core.Scripting.ScriptProcessor.InstallAddins(ScriptAnalyzerResult analyzerResult, DirectoryPath installPath)
at Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath, IDictionary`2 arguments)
at Cake.Commands.DebugCommand.Execute(CakeOptions options)
at Cake.CakeApplication.Run(CakeOptions options)
at Cake.Program.Main()
```
Contributor guide
Research direction
Start at Cake.NuGet.V3.NuGetV3ContentResolver.ParseFromDirectoryPath, using the reported stack trace to follow the add-in installation path through GetAddinAssemblies and NuGetPackageInstaller.Install. Reproduce by attaching a debugger while running a script that installs a Cake add-in on the reported environment. Done means the script runs without the framework-parsing InvalidOperationException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100