VEBuild.Msvc 1.0.3

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

ve.build.msvc

🚀 STATUS: v1.0.0 RC. The "All-in-One" MSVC Toolchain for VEBuild.

ve.build.msvc is a meta-package that aggregates all necessary components to build C++ projects on Windows using the Microsoft Visual C++ toolchain.

Instead of installing and configuring the compiler, linker, and project generator separately, this package provides a single entry point to set up a complete production-ready environment.


📦 What's Included?

Installing this package automatically pulls in the following dependencies:

Package Role Description
ve.build.cpp.msvc Compiler Provides cl.exe support, C++20 Modules scanning, and flag translation.
ve.build.link.msvc Linker Provides link.exe / lib.exe support and Windows SDK discovery.
ve.build.vcxprojgenerator Generator Enables generation of Visual Studio 2022 solutions (.sln) and projects (.vcxproj).

📦 Installation

This is usually the only package you need to reference for Windows development.

dotnet add package ve.build.msvc

⚡ Usage

This package exposes the .useMsvcToolchain() extension method on the HostBuilder.

One-Liner Setup

using ve.build.core;
using ve.build.msvc; // Import this namespace

return await new HostBuilder()
    .project("my_app", p => p
        .Type(ProjectType.EXE)
        .Sources("src")
    )
    
    // 👇 Magic happens here
    // Registers Compiler, Linker, and VS Generator in one go.
    .useMsvcToolchain()
    
    .build()
    .run(args);

⚙️ What .useMsvcToolchain() does

When you call this method, it performs the following registration steps internally:

  1. Registers MsvcTool: Sets up the C++ compiler provider (implementation of ICppTool).
  2. Registers MsvcLinker: Sets up the Linker/Librarian provider (implementation of ILinkTool) with auto-discovery of Windows SDK paths.
  3. Registers VcxprojGenerator: Sets up the Project Generator, enabling the dotnet run -- generate command.

This ensures that your build script can:

  • Compile code (dotnet run -- build)
  • Link executables
  • Generate IDE files (dotnet run -- generate)

...without any additional configuration code.

📝 Requirements

  • OS: Windows x64/ARM64.
  • Software: Visual Studio 2022 (Community/Pro/Ent) or Build Tools for Visual Studio 2022.
  • Workload: "Desktop development with C++".

License

© 2025 VassalStudio. All rights reserved.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos 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
1.0.3 93 5/29/2026
1.0.2.4 96 5/22/2026
1.0.2.3 94 5/22/2026
1.0.2.2 95 5/22/2026
1.0.2.1 89 5/22/2026
1.0.2 97 5/22/2026
1.0.1.2 102 3/6/2026
1.0.1.1 95 3/6/2026
1.0.1 112 3/3/2026
1.0.0.9-rc 106 3/2/2026
1.0.0.8-rc 111 2/26/2026
1.0.0.6-rc 119 2/25/2026
1.0.0.5-rc 112 2/25/2026
1.0.0.4-rc 112 2/17/2026
1.0.0.3-rc 111 2/17/2026
1.0.0.2-rc 126 12/27/2025
1.0.0-rc 200 11/27/2025