It has been a year since I’ve done any programming (“retired”). As I recall when I used to create a new Class, it created it with the interface and implementation sections. Looks like it doesn’t do that anymore. I WANT to do that. I don’t like mixing up interface and implementation into a single definition of the class like C# does. I REALLY WANT it to be split. Having it split is one of the things I liked about Oxygene vs. C#. Is there a way to make it work like it used to or will I always have to create the sections manually every time from now on?
I do no understand what you mean - can you give a code example?
Fair enough. Classic Class.zip (5.8 KB)
Place that in
C:\Users\USERNAME\Documents\Visual Studio 2015\Templates\ItemTemplates
(or 2017).
It will then show in the root of the item tree.
You can also just use the refactoring to convert it back and forth.
Cool, I did not realize that! We still have mixed sources, as I did not yet find time to convert all to unified syntax! Thanx.
Carlo and Marc,
Ok, thanks. I’ll look into both of those.
Carlo,
I downloaded the zip, “unblocked” the zip, and extracted all. That made a folder. I wasn’t sure if I should put the folder in the ItemTemplates folder or the files. Or should it be under “ItemTemplates|RemObjects Oxygene” I tried all. Nothing happened. I don’t see a new template anywhere under the “add new class” or “add new item”. In fact, now I can’t even add anything. I am getting a dialog that has “installed” and “online” on the left side and nothing to choose from on the right side.
… time passes …
I removed all the “classic” stuff and now at least the “add new” stuff works again. But I don’t know how to get your template to work AND have the other templates work.
Hrmm I jsut had this zip file (not extracted!) in
C:\Users\carlokok\Documents\Visual Studio 2015\Templates\ItemTemplates
and it worked for me.
Ah, didn’t realize the templates could be in a zip. Has been YEARS since I even considered making or using templates. I’ll give the zip a try.
… time passes …
Nope. If I add the zip to “C:\Users\mtied\Documents\Visual Studio 2017\Templates\ItemTemplates\RemObjects Oxygene”, when I try “Add item” or “Add new class”, I get “no items found” in the selection dialog.
I’m going to guess it didn’t like a 2015 template in 2017. OR, 2017 just doesn’t work with templates right and has a bug when there is a user supplied zip or template.
… time passes …
Binging reveals that there was at least one change. Apparently a manifest file may now be required. I’m guessing that is the problem.
Carlo,
Got any more suggestions for getting your template to work for me? TIA.
This is my template:
ESClass.zip (2.4 KB)
VS2015:
Place that in
C:\Users\YourUser\Documents\Visual Studio 2015\Templates\ItemTemplates\Elements\RemObjects Oxygene
Restart VS.
VS2017:
Place that in
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\RemObjects Software\RemObjects Elements Templates\1.0\ItemTemplates\Oxygene Items\Code
that is where Oxygene’s are installed. It is not a good site because when reinstalling disappear, but you can copy it again. You have to delete the directory:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\RemObjects Software\RemObjects Elements Templates\1.0~IC
what is the cache, and ready.
Restart VS.