Professional Visual Studio extension providing a modern .NET 8 project template for CubeCoders AMP plugin development.
This extension updates the outdated .NET Framework 4.8 AMP plugin template to modern .NET 8, enabling developers to create AMP plugins using current technology and best practices.
- β Modern .NET 8 - SDK-style project format
- β C# 12 - Latest language features
- β Nullable Reference Types - Better null safety
- β Complete Example - Full PluginMain.cs implementation
- β Web Interface - Dark theme HTML/CSS/JS template
- β API Helpers - JavaScript functions for AMP API calls
- β Comprehensive Docs - README with examples and guides
YourPlugin/
βββ YourPlugin.csproj # .NET 8 SDK-style project
βββ PluginMain.cs # Complete plugin implementation
βββ README.md # Project documentation
βββ WebRoot/
βββ Plugin.html # Web interface
βββ CSS/
β βββ Plugin.css # Dark theme stylesheet
βββ Scripts/
βββ Plugin.js # API helper functions
- Modern async/await patterns
- Web API method examples with
[WebMethod]attribute - Lifecycle management (Init/Shutdown)
- IPC method support
- Error handling examples
- Full XML documentation
- Open Visual Studio 2022
- Go to Extensions β Manage Extensions
- Search for "AMP Plugin Template"
- Click Install
- Restart Visual Studio
- Download AMPPluginTemplate.NET8.vsix
- Double-click the file
- Visual Studio will install the extension
- Restart Visual Studio
- Open Visual Studio 2022
- File β New β Project
- Search for "AMP Plugin"
- Select AMP Plugin (.NET 8)
- Enter your plugin name
- Click Create
Before building, set your AMP installation directory:
Option A: Environment Variable
setx AMPINSTALLDIR "C:\Path\To\Your\AMP\Installation"Option B: Edit .csproj
<Reference Include="ModuleShared">
<HintPath>C:\Your\Path\ModuleShared.dll</HintPath>
<Private>false</Private>
</Reference>dotnet build -c ReleaseOutput: bin\Release\net8.0\
Windows:
xcopy /E /I bin\Release\net8.0\* "%ProgramData%\CubeCoders\AMP\instances\[Instance]\Plugins\[YourPlugin]\"Linux:
sudo -u amp cp -r bin/Release/net8.0/* /home/amp/.ampdata/instances/[Instance]/Plugins/[YourPlugin]/Restart AMP:
ampinstmgr restart [InstanceName]namespace MyPlugin;
public class PluginMain : AMPPlugin
{
public override string DisplayName => "My Plugin";
public override string Author => "Your Name";
public override Guid PluginID => new Guid("12345678-1234-1234-1234-123456789abc");
public override string PluginVersion => "1.0.0";
public override bool HasWebRoot => true;
public override void Init(IApplicationWrapper app, ProviderManifest manifest)
{
base.Init(app, manifest);
Console.WriteLine("[MyPlugin] Loaded!");
}
}[WebMethod("Get server status", "status")]
public ActionResult GetStatus()
{
return new ActionResult
{
Status = ActionStatus.OK,
Result = new { success = true, uptime = TimeSpan.FromHours(24) }
};
}| Feature | Old Template (.NET 4.8) | New Template (.NET 8) |
|---|---|---|
| Project Format | Legacy .csproj | SDK-style |
| Target Framework | net48 |
net8.0 |
| NuGet | packages.config | PackageReference |
| AssemblyInfo | Separate file | In .csproj |
| Nullable Types | Disabled | Enabled |
| C# Version | 7.3 | 12.0 |
| Build Tool | msbuild | dotnet CLI |
- Visual Studio 2022 (17.0 or later)
- .NET 8 SDK (Download)
- CubeCoders AMP 2.5+ (runs on .NET 8)
cd /path/to/repo
zip -r AMPPluginTemplate.NET8.vsix extension.vsixmanifest [Content_Types].xml LICENSE.txt icon.png preview.png ProjectTemplates/AMPPluginTemplate.zip- Edit files in
ProjectTemplates/ - Rebuild template ZIP:
cd ProjectTemplates
zip -r AMPPluginTemplate.zip *- Rebuild VSIX (see above)
- Test in Visual Studio
See MARKETPLACE_SETUP_GUIDE.md for detailed instructions.
- Installation Guide - Complete setup instructions
- Publishing Guide - How to publish to VS Marketplace
- Quick Start - Quick reference guide
Contributions are welcome! Please:
- Fork this repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
- GitHub Issues: Report a bug or request a feature
- Website: barrersoftware.com
This project is licensed under the MIT License - see LICENSE.txt for details.
- This is an independent community contribution
- Not officially endorsed by CubeCoders Limited
- AMP is a trademark of CubeCoders Limited
- Template designed for use with AMP software
- No affiliation or warranty implied
Created by: Barrer Software
With assistance from: GitHub Copilot CLI
For: CubeCoders AMP community
Icon Design: Modern shield (Windows Defender inspired)
- Extension Size: 21 KB
- Template Files: 8 files
- Code Examples: Complete plugin with web interface
- Documentation: Comprehensive guides included
- License: MIT (free and open source)
- Visual Studio Marketplace: Coming soon
- GitHub Repository: https://github.com/barrersoftware/AMP-Visual-Studios-plugin
- AMP Documentation: https://cubecoders.com/AMPdocs
- .NET 8 Documentation: https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8
- β Modern shield icon (Windows Defender style)
- β Professional appearance
- β Updated preview images
- β Initial release
- β .NET 8 support
- β SDK-style project format
- β Complete example plugin
- β Web interface template
- β Comprehensive documentation
Made with β€οΈ for the AMP community
Helping developers create modern AMP plugins with .NET 8