templates do not automatically have file extension

Using ReSharperSetup.Full.4.0.745.vs90, I have noticed that the user file templates don't automatically get the file extension added to the name typed into the input box.

An example template is below all of which were created using the live templates tool in a previous build of Resharper 4, or imported from Resharper 3.1 where the templates get the correct extension.

<Template uid="a87a3abf-4aaf-4a18-8024-da068e700aec" text="using Microsoft.VisualStudio.TestTools.UnitTesting;&#xD;&#xA;&#xD;&#xA;namespace $Namespace_Name$&#xD;&#xA;{&#xD;&#xA; &#xD;&#xA; public class $ClassName$&#xD;&#xA; {&#xD;&#xA; public TestContext TestContext { get; set; }&#xD;&#xA;&#xD;&#xA; &#xD;&#xA; public void $ClassName$_Hook()&#xD;&#xA; {&#xD;&#xA; Assert.IsTrue(false);&#xD;&#xA; }&#xD;&#xA; }&#xD;&#xA;}&#xD;&#xA;" shortcut="UnitTestFixture" description="Microsoft Unit Test Fixture" reformat="true" shortenQualifiedReferences="true">
]]>

0
3 comments

Duncan, have you found a resolution to this? I am having the same problem

0

Hello Garystrasdin, thank you for your question. Could you please describe the problem in more detail? Some screenshots can be useful. Thanks in advance!

0

Garystrasdin, I would like to let you know that the extension is specified in the "Default file name" in file template. If it is not specified there, then the file will be created without the extension. To change it, please open "ReSharper | Tools | Templates explorer | FIle Templates" and then open the required template with which there is a problem and add an extension to the default file name.

If this is not your case, then you may have encountered the following problem: https://youtrack.jetbrains.com/issue/RSRP-485249. It has already been fixed and the fix will be available in the next bugfix - 2021.3.2. Have a nice day!

0

Please sign in to leave a comment.