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

All reference are broken by opening this solution with VS2015 Update1 #16

Closed
gsantopaolo opened this issue Dec 16, 2015 · 6 comments
Closed
Assignees
Labels

Comments

@gsantopaolo
Copy link

As subject
All reference are broken by opening this solution with VS2015 Update1 and apparently no way of restoring missing packages:
NuGet Package restore failed for project WPFDesigner_XML: Unable to find version '14.0.22823-RC' of package 'Microsoft.VisualStudio.Shell.14.0'
untitled

@AlexEyler
Copy link
Contributor

I'm not able to reproduce this one. Can you check your NuGet Package Manager options in Tools > Options > NuGet Package Manager > Package Sources and make sure nuget.org (https://api.nuget.org/v3/index.json) is checked?

@gsantopaolo
Copy link
Author

to reproduce the issue

  1. download source code at https://github.com/Microsoft/VSSDK-Extensibility-Samples/archive/master.zip
  2. unzip it
  3. open VSSDK-Extensibility-Samples-master\WPFDesigner_XML\WPFDesigner_XML.sln with visual studio 2015 update 1
  4. rebuild the project

You will get the situation reported in the screenshot above.

P.s. just for your information, the error is talking about nugget packages but if you go a bit deeper you will understand that all the broken reference are local references.
I suppose because this project was ported from a previous version of vs to vs 2015 rc but never ported to rtm or rtm update 1.

@AlexEyler
Copy link
Contributor

I've followed those steps and I can't reproduce the situation. But it does look like there are some hardcoded HintPaths in there that should be relative:
C:\Users\v-rokuhl\Source\Repos\VSIDEProj.VSSDKSamples\Samples\Completed_Samples\WPFDesigner_XML\packages\Microsoft.VisualStudio.Validation.14.0.50417-pre\lib\net45\Microsoft.VisualStudio.Validation.dll should be ..\packages\Microsoft.VisualStudio.Validation.14.0.50417-pre\lib\net45\Microsoft.VisualStudio.Validation.dll, for example. Let me get a PR with a fix for this to see if that'll help.

@AlexEyler AlexEyler added the bug label Dec 16, 2015
@AlexEyler AlexEyler self-assigned this Dec 16, 2015
@AlexEyler
Copy link
Contributor

#17

@AlexEyler
Copy link
Contributor

I've merged the PR, can you pull and check again? Make sure that you have the nuget.org option checked in your Nuget Package Manager settings.

@gsantopaolo
Copy link
Author

Now it works like a charme. Perfect!
Thank you!

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

No branches or pull requests

2 participants