nunit-vs-templates icon indicating copy to clipboard operation
nunit-vs-templates copied to clipboard

Get error message cannot find SetupFixture.cs when select template in VS2017

Open developersthinksmartbox opened this issue 7 years ago • 6 comments

I manually fixed it by moving the SetupFixture.cs from

C:\Users\XXXX\AppData\Local\Microsoft\VisualStudio\15.0_0adf1023\Extensions\ai1xcql0.uj3\Output\ItemTemplates\CSharp\Test\NUnit\NUnit Setup Fixture.csharp

to

C:\Users\XXXX\AppData\Local\Microsoft\VisualStudio\15.0_0adf1023\Extensions\ai1xcql0.uj3\Output\ItemTemplates\CSharp\Test\NUnit\NUnit Setup Fixture.csharp\Definitions

Applied the same fix to the other template.

developersthinksmartbox avatar Aug 09 '17 10:08 developersthinksmartbox

Something's went wonky with the packaging for VS 2017. See https://github.com/nunit/nunit-vs-templates/issues/35 - if you add the SetUpFixture from the main 'Test' part of the menu tree, rather than expanding the tree - does it work?

ChrisMaddock avatar Aug 13 '17 14:08 ChrisMaddock

I was told by the creator of SideWaffle which we use for the templates that they don't work properly for VS 2017 and they would not be updated because of a new way to add templates. It is likely related.

rprouse avatar Aug 22 '17 02:08 rprouse

New method as in dotnet new? I thought there wasn't a VS gui for that yet?

ChrisMaddock avatar Aug 22 '17 07:08 ChrisMaddock

Or is the suggestion that we create the files by hand instead?

ChrisMaddock avatar Aug 22 '17 07:08 ChrisMaddock

@ChrisMaddock I am not sure. Notice that the SideWaffle site doesn't list 2017.

According to https://github.com/ligershark/side-waffle/issues/400#issuecomment-294403742, there will be two versions of SideWaffle going forward, the 2017+ version using he new TemplateEngine that Microsoft is developing.

Full information is at ligershark/side-waffle#401

rprouse avatar Aug 22 '17 15:08 rprouse

Thanks Rob. Those were the threads I was thinking of - looks like there's been some important updates in the last month though.

Guess there might be a bit more work to do here, to bring this up to VS 2017.

ChrisMaddock avatar Aug 22 '17 15:08 ChrisMaddock