Dot net core 1 Tooling Preview offline installer

2020-03-26 07:20发布

问题:

Is it possible to have an offline installer for DotNetCore.1.0.1-VS2015Tools.Preview2 ?

回答1:

Thanks to @Lex Li for the answer.

Download the online installer from here then:

  1. Creat a shortcut in the same folder.
  2. Add the /layout switch (with a space)
  3. Run the shortcut. It will download all dependencies in package folder.
  4. After download completed, delete the shortcut and run the original installer.

As I know the /layout switch works with most Microsoft online installers, but sometimes downloads lots of packages that may you don't need. So it is not recomended when you need only one time installation.

The Visual Studio installer downloaded about 25 GB of files when I used this switch, but online installer only used about 4 GB of data in my situation.