Paket.VisualStudio icon indicating copy to clipboard operation
Paket.VisualStudio copied to clipboard

disabling "Restore during build" won't work - VS2017

Open 304NotModified opened this issue 7 years ago • 1 comments

Description

We've disabled restore during build in VS, but still every build it starts restoring. When running unit tests, it takes at least 18 seconds before the unit tests are started (8 sec delay by Paket). Even if we only change the unit test, all projects are restoring (and rebuilding)

image

Repro steps

  1. Disable the checkbox

  2. Build the solution

Expected behavior

Won't do a Paket restore

Actual behavior

Paket restore, for all the projects

Known workarounds

No workaround found yet.

The start of the buildlog (cleaned)

>------ Build started: Project: A, Configuration: Debug Any CPU ------
1>Build started 13-3-2018 11:00:39.
1>RestorePackages:
1>  "X:\projectA\.paket\paket.exe" restore --references-files "X:\projectA\project1\paket.references"
1>  Paket version 5.122.0
1>  Please use the new syntax: '--references-files' has been replaced by '--references-file'.
1>  Performance:
1>   - Disk IO: 106 milliseconds
1>   - Runtime: 2 seconds
1>GenerateTargetFrameworkMonikerAttribute:
1>Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
1>CoreCompile:
1>Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
1>_CopyFilesMarkedCopyLocal:
1>  Touching "X:\projectA\project1\obj\Debug\project1.csproj.CopyComplete".
1>_CopyAppConfigFile:
1>Skipping target "_CopyAppConfigFile" because all output files are up-to-date with respect to the input files.
1>CopyFilesToOutputDirectory:
1>  project1 -> X:\projectA\project1\bin\Debug\project1.dll                                                                                   
1>
1>Build succeeded.
1>    0 Warning(s)
1>    0 Error(s)
1>
1>Time Elapsed 00:00:03.48
2>------ Build started: Project: project2, Configuration: Debug Any CPU ------
2>Build started 13-3-2018 11:00:43.
2>RestorePackages:
2>  "X:\projectA\.paket\paket.exe" restore --references-files "X:\projectA\project2\paket.references"
2>  Paket version 5.122.0
2>  Please use the new syntax: '--references-files' has been replaced by '--references-file'.
2>  Performance:
2>   - Disk IO: 142 milliseconds
2>   - Runtime: 2 seconds

Related information

Using VS2017 (15.5.6) and Paket for Visual Studio 0.38.3

  • Operating system Windows 10, X64
  • Branch ?
  • .NET Runtime Version .NET 4.5.2
  • Performance information, links to performance testing scripts -

304NotModified avatar Mar 13 '18 10:03 304NotModified

LOL even disabling "Paket for Visual Studio" won't work. Something in my csproj I guess

304NotModified avatar Mar 13 '18 10:03 304NotModified