Yash.Config 25.8.9

dotnet add package Yash.Config --version 25.8.9
                    
NuGet\Install-Package Yash.Config -Version 25.8.9
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Yash.Config" Version="25.8.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Yash.Config" Version="25.8.9" />
                    
Directory.Packages.props
<PackageReference Include="Yash.Config" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Yash.Config --version 25.8.9
                    
#r "nuget: Yash.Config, 25.8.9"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Yash.Config@25.8.9
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Yash.Config&version=25.8.9
                    
Install as a Cake Addin
#tool nuget:?package=Yash.Config&version=25.8.9
                    
Install as a Cake Tool

Yash.Config

A set of utilities and activities for configuration management and wizard support in UiPath workflows.


🚀 Getting Started

  1. Add the Yash.Config NuGet package as a dependency in your UiPath project.
  2. Use the LoadConfig activity to load Excel configuration data into your workflow as a Dictionary<string, object>.
  3. Run the ConfigureSettingsWizard to set or update required settings like file paths and output directories.
  4. Use the GenerateConfigClassesWizard to generate strongly-typed C# config classes automatically based on your Excel config file.

🛠️ Activities

  • LoadConfig: Loads an Excel configuration file into a Dictionary<string, object>, enabling dynamic and flexible access to configuration data within UiPath workflows.

🧙‍♂️ Wizards

  • ConfigureSettingsWizard
    Helps you configure essential settings for the wizards and activities, including file paths and output directories. It prompts you if any required setting is missing or needs to be updated.

  • GenerateConfigClassesWizard
    Generates strongly-typed C# configuration classes from your Excel config file, based on your specified namespace, class name, and additional using directives. This makes working with configuration data type-safe and easier to maintain.


⚙️ Settings

The package includes a set of configurable settings to control the behavior of the wizards and code generation:

Setting Key Label Description Validation
Yash.Config.AutoGeneration.FilePath Config File Path The Excel file path used to generate config classes. Must be a valid existing file path.
Yash.Config.AutoGeneration.OutputDirectory Output Directory The folder where generated config classes are saved. Must be a valid existing directory.
Yash.Config.AutoGeneration.ClassName Class Name The name of the generated C# class. Must start with a letter and not be empty.
Yash.Config.AutoGeneration.Namespace Namespace Namespace for the generated C# class. Must not be empty.
Yash.Config.AutoGeneration.AdditionalUsings Additional Usings Comma-separated list of additional using directives. Optional, default is none.

📚 Core Models and Type Parsing

Config Class

  • A dynamic dictionary-like class that supports property-based access and serialization.
  • Supports JSON serialization and binary serialization (via [Serializable] and ISerializable).
  • Provides runtime-safe dynamic access to config keys as properties, throwing exceptions for missing keys to help catch errors early.

Type Parsers

  • The package includes a comprehensive set of type parsers that convert string representations into various primitive and collection types for seamless deserialization.
  • Supported primitive types include:
    string, int, double, bool, DateTime, TimeSpan.
  • Supported collection types include:
    List<T> and T[] for the above primitives (e.g., List<string>, int[]).

Expected Formats

  • Primitive types:

    • Integers, doubles, and booleans follow their usual string representations (e.g., "42", "true", "3.14").
    • DateTime strings should be in a valid parseable format such as ISO 8601 (e.g., "2025-07-30T14:25:00").
    • TimeSpan strings should follow the standard TimeSpan formats (e.g., "01:30:00" for 1 hour 30 minutes).
  • Collections:

    • Lists and arrays are parsed from comma-separated strings without spaces. For example:
      • "value1,value2,value3" for List<string> or string[]
      • "1,2,3,4" for List<int> or int[]
    • Empty strings are parsed as empty lists or arrays.

ConfigFactory

  • Provides a method to create strongly typed config class instances from a raw dictionary by mapping and parsing dictionary entries to properties, ensuring proper types and validation.

📖 License

This project is licensed under the MIT License.



Built and maintained by Yash Brahmbhatt.

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
25.8.9 97 8/9/2025
25.8.8 90 8/9/2025
25.8.7 92 8/9/2025
25.8.6 181 8/5/2025
25.7.8 94 7/31/2025
25.7.7 96 7/31/2025
25.7.6 100 7/30/2025
25.7.5 95 7/30/2025

Initial public release