ctlajoie / DupSelection

A Visual Studio extension that adds a command for duplicating the current selection (or line).
https://marketplace.visualstudio.com/items?itemName=ctlajoie.DuplicateSelection
MIT License
47 stars 12 forks source link

can't install on 2017 preview (15.6.0 preview 4.0) #13

Closed bradtwurst closed 6 years ago

bradtwurst commented 6 years ago

getting a message stating "The extension cannot be installed to this product due to prerequisites that cannot be resolved"

Suggestions?

========================

image

ghost commented 6 years ago

Microsoft decided to increase the minor version in 15.6, what they didn't do before and causes this problem. I fixed this by removing the hard max version limit from Microsoft.VisualStudio.Component.CoreEditor reference in extension.vsixmanifest

<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[11.0,]" DisplayName="Visual Studio core editor" />

and be specifying only the min version in catalog.json and manifest.json

"Microsoft.VisualStudio.Component.CoreEditor":"11.0"

I don't know if all this is required, I just checked another extension which works under 15.6. After that it installs and works fine.

ctlajoie commented 6 years ago

@0x084E would you mind submitting a PR?

ghost commented 6 years ago

Done in #15 I didn't remove the version limit completely but changed it from 15.0 inclusive to 16.0 exclusive so 15.6 still matches the limit but 16.0 won't.

colinwphillips commented 6 years ago

This is still an issue in VS 2017 Professional

bickycheese commented 6 years ago

Having the same issue in 2017 Enterprise

ctlajoie commented 6 years ago

I'll get that merged and update the extension. Sorry for the delay folks.

ctlajoie commented 6 years ago

I published a new version of the extension with the changes @0x084E made to the vsixmanifest file. Please open another issue if you still have problems.