You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For each template that HSPI provides, there are two projects: For example, HSPIPluginA and HSPIPluginA.Dev. HSPIPluginA is the actual template, but it is not a runnable application. HSPIPluginA.Dev is a runnable, HS plugin. You can set your startup project be HSPIPluginA.Dev and F5 to start up an instance of that plugin.
The HomeSeerTemplates project is the Visual Studio extension project. It references the HSPIPluginA template. So if you set your startup project to HomeSeerTemplates and F5, it will start up a new instance of Visual Studio with your local HSPI code installed. From there, you'll be able to File>New and create a HSPI project that uses your modified templates.
That being said, there are some things you need to know. If you look closely at the differences between HSPIPluginA and HSPIPluginA.Dev, you'll see some interesting things. For example in HSPI.cs in HSPIPluginA.Dev, you'll see this:
When you compile HomeSeerTemplates, it runs a script that copies HSPI.cs from HSPIPluginA.Dev to HSPIPluginA and replaces return "HSPIPluginA.Dev"; with return "$projectname$"; where $projectname$ is the name of the project specified when you created the new project.
I.E., those //TODO:... comments in the .Dev projects are important.
Also, if you add new files to the .Dev projects, you'll need to adjust the .vstemplate and .csproj files in the corresponding template projects. https://docs.microsoft.com/en-us/visualstudio/ide/creating-project-and-item-templates?view=vs-2017 might be a useful starting point if you need to do anything special with the VS template projects.
Just to clarify some terminology there... HomeSeerTemplates is a VS extension project. HSPIPluginA is a VS template project (referenced by the VS extension project). HSPIPluginA.Dev is a helper project that makes testing the HS plugin code easier. Ultimately, the .Dev code is automatically copied to the corresponding VS template project to keep the two in sync.
Summary
I would like some documentation about how I can test the template if I do changes and compile it at home.
Context
I would like to try to implement some changes that I would like to have
Your Environment
Checklist
The text was updated successfully, but these errors were encountered: