CodeFactory.WinVs.SDK 2.26166.0.1-PreRelease

This is a prerelease version of CodeFactory.WinVs.SDK.
dotnet add package CodeFactory.WinVs.SDK --version 2.26166.0.1-PreRelease
                    
NuGet\Install-Package CodeFactory.WinVs.SDK -Version 2.26166.0.1-PreRelease
                    
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="CodeFactory.WinVs.SDK" Version="2.26166.0.1-PreRelease" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeFactory.WinVs.SDK" Version="2.26166.0.1-PreRelease" />
                    
Directory.Packages.props
<PackageReference Include="CodeFactory.WinVs.SDK" />
                    
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 CodeFactory.WinVs.SDK --version 2.26166.0.1-PreRelease
                    
#r "nuget: CodeFactory.WinVs.SDK, 2.26166.0.1-PreRelease"
                    
#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 CodeFactory.WinVs.SDK@2.26166.0.1-PreRelease
                    
#: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=CodeFactory.WinVs.SDK&version=2.26166.0.1-PreRelease&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=CodeFactory.WinVs.SDK&version=2.26166.0.1-PreRelease&prerelease
                    
Install as a Cake Tool

CodeFactory Software Development Kit for Visual Studio - Windows

NuGet License: MIT

Overview

CodeFactory.WinVs.SDK is the complete, aggregated NuGet package for building CodeFactory automation that runs inside Visual Studio for Windows. Installing this single package gives you everything you need — the core runtime, Visual Studio integration, WPF UI support, and the MSBuild packaging toolchain — to author, build, and deploy CodeFactory automation libraries (.cfa files).

This package bundles and coordinates three foundational CodeFactory packages:

Package Purpose
CodeFactory Core CodeFactory runtime and model APIs
CodeFactory.WinVs Visual Studio for Windows automation APIs and command infrastructure
CodeFactory.WinVs.Wpf WPF-based UI components for CodeFactory commands

Requirements

  • Visual Studio 2022 or later (Windows)
  • .NET Framework 4.8 (automation host target)
  • .NET Standard 2.0 (library compatibility)
  • CodeFactory Runtime — must be installed in Visual Studio at a version equal to or greater than this SDK version

Getting Started

Installation

Install the SDK via the NuGet Package Manager or the .NET CLI:

dotnet add package CodeFactory.WinVs.SDK

Or search for CodeFactory.WinVs.SDK in the Visual Studio NuGet Package Manager UI.

Creating a CodeFactory Automation Project

  1. Install the CodeFactory for Visual Studio extension from the Visual Studio Marketplace.
  2. Use the CodeFactory project templates to scaffold a new automation library.
  3. Add this NuGet package to your automation project.
  4. Implement your automation commands by inheriting from the appropriate command base classes provided in CodeFactory.WinVs.
  5. Build your project — the included MSBuild targets automatically invoke the CodeFactory Packager to produce a .cfa automation package file.

What's Included

This SDK package delivers the following to your project:

MSBuild Integration

  • CodeFactory.WinVs.SDK.targets — MSBuild targets that wire the packaging step into your build pipeline (build/net48/).
  • PackagerWinVs.targets — Supporting MSBuild targets for the packager tool (tools/).

CodeFactory Packager Tool

  • CodeFactory.Packager.WinVs.exe — A command-line utility (targeting net48) that inspects your compiled automation assembly, validates SDK version compatibility, and bundles all required dependencies into a .cfa package file ready for deployment into Visual Studio.

Runtime Assemblies (tools/net48/)

The following assemblies are included and deployed alongside the packager:

Assembly Description
CodeFactory*.dll CodeFactory core and Visual Studio automation APIs
MessagePack*.dll High-performance binary serialization
Microsoft.Extensions.CommandLineUtils.dll CLI argument parsing
Microsoft.Bcl.AsyncInterfaces.dll Async interface backport for .NET Framework
Microsoft.NET.StringTools.dll MSBuild string utilities
Serilog.dll Structured logging
System.Buffers.dll Memory buffer utilities
System.Collections.Immutable.dll Immutable collection types
System.IO.Packaging.dll Package I/O support
System.Memory.dll Memory span support
System.Numerics.Vectors.dll SIMD vector support
System.Runtime.CompilerServices.Unsafe.dll Low-level memory operations
System.Threading.Tasks.Extensions.dll Task extension APIs

Command Configuration

CodeFactory commands are configured via the ExternalConfig system.

⚠️ Note: The CommandManager class is deprecated. All command configuration must now be done through the ExternalConfig class. ConfigParameter supports the following value types: string, bool, datetime, and list.

External Configuration Editor

An external configuration editor is available directly in the IDE:

  1. Right-click the Solution node in Solution Explorer.
  2. Select [cF] Automation Configuration.
  3. Use the editor to configure all commands hosted in your .cfa file.

Transaction History

CodeFactory tracks historical statistics for all commands that write to files in projects or the solution. The following data is recorded per transaction:

  • Name of the file updated
  • Name of the project the file resides in (or null if not part of a project)
  • Name of the solution
  • Relative path of the file from the project or solution root
  • Number of characters written (excluding whitespace and line returns)
  • Number of lines written (excluding empty lines)

Transaction results are returned directly from any insert or replace operation.


Upgrading

When updating your automation project to a new version of this SDK:

  1. Update the CodeFactory.WinVs.SDK NuGet package reference to the new version.
  2. Recompile all automation projects targeting the new SDK version.
  3. Ensure the CodeFactory runtime installed in Visual Studio is at least the same version as the SDK or higher.

License

This package is licensed under the MIT License.
Copyright © 2026 CodeFactory, LLC.


Resources

Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on CodeFactory.WinVs.SDK:

Package Downloads
CodeFactory.Automation.Standard.Logic

Standard automation logic to be used with CodeFactory commands built with Visual Studio - Windows.

CodeFactory.Automation.Standard.NDF.Logic

Standard automation logic to be used with CodeFactory commands built with Visual Studio - Windows.

CodeFactory.Automation.Data.Sql.EF.Logic

Entity framework SQL automation logic to be used with CodeFactory commands built with Visual Studio - Windows.

CodeFactory.Automation.Testing.MStest.Logic

MSTest integration test automation logic to be used with CodeFactory commands built with Visual Studio - Windows.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.26166.0.1-PreRelease 118 6/23/2026
2.26151.0.1-PreRelease 99 6/1/2026
2.25220.0.1-PreRelease 235 8/8/2025
2.25165.0.1-PreRelease 212 6/16/2025
2.24224.0.1-PreRelease 179 8/11/2024
2.23160.1-PreRelease 279 6/10/2023
2.23158.1-PreRelease 218 6/7/2023
2.23157.1-PreRelease 219 6/6/2023
2.23149.1-PreRelease 228 5/30/2023

Release Updates for 2.26166.0.1

Recompile Release:
When you update your automation to this version of the SDK.
You will need to recompile your automation projects to the new version of the SDK, and make sure you have the CodeFactory runtime at least the same version or higher.

Command External Configuration Updates:
Deprecated the use of the CommandManager class. All command configuration is now done through the ExternalConfig class.
ConfigParameter now supports multiple value types including string, bool, datetime and list.

External Configuration Editor:
All CodeFactory command projects now have an external configuration editor that handles the configuration of the commands that are hosted in a CFA file.
The editor is triggered by right-clicking on the solution node in solution explorer and selecting [cF] Automation Configuration.

Transaction History:
CodeFactory now tracks the historical statics of all commands that write to files in projects and the solution.
The following statics are tracked:
- Name of the file updated.
- Name of the project the file resides in or null if it is not part of a project.
- Name of the solution the file resides.
- Relative path of the file from the project or solution root.
- Number of characters written to the file omitting the white space characters and line returns.
- Number of lines written to the file, omitting the lines with no content.

Transaction Results:
You can now get the transaction results from any insert or replace operation. This will return the above statics for the transaction.