SkillAgentSearch skills...

AdmxCodeGen

A conversion tool that converts ADMX and ADML files to C# code

Install / Use

/learn @rkttu/AdmxCodeGen
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

AdmxCodeGen

NuGet Version Build Status GitHub Sponsors

A conversion tool that converts ADMX and ADML files to C# code

Minimum Requirements

  • Minimum required .NET runtime version: .NET 6.0 (LTS)
    • If you run this tool on a runtime later than this version, dependencies will be automatically aligned by the roll forward feature.
    • This library does not support ADM files.
  • The generated assemlby and C# code requires at least .NET 6 and can only run on Windows platforms.

How to install

  1. Install the latest .NET runtime from https://dot.net/ first.
  2. Run dotnet tool install --global AdmxCodeGen command. (Internet connection required.)
  3. Run admxcodegen --help command to validate installation.

How to use

Command Line Synopsis

Description:
  ADMX to C# code generator

Usage:
  admxcodegen <assemblyName> <inputPath> <outputPath> [options]

Arguments:
  <assemblyName>  Output assembly name
  <inputPath>     Input directory path or ADMX file path
  <outputPath>    Output file path

Options:
  --generate-csproj <generate-csproj>    Generate SDK style .csproj file
  --generate-buildlog                    Generate build log file [default: True]
  --generate-linqpad <generate-linqpad>  Generate LinqPad script file
  --version                              Show version information
  -?, -h, --help                         Show help and usage information

Convert ADMX directories into .NET assembly

admxcodegen TestProject "./PolicyDefinitions" "./TestProject" --generate-csproj "MyProject" --generate-linqpad "MyProjectLinq" --generate-buildlog

Convert ADMX file into .NET assembly

admxcodegen InternetExplorer "./PolicyDefinitions/inetres.admx" "./InternetExplorer" --generate-csproj "MyProject" --generate-linqpad "MyProjectLinq" --generate-buildlog

License

This library follows Apache-2.0 license. See LICENSE file for more information.

Related Skills

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated1y ago
Forks0

Languages

C#

Security Score

70/100

Audited on Dec 17, 2024

No findings