Reporter | Joe White (joewhite) |
---|---|
Created | Jan 13, 2012 8:45:26 PM |
Updated | Jan 13, 2012 8:45:26 PM |
Priority | Normal |
Type | Bug |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | No subsystem |
Affected versions | 6.1 |
Fixed in build | No Fixed in build |
In previous versions of ReSharper, we defined a file template, and saved it in our shared solution file (SolutionName.4.0.ReSharper, which ReSharper later copied to SolutionName.4.5.ReSharper, SolutionName.5.0.ReSharper, etc).
In previous versions of ReSharper, this file template worked fine – we could go to Solution Explorer, hit Alt+Ins, and see our template in the list. (The first time we used ReSharper on a new computer, we would have to tell it that yes, really, we did want our template in that quick-list; but after that, it worked.)
In ReSharper 6.1, ReSharper no longer shows our file template. If I go to Solution Explorer and do Alt+Ins, I only see the four default templates (Class, Interface, Struct, and Enum). If I right-click and go to Add > New from Template > More..., the new "Choose Template" dialog only shows one scope ("C# 4", selected), only one user category ("All 4", selected), and only 4 "Templates in C# scope", corresponding to those same 4 default templates. Our custom template is nowhere to be found.
Our template is still defined in the .ReSharper file, just like it has been since ReSharper 4. I checked to make sure it didn't somehow get removed when we converted to R# 6.1, but it's still there in the SolutionName.6.1.ReSharper file:
This is a regression. ReSharper should still support shared file templates.
In previous versions of ReSharper, this file template worked fine – we could go to Solution Explorer, hit Alt+Ins, and see our template in the list. (The first time we used ReSharper on a new computer, we would have to tell it that yes, really, we did want our template in that quick-list; but after that, it worked.)
In ReSharper 6.1, ReSharper no longer shows our file template. If I go to Solution Explorer and do Alt+Ins, I only see the four default templates (Class, Interface, Struct, and Enum). If I right-click and go to Add > New from Template > More..., the new "Choose Template" dialog only shows one scope ("C# 4", selected), only one user category ("All 4", selected), and only 4 "Templates in C# scope", corresponding to those same 4 default templates. Our custom template is nowhere to be found.
Our template is still defined in the .ReSharper file, just like it has been since ReSharper 4. I checked to make sure it didn't somehow get removed when we converted to R# 6.1, but it's still there in the SolutionName.6.1.ReSharper file:
<Configuration> <CodeStyleSettings> ... </CodeStyleSettings> <SharedSolutionTemplateManager> <LiveTemplates> ... </LiveTemplates> <FileTemplates> <Template uid="555495a7-e899-4178-bbc3-c765438e6840" shortcut="" description="Test fixture" text="using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
using Profitstar.UtUnitTests;

namespace $Namespace$
{
 [TestFixture, Category("Fast")]
 public class $Class$ : TPSTestCase
 {
 $END$
 }
}" reformat="True" shortenQualifiedReferences="True"> <Context> <ProjectLanguageContext language="CSharp" /> </Context> <Categories /> <Variables> <Variable name="Namespace" expression="fileDefaultNamespace()" initialRange="-1" /> <Variable name="Class" expression="getFileNameWithoutExtension()" initialRange="-1" /> </Variables> <CustomProperties> <Property key="FileName" value="Class" /> <Property key="Extension" value="cs" /> <Property key="ValidateFileName" value="True" /> </CustomProperties> </Template> </FileTemplates> </SharedSolutionTemplateManager> <Daemon.SolutionSettings> ... </Daemon.SolutionSettings> </Configuration>
This is a regression. ReSharper should still support shared file templates.