• Stars
    star
    201
  • Rank 193,980 (Top 4 %)
  • Language Batchfile
  • License
    MIT License
  • Created over 7 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Make your Visual Studio Portable

MSVC Standalone

Create a portable Visual Studio distribution from your current installation.

Why?

Installing Visual Studio takes time, requires explicit user interaction and is very hard to automate. By bundling the compiler with your source, you can remove the need of requiring stateful installations of software on computers you wish to build. This process is often called "vendorization".

It can be useful for many cases, one major of them being CI. Your CI sytem now doesn't require any special treatment, since your build can run on any clean Windows installation.

Another case is in development of big systems, for example game engines. If all you need for building your engine is inside your repository, creating reproducible builds becomes a lot easier. You want to upgrade your toolchain from VS 2015 to 2017? No problem, your whole studio does not have to reinstall everything on their computers, it's only required to update the binaries in your repository.

What?

The vs2017.bat script will find your Visual Studio 2017 installation and copy all the required files to use just the compiler and libraries to the first argument specified. This folder can now be used and included wherever you like.

Usage

Simply open a shell (cmd.exe) and execute the vs2017.bat script.

It takes a single argument, which is the target directory where to create the portable distribution.

$ .\vs2017.bat portableVS

Configuration

Currently the distribution excludes all HostX86 files, since there is a clear advantage of using the x64 compiler as opposed to the x86, if you still would like to use it, you can go into the vs2017.bat script and uncomment the section creating the x86 distribution.

TODO

  • Add VS2015 script
  • Add tests

Contribution

All contributions welcome!

License

Licensed under the MIT License.

Copyright (c) 2017 Arvid Gerstmann

More Repositories

1

WindowsHModular

A modular Windows.h Header. Licensed under Public Domain & MIT.
C
374
star
2

metareflect

Metareflect is a lightweight reflection system for C++, based on LLVM and Clangs libtooling.
C++
234
star
3

ownDrop

Your One-Click upload client for ownCloud
Objective-C
53
star
4

ClangOnWindows

Source code for my blog post:
Batchfile
43
star
5

ActionBar-with-Tabs

Example for ActionBar with Tabs
Java
36
star
6

ScreenRecorder-for-Android

Use the new Android 4.4 screen recording feature, to record your screen. Requires root access!
Shell
30
star
7

PackCC

PackCC is a packrat parser generator for C.
C
22
star
8

gpulib

C++
16
star
9

Generic-Makefile

Generic Makefile for your C / C++ projects
Makefile
15
star
10

p4fs

Perforce as Filesystem in Userspace (FUSE)
C
11
star
11

dotfiles

My dotfiles
Vim Script
10
star
12

TinyAnalytics

A lightweight library for Google Analytics.
Objective-C
10
star
13

SteamBMC

*Working* fork of the original SteamBMC
Python
9
star
14

fastbuild-example

Example Repository for my Meeting C++ Lightning Talk
C++
9
star
15

thor

C
9
star
16

BashBuild

Replace CMake with less than 100 lines of Bash
Shell
8
star
17

std-sort-in-c

C
5
star
18

SignatureView

SignatureView for iOS / Android
Java
4
star
19

Ultimate-Blackwatch

Ultimate Blackwatch for iOS
Objective-C
4
star
20

Line-Counter-For-Android

C++
4
star
21

tinyprofiler

Json generator for about:tracing / chrome://tracing profiler
C
4
star
22

bob

C
3
star
23

fbxconvert

3
star
24

compile-multiarch-ios

Simple bash script to compile a static library for multiple architectures
Shell
3
star
25

meta

An exercise in exploring compile time code generation in C++
C++
3
star
26

AOKP-Easy-Compile

Shell
2
star
27

gccbug

C
2
star
28

MoneyTracker-Strings

String Resources for Money Tracker, available for Translation.
2
star
29

Color-Schemes

My personal color schemes for the applications I use
2
star
30

flycamera

C
2
star
31

advent_of_code_2020

Yet another Advent of Code. This time, it's in rust.
Rust
1
star
32

golang-devops-test

Go
1
star
33

XBMC-Repository

Leandros' Repository for all XBMC Stuff
Python
1
star
34

peg-leg

Recursive-descent parser generator for C.
C
1
star
35

rust-node-napi

Trying to trick Nodejs
Rust
1
star
36

breakpad-mirror

C++
1
star
37

convertPlistToJson

Convert PLIST files to JSON
Objective-C
1
star
38

cheatsheets

Various cheatsheets for software I use
1
star
39

AdventOfCode

The answers to the Advent of Code
C
1
star
40

dyld-bug

Objective-C
1
star
41

resize

Resize script for Mac OS X command line
Shell
1
star
42

Sketch-AndroidStudio

Automatically export assets from Sketch into Android Studio
Java
1
star
43

vim-misc

My miscellaneous vim syntaxes and other stuff
Vim Script
1
star
44

python-devops-test

Python
1
star