Sdk: How to suppress the initial "populate your local package cache" restore

Created on 9 Jun 2017  路  2Comments  路  Source: dotnet/sdk

We are running the dotnet docker containers (https://github.com/dotnet/dotnet-docker) on http://www.wercker.com/ where we can cache the packages to the cache that lives across build runs.

We set our package path to this folder via the --packages switch

Problem is that it seems dotnet restore stores the fact it has or has not done this initial restore once already in a different location from the packages which results in this happening on every build run because the container obviously is discarded

We can either create the file dotnet restore checks beforehand (unknown where that is) or it could maybe be incorporated in a switch to the restore command

Most helpful comment

There is an environment variable that you can set that will prevent dotnet from running the first run experience: DOTNET_SKIP_FIRST_TIME_EXPERIENCE. Just set it to true.

All 2 comments

There is an environment variable that you can set that will prevent dotnet from running the first run experience: DOTNET_SKIP_FIRST_TIME_EXPERIENCE. Just set it to true.

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gkhanna79 picture gkhanna79  路  3Comments

thomaslevesque picture thomaslevesque  路  3Comments

krwq picture krwq  路  3Comments

aguacongas picture aguacongas  路  3Comments

fmorriso picture fmorriso  路  3Comments