bonsai-rx/bonsai

Unable to resolve package reference when debugging extension scripts

glopesdev opened this issue · 0 comments

Extension scripts can use PackageReference declarations in the Extensions.csproj file to declare dependencies on packages which need to be installed and referenced when compiling the script code.

Currently these references are resolved by the bootstrapper by using the installed local packages declared in Bonsai.config. However, when debugging projects by using local package projects (e.g. from a Visual Studio solution), these dependencies are likely to instead be deployed as a local extension (using the --lib flag in the bootstrapper CLI). Because they are not installed as packages in Bonsai.config, the ScriptExtensionsProvider will fail to resolve them and the scripts will not be built correctly.

It would be very useful to allow some form of dependency resolution against local assemblies, or use somehow the project settings to generate the missing meta-information to be able to map required packages to referenced assemblies.