Giter VIP home page Giter VIP logo

portable-msvc's Introduction

Generate portable MSVC

Generate

  • Start x64 Native Tools Command Prompt, alternatively run vcvarsall.bat in a command prompt
  • Run cl generate.c
  • Run generate.exe

Now you have a folder called msvc that contains all required files for msvc cl, link, ml64, dumpbin and etc... to run from the command line.

To initialize the portable install you run vcvarsportable.bat inside msvc directory or you can install it as descibed below.

Install to enviorment variables

Warning: Generating new portable msvc's might grab files from this portable installation. Make sure you undo these steps before generating new portable msvc's. This is important to know when you update visual studio and want to update the portable install as well.

if you want to run cl etc, without x64 Native Tools Command Prompt, vcvarsall.bat or vcvarsportable.bat you can install the portable installation to the system enviorment variables.

  • I'd recommend to move the installation directory to an easily accessible location. Eg. C:\msvc
  • Append the full path msvc directory to PATH Eg. C:\msvc
  • Create new enviorment variable INCLUDE and add the full path to it. Eg. C:\msvc\include
  • Create new enviorment variable LIB and add the full path to it. Eg. C:\msvc\lib
  • Create new enviorment variable LIBPATH and add the full path to it. Eg. C:\msvc\libpath

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.