1

Closed

Restore yellow bar not show when packages missed on some project types

description

For some project types, the restore yellow bar not shown when packages missed. It seems it will restore when openning the projects.
Repro step:
1.Create a project.Enable package restore. Install a package.
  1. Open the created project.
    3.Delete the package from disk and close the project.
  2. Open VS. click the menu file->open project, open the created project.
  3. Open package manager console.
  4. Verify the restore yellow bar shows.
    Expected: it shows.
    Actual: it not shows.
Notes: Some project it can repro, some project it can't repro.
Below is the list of project type can manual repro.
VB/CS Silverlight5 Application.
VB/CS WPF Application.
Closed Feb 19, 2013 at 6:11 PM by danliu
Close this issue as condition A and B does not satisfy at the same time.

comments

JeffHandley wrote Jan 24, 2013 at 8:08 PM

Is this a regression from 2.2?

danliu wrote Jan 24, 2013 at 9:05 PM

investigated and found it's not a regression for 2.2.

a sample package for this bug is SilverlightToolkit-Core package, for silverlight project.

found that the yellow restore bar did not display and the deleted package folder SilverlightToolkit-Core.4.2010.4 automatically comes back to the package folder.

I saw the enable download missing package checkbox is checked. I think the cause could be silverlight project auto-build itself once opened.

JeffHandley wrote Feb 18, 2013 at 10:09 PM

If the project is auto-building itself, then this makes sense. This should only be closed as by design if we can confirm that the project is being built and the packages are actually being restored.

I would consider it to be a bug if A) the packages are still missing and B) the yellow bar doesn't show up.

danliu wrote Feb 18, 2013 at 10:25 PM

@oakes, please try with more than 1 packages and make sure all packages missing come back after project is reopened in VS.

also please check if WPF and SL projects are indeed building themselves after building.

oakes wrote Feb 19, 2013 at 7:10 AM

@JeffHandley, my answer is B. The packages will come back, just the yellow bar not restore.