i have defined some templates for VB classes in R#'s template editor. Today i tried to add a class via "New from template". The class was added on the file system but not to the project (i can't see it in the solution explorer). Maybe this problem only occurs in conjunction with Visual Source Safe as source code repository. The project file was readonly on the file system because it wasn't checked out in Visual Source Safe. While adding the class, the project file was checked out automatically by the Visual Source Safe addin, but it seems that R# didn't recognized this.

Votes

Share

After adding the generated class to the project, i noticed that R# didn't replaced the variables.

I deleted the generated file and added it again. As the project file stayed checked out, everything works as expected. So as a workaround i can check out the project file first and then use "New from template".