nunit / nunit-vs-templates

Visual Studio project & item templates and snippets
https://visualstudiogallery.msdn.microsoft.com/6cd55f79-4936-49e7-b81d-c40fcd81abc7
MIT License
33 stars 15 forks source link

Code snippets not available #23

Closed ChrisMaddock closed 7 years ago

ChrisMaddock commented 8 years ago

I don't seem to be able to get the NUnit code snippets to show up in VS 2015. Possibly related, I see two "Test" entries, both of which produce MSTests snippets. I wonder if there's a naming collision.

image

Originally from: https://visualstudiogallery.msdn.microsoft.com/6cd55f79-4936-49e7-b81d-c40fcd81abc7

ChrisMaddock commented 8 years ago

Looks like it is a naming collision.

We define our snippets to live in a dir named "Test". If I manually rename that to "NUnit", the problems resolved.

I guess we should work around that, but it seems like a VS bug. @rprouse - do we have any particular channel to raise that?

ChrisMaddock commented 8 years ago

Interestingly, VS's Code Snippets Manager detects that 'something' is wrong with the Test dir, but doesn't provide any error message, and then continues to display it incorrectly in the snippets context menu.

image

ChrisMaddock commented 8 years ago

@rprouse - I've rejigged the 1.3 milestone, is that ok? If I tidy up here, could we do another release after the nunit.xamarin release?

I had a wee dig to see if there's anyway to remove the dependencies on specific package versions for the nunit projects - unfortunately it doesn't seem so without some dirty hacks. I think it would be good if we could try and release this in sync with the framework (and nunit.xamarin, when required) - I may have a look at some automation to make that simpler.

rprouse commented 8 years ago

I think switching the folder that the snippets are stored in to NUnit is a good idea. It will ensure that there are no conflicts. The weird thing is, they work for me in VS2015, I use them all the time.

Feel free to rejig milestones and start planning a release. I keep meaning to get back to this project, but keep getting distracted by the framework and console issues.

ChrisMaddock commented 8 years ago

That's odd! I've never used MSTest, so wouldn't have installed anything specific...maybe it's an optional feature?

This is the "colliding" snippet set, do you have this available? If so, I wonder if it's based on installation order or something...

image