Skip to content
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

Open
2 tasks done
BillSobel opened this issue Jun 13, 2017 · 7 comments
Open
2 tasks done

Not compatible with Visual Studio MAC #76

BillSobel opened this issue Jun 13, 2017 · 7 comments

Comments

@BillSobel
Copy link

BillSobel commented Jun 13, 2017

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)

  1. Install VS Mac
  2. Create a new project
  3. NuGet HSPI
  4. Unclear what to do now...

Screenshots (if appropriate)

Context

Your Environment

  • HomeSeer version:
  • HomeSeer operating system:
  • HSPI version:
  • Template version:
  • Developer environment:

Checklist

  • I have read the CODE OF CONDUCT document.
  • I have searched
@alexdresko
Copy link
Owner

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:

  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
  5. Change your program.cs to look something like 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.

@BillSobel
Copy link
Author

BillSobel commented Jun 13, 2017 via email

@BillSobel
Copy link
Author

BillSobel commented Jun 15, 2017 via email

@alexdresko
Copy link
Owner

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

@BillSobel
Copy link
Author

BillSobel commented Jun 15, 2017 via email

@sthorshaug
Copy link

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.

@alexdresko
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants