RubyGems Navigation menu

vcvars 0.1.1

vcvars locates a Visual Studio / Build Tools install via vswhere and loads the MSVC toolchain (vcvars*.bat) into the current process, so C extensions build under an mswin Ruby without first opening a "Developer Command Prompt". It provides a library API (Vcvars.activate!), a Rake integration (require "vcvars/rake"), a `vcvars exec -- ` runner, a `vcvars doctor` that diagnoses the classic MSVC extension-build failures, a `vcvars env` shell-env emitter, and a `vcvars new` scaffolder for MSVC-ready extension gems. It is "ridk enable", but for MSVC. Pure Ruby, no compiler required to install.

Gemfile:
=

install:
=

Versions:

  1. 0.1.1 May 30, 2026 (21.5 KB)
  2. 0.1.0 May 30, 2026 (21.5 KB)

Development Dependencies (2):

minitest ~> 5.0
rake ~> 13.0

Owners:

Pushed by:

Authors:

  • ned

SHA 256 checksum:

=

Total downloads 336

For this version 198

Version Released:

License:

MIT

Required Ruby Version: >= 3.0

New versions require MFA: true

Version published with MFA: true

Links: