Prerequisites
Before you begin, ensure you have the following installed:Intent Architect
Version 4.6.0 or laterDownload from intentarchitect.com
.NET SDK
Version 8.0 or laterDownload from dotnet.microsoft.com
IDE
Visual Studio 2022, VS Code, or RiderAny C# IDE with .NET 8 support
Git
Latest stable versionFor cloning the repository
Version Requirements
- Intent Architect: 4.6.0-a to 5.0.0-a (as specified in module manifests)
- .NET SDK: 8.0 (modules target
net8.0) - C# Language Version: 12.0 (with nullable reference types enabled)
Cloning the Repository
Building the Modules
Build All Modules
Build All Modules
Build the entire solution:This builds all modules in the
Modules/ directory. Build artifacts are placed in:Build a Specific Module
Build a Specific Module
Build just one module:The built
.imodspec package will be in:Build Configuration
Build Configuration
All modules share common build properties via Key properties:
Directory.Build.props:Directory.Build.props
GeneratePackageOnBuild: Automatically creates.imodspecon buildCopyLocalLockFileAssemblies: Includes dependencies in the output
Understanding Module Structure
A typical module project has this structure:Key Files Explained
Key Files Explained
.csproj File
Standard .NET project file with module metadata:
Intent.Modules.Common.csproj
.imodspec File
Module manifest defining templates, dependencies, and metadata:
Intent.Common.imodspec
Running Tests
The repository includes test applications in theTests/ directory:
Install local module builds
To test your changes:
- Build the module you modified
- In Intent Architect, right-click Modules
- Select Install Module from File
- Browse to the built
.imodspecfile - Click Install
Run the Software Factory
Execute the Software Factory to test your changes:
- Click the Software Factory Execution button
- Review the generated output
- Check for errors in the execution log
Development Workflow
Test in Intent Architect
Install the built module in a test application and run the Software Factory.
Running Pre-commit Checks
Before committing changes, run validation checks:- Code formatting checks
- Build validation
- Basic smoke tests
Debugging Modules
Attach to Intent Architect Process
Attach to Intent Architect Process
To debug module code during Software Factory execution:
- Start Intent Architect
- In your IDE, attach to the Intent Architect process:
- Visual Studio: Debug → Attach to Process →
IntentArchitect.exe - Rider: Run → Attach to Process →
IntentArchitect.exe
- Visual Studio: Debug → Attach to Process →
- Set breakpoints in your module code
- Run the Software Factory in Intent Architect
- Your IDE will hit the breakpoints
Enable Detailed Logging
Enable Detailed Logging
Add logging to your templates:View logs in Intent Architect:
- Software Factory Execution window
- Output tab
Inspect Generated Code
Inspect Generated Code
Generated code is written to:Review these files to verify your template output.
IDE Setup Recommendations
Visual Studio 2022
Visual Studio 2022
Recommended extensions:
- ReSharper (optional) - Enhanced C# editing
- .NET Compiler Platform SDK - For working with Roslyn
Visual Studio Code
Visual Studio Code
Required extensions:
- C# Dev Kit - C# language support
- NuGet Package Manager - Manage dependencies
JetBrains Rider
JetBrains Rider
Rider works out-of-the-box with excellent C# support.Recommended settings:
- Enable EditorConfig support
- Enable Code Cleanup on Save
- Set Solution-wide analysis to On
Contribution Guidelines
When contributing to the repository:See the repository README for detailed contribution guidelines.
Troubleshooting
Build fails with 'SDK not found'
Build fails with 'SDK not found'
Module won't load in Intent Architect
Module won't load in Intent Architect
Check:
supportedClientVersionsin.imodspecmatches your Intent Architect version- All required dependencies are included in the module package
- No conflicting module IDs with existing modules
- Build output contains the
.imodspecfile
Changes not reflected after rebuild
Changes not reflected after rebuild
- Uninstall the old module version from Intent Architect
- Rebuild the module
- Reinstall the new
.imodspecfile - Restart Intent Architect if issues persist
NuGet package restore fails
NuGet package restore fails
Clear NuGet cache and retry:
Next Steps
Quick Start
Build your first module in under 10 minutes
Architecture
Understand the module system architecture
Creating Templates
Learn how to build templates
Support
Get help from the community