-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not compatible with Visual Studio MAC #76
Comments
Thanks for reporting, @BillSobel. I haven't tested this on VS Mac, so I need more information in order to figure out the next course of action. My immediate assumption is that it's just not going to work, but I don't know enough about VS Mac to know for sure. First, it seems like you simply added the nuget package to your project. That option doesn't install any of the templates. To get the templates, you have to install the extension from the gallery. See http://hspi.readthedocs.io/en/latest/getting-started.html. If you can't install the templates, you might try reverse engineering the templates to work with VS Mac. That'd look something like:
At this point, your plugin should/might be able to run and connect to your HS instance. I'd be interested to know for sure. If you get that far and things are working, I'll help you with the remaining bit of work you'll need to do to create a perfect HS plugin. |
I have not found a place on the Mac to install the templates prior to
adding the package to the project. I will try your instructions this week
(traveling today) and see if that works, will report the results.
Thank you!
Bill
…On Tue, Jun 13, 2017 at 6:02 AM, Alex Dresko ***@***.***> wrote:
Thanks for reporting, @BillSobel <https://github.com/billsobel>. I
haven't tested this on VS Mac, so I need more information in order to
figure out the next course of action. My immediate assumption is that it's
just not going to work, but I don't know enough about VS Mac to know for
sure.
First, it seems like you simply added the nuget package to your project.
That option doesn't install any of the templates. To get the templates, you
have to install the extension from the gallery. See
http://hspi.readthedocs.io/en/latest/getting-started.html.
If you can't install the templates, you might try reverse engineering the
templates to work with VS Mac. That'd look something like:
1. Create a new C# console project.
2. Make sure the assembly name for your project is HSPI_<your project
name>
3. Add the HSPI nuget package.
4. Add an HSPI.cs class that looks like https://github.com/alexdresko/
HSPI/blob/master/Templates/HSPIPluginB.Dev/HSPI.cs
<https://github.com/alexdresko/HSPI/blob/master/Templates/HSPIPluginB.Dev/HSPI.cs>
5. Change your program.cs to look something like
https://github.com/alexdresko/HSPI/blob/master/Templates/
HSPIPluginB.Dev/Program.cs
<https://github.com/alexdresko/HSPI/blob/master/Templates/HSPIPluginB.Dev/Program.cs>
At this point, your plugin should/might be able to run and connect to your
HS instance.
I'd be interested to know for sure.
If you get that far and things are working, I'll help you with the
remaining bit of work you'll need to do to create a perfect HS plugin.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#76 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADLj6GN-CMiO9JFn0MLB2HiQluP81d_aks5sDohWgaJpZM4N358g>
.
|
An update. While I do not have a HomeSeer local here to properly test, I
did create a example project per your suggestions and it does build and
attempt to run (and connect to HS). So the main issue seems to be the lack
of ability to use the template system to generate the classes, but the base
code is being brought in and appears to work!
Is there a simple way I missed to override the server to be a remote
address?
Best
Bill
…On Tue, Jun 13, 2017 at 7:24 AM, Bill Sobel ***@***.***> wrote:
I have not found a place on the Mac to install the templates prior to
adding the package to the project. I will try your instructions this week
(traveling today) and see if that works, will report the results.
Thank you!
Bill
On Tue, Jun 13, 2017 at 6:02 AM, Alex Dresko ***@***.***>
wrote:
> Thanks for reporting, @BillSobel <https://github.com/billsobel>. I
> haven't tested this on VS Mac, so I need more information in order to
> figure out the next course of action. My immediate assumption is that it's
> just not going to work, but I don't know enough about VS Mac to know for
> sure.
>
> First, it seems like you simply added the nuget package to your project.
> That option doesn't install any of the templates. To get the templates, you
> have to install the extension from the gallery. See
> http://hspi.readthedocs.io/en/latest/getting-started.html.
>
> If you can't install the templates, you might try reverse engineering the
> templates to work with VS Mac. That'd look something like:
>
> 1. Create a new C# console project.
> 2. Make sure the assembly name for your project is HSPI_<your project
> name>
> 3. Add the HSPI nuget package.
> 4. Add an HSPI.cs class that looks like https://github.com/alexdresko/
> HSPI/blob/master/Templates/HSPIPluginB.Dev/HSPI.cs
> <https://github.com/alexdresko/HSPI/blob/master/Templates/HSPIPluginB.Dev/HSPI.cs>
> 5. Change your program.cs to look something like
> https://github.com/alexdresko/HSPI/blob/master/Templates/HSP
> IPluginB.Dev/Program.cs
> <https://github.com/alexdresko/HSPI/blob/master/Templates/HSPIPluginB.Dev/Program.cs>
>
> At this point, your plugin should/might be able to run and connect to
> your HS instance.
>
> I'd be interested to know for sure.
>
> If you get that far and things are working, I'll help you with the
> remaining bit of work you'll need to do to create a perfect HS plugin.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#76 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ADLj6GN-CMiO9JFn0MLB2HiQluP81d_aks5sDohWgaJpZM4N358g>
> .
>
|
Thanks for the update, Bill. I'll see if we can add the template support to VS Mac. In the meantime, this is what you are looking for. http://hspi.readthedocs.io/en/latest/using-faq.html#using-a-different-ip-address-and-or-port |
Thanks! Off to explore. really appreciate your help and efforts on this.
Cheers
Bill
…On Thu, Jun 15, 2017 at 3:13 PM, Alex Dresko ***@***.***> wrote:
Thanks for the update, Bill. I'll see if we can add the template support
to VS Mac.
In the meantime, this is what you are looking for.
http://hspi.readthedocs.io/en/latest/using-faq.html#using-a-
different-ip-address-and-or-port
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#76 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADLj6CqLRX0RiMSQAtIwq7qxJxzd_jFWks5sEax8gaJpZM4N358g>
.
|
According to this from stackoverflow it's not possible to use the traditional marketplace for extensions. I think the only approach at the moment is to create an extension as stated here. I'll think about trying to do it, but I'll have to finish some other projects first. |
@sthorshaug I, as well as others I'm sure, would super appreciate it if you could figure out how to enhance this project so the templates work on VS Mac. I really don't know what would be required, and I don't have a Mac. |
Summary
Expected Behavior
Loads from NuGet but no (apparent) way to use the template in a project on VSMac.
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
Screenshots (if appropriate)
Context
Your Environment
Checklist
The text was updated successfully, but these errors were encountered: