CodeFactory.WinVs.SDK
2.26166.0.1-PreRelease
dotnet add package CodeFactory.WinVs.SDK --version 2.26166.0.1-PreRelease
NuGet\Install-Package CodeFactory.WinVs.SDK -Version 2.26166.0.1-PreRelease
<PackageReference Include="CodeFactory.WinVs.SDK" Version="2.26166.0.1-PreRelease" />
<PackageVersion Include="CodeFactory.WinVs.SDK" Version="2.26166.0.1-PreRelease" />
<PackageReference Include="CodeFactory.WinVs.SDK" />
paket add CodeFactory.WinVs.SDK --version 2.26166.0.1-PreRelease
#r "nuget: CodeFactory.WinVs.SDK, 2.26166.0.1-PreRelease"
#:package CodeFactory.WinVs.SDK@2.26166.0.1-PreRelease
#addin nuget:?package=CodeFactory.WinVs.SDK&version=2.26166.0.1-PreRelease&prerelease
#tool nuget:?package=CodeFactory.WinVs.SDK&version=2.26166.0.1-PreRelease&prerelease
CodeFactory Software Development Kit for Visual Studio - Windows
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
- Install the CodeFactory for Visual Studio extension from the Visual Studio Marketplace.
- Use the CodeFactory project templates to scaffold a new automation library.
- Add this NuGet package to your automation project.
- Implement your automation commands by inheriting from the appropriate command base classes provided in
CodeFactory.WinVs. - Build your project — the included MSBuild targets automatically invoke the CodeFactory Packager to produce a
.cfaautomation 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 (targetingnet48) that inspects your compiled automation assembly, validates SDK version compatibility, and bundles all required dependencies into a.cfapackage 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
CommandManagerclass is deprecated. All command configuration must now be done through theExternalConfigclass.ConfigParametersupports the following value types:string,bool,datetime, andlist.
External Configuration Editor
An external configuration editor is available directly in the IDE:
- Right-click the Solution node in Solution Explorer.
- Select [cF] Automation Configuration.
- Use the editor to configure all commands hosted in your
.cfafile.
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
nullif 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:
- Update the
CodeFactory.WinVs.SDKNuGet package reference to the new version. - Recompile all automation projects targeting the new SDK version.
- 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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- CodeFactory (>= 2.26166.0.1-PreRelease)
- CodeFactory.WinVs (>= 2.26166.0.1-PreRelease)
- CodeFactory.WinVs.Wpf (>= 2.26166.0.1-PreRelease)
- MessagePack (>= 3.1.7)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.0)
- Microsoft.Extensions.CommandLineUtils (>= 1.1.1)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.0)
- Serilog (>= 4.0.0)
- System.IO.Packaging (>= 7.0.0)
- System.Memory (>= 4.5.5)
- System.Numerics.Vectors (>= 4.5.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
- System.Text.Json (>= 9.0.0)
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.