Skip to content

Commit

Permalink
FIX: vsuncache
Browse files Browse the repository at this point in the history
  • Loading branch information
reksar committed Oct 21, 2023
1 parent 86915b7 commit aa3eeed
Show file tree
Hide file tree
Showing 9 changed files with 238 additions and 333 deletions.
105 changes: 55 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,55 @@
# vsget

Collects portable MS Visual Studio tools.

Currently only x64-x64 is available for host-target platforms.

```bat
vsget [destination]
```

- Downloads and unpacks (without installation) to `[destination]` path:
* MS Visual C++ v143 *(~ 500 MB)*
* MS Build v170 *(~ 35 MB)*
* Windows SDK v10.0.22621.755 *(~ 2.4 GB)*
- Adds related `vcvars*.bat` to init the environment before using the tools.

## Windows SDK

Windows SDK can be downloaded separately:

```bat
get-sdk [destination]
```

Downloads the ISO, extracts the MSI installers (with related CAB files) of the
SDK components and unpacks them into `[destination]`.

# Uncache MS Visual Studio components

**NOTE: it is broken at the moment!**

```bat
uncache-vsix [MSVS CACHE PATH]
```

Uses the MS Visual Studio cache to generate `vsix-groups\*.txt` files.

# Install Build Tools for Visual Studio

If you don't need exactly a portable version of VS Tools (for example, when you
need to *uncache* VSIX components), you can use `vsinstall` to automatically
install the minimal Visual C++ tools:

* Visual C++ Tools x64

* Windows SDK

Actual versions are set in `URL`, `VC` and `SDK` vars in `vsinstall.bat`:
Build Tools for Visual Studio 2022 (v17);
Windows 10 SDK v20348.
# vsget

Collects portable MS Visual Studio Tools.

Currently only x64-x64 is available for host-target platforms.

```bat
vsget [destination]
```

Downloads and unpacks (without installation) to `destination`:

* MS Visual C++ v143 *(~ 500 MB)*

* MS Build v170 *(~ 35 MB)*

* Windows SDK v10.0.22621.755 *(~ 2.4 GB)*

Adds related `vcvars*.bat` to init the VS Tools environment.

## Windows SDK

Windows SDK can be downloaded separately:

```bat
get-sdk [destination]
```

Downloads the ISO, extracts the MSI installers (with related CAB files) of the
SDK components and unpacks them into `destination`.

# Uncache MS Visual Studio Components

Use the MS Visual Studio cache to generate `vsix-groups\*.txt` files:

```bat
vsuncache {CachePath}
```

If the optional `CachePath` is ommited, tries to find the VS cache path in the
Windows Registry.

# Install Build Tools for Visual Studio

If you don't need exactly a portable version of VS Tools (for example, when you
need to *uncache* VSIX components), you can use `vsinstall` to automatically
install the minimal Visual C++ tools:

* Visual C++ Tools x64

* Windows SDK

Actual versions are set in `URL`, `VC` and `SDK` vars in `vsinstall.bat`:
Build Tools for Visual Studio 2022 (v17);
Windows 10 SDK v20348.
12 changes: 0 additions & 12 deletions uncache-vsix.bat

This file was deleted.

52 changes: 0 additions & 52 deletions utils/strmatch.bat

This file was deleted.

6 changes: 0 additions & 6 deletions vsix-uncache/msbuild-x64.bat

This file was deleted.

5 changes: 5 additions & 0 deletions vsix-uncache/msbuild-x64.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Microsoft.Build,version=*
Microsoft.Build.Dependencies,version=*
Microsoft.VisualStudio.VC.MSBuild.v*.Base,version=*
Microsoft.VisualStudio.VC.MSBuild.v*.X64,version=*
Microsoft.VisualStudio.VC.MSBuild.v*.X64.v*,version=*
205 changes: 0 additions & 205 deletions vsix-uncache/uncache.bat

This file was deleted.

Loading

0 comments on commit aa3eeed

Please sign in to comment.