Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
304NotModified opened this issue Mar 13, 2018 · 1 comment
Open

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

304NotModified opened this issue Mar 13, 2018 · 1 comment

Comments

@304NotModified
Copy link
Contributor

304NotModified commented Mar 13, 2018

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant