Skip to content

Conversation

@degenone
Copy link
Contributor

@degenone degenone commented Jul 14, 2025

I continued vibe coding and decided to take on #227. It turned out to be more work than expected but it seems to be working now.

I needed to touch on #195 to define the NuGet dependencies for the plugin.

public class PluginManifest
{
...
	public NuGetDependency[]? NuGetDependencies { get; set; }
...
}
public record NuGetDependency(string Package, string Version);
{
    ...
  "NuGetDependencies": [
    {
      "Package": "Azure.Storage.Blobs",
      "Version": "12.19.1"
    },
    {
      "Package": "Azure.Core",
      "Version": "1.44.1"
    },
      ...
  ]
}

To get the plugin to build with the DLLs I had to add <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> to the projects .csproj file. Is there a better way? PluginPacker tool now looks at the manifest property to search and copy the dependencies to the .sspkg package.

I also needed a way to remove the FileStorage.FileSystem plugin so I had to implement #118. PluginManager.RemovePlugin and the changes to SharpSite.Plugins are where I most relied on Copilot, so this could use a careful code review.

There is now a warning in Plugin Management page if you have no or more than 1 plugins with FileStorage feature is installed.

Warning when no FileStorage plugin is installed Warning when more than one FileStorage plugin is installed. The plugins in question are highlighted with red borders

The error when you have no FileStorage plugin installed and try to add an image is not very useful atm.

Text editor warning when no FileStorage plugin is installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant