-
Notifications
You must be signed in to change notification settings - Fork 0
Installation Guide
LoSkroefie edited this page Jan 19, 2025
·
1 revision
Before installing FLEXON, ensure you have:
- .NET 6.0 SDK or later
- Visual Studio 2019 or later (recommended)
- Git (for source installation)
The easiest way to install FLEXON is via NuGet:
# Package Manager Console
Install-Package FlexonCLI
# .NET CLI
dotnet add package FlexonCLITo build from source:
# Clone the repository
git clone https://github.com/LoSkroefie/flexon-cli.git
cd flexon-cli
# Build the solution
dotnet build
# Run tests
dotnet test
# Install globally
dotnet tool install --global --add-source ./nupkg FlexonCLIAdd FLEXON to your project:
using FlexonCLI;
// Initialize serializer
var serializer = new FlexonSerializer();In Program.cs or Startup.cs:
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers()
.AddFlexonFormatters(options =>
{
options.EnableCompression = true;
options.ValidationMode = ValidationMode.Strict;
});
}protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Document>()
.Property(d => d.Data)
.HasFlexonConversion();
}- Install Visual Studio 2019 or later
- Install the ".NET Desktop Development" workload
- Install the "ASP.NET and web development" workload (optional)
- Install VS Code
- Install C# extension
- Install .NET Core Debugger
# Install .NET SDK
winget install Microsoft.DotNet.SDK.6
# Install build tools
dotnet tool install -g dotnet-build-toolsAdd these to your system environment variables:
FLEXON_HOME=C:\Program Files\FlexonCLI
PATH=%PATH%;%FLEXON_HOME%\bin
Verify the installation:
# Check CLI version
flexon --version
# Run test serialization
flexon test-connection-
Missing Dependencies
Error: The type 'FlexonSerializer' could not be foundSolution: Ensure the package is properly referenced in your project file.
-
Version Conflicts
Error: Could not load file or assembly 'FlexonCLI'Solution: Check for version conflicts in your dependencies.
-
Path Issues
'flexon' is not recognized as a commandSolution: Ensure the installation directory is in your PATH.
Logs are located at:
- Windows:
%LOCALAPPDATA%\FlexonCLI\logs - Linux:
~/.local/share/FlexonCLI/logs - macOS:
~/Library/Logs/FlexonCLI
- Follow the Quick Start guide
- Review Basic Concepts
- Explore Examples
- Read the API Reference
For additional help: