Skip to content

feat: Updated template to v3 #30

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

Merged
merged 9 commits into from
Jun 10, 2025
Merged

feat: Updated template to v3 #30

merged 9 commits into from
Jun 10, 2025

Conversation

JR-Morgan
Copy link
Member

@JR-Morgan JR-Morgan commented Jun 4, 2025

Update template to the new v3 automate SDK that's just been added here: specklesystems/speckle-sharp-sdk#313

Some changes to the template to note:

  • bump to NET8 since NET7 is EOL
  • The v3 Speckle.Automate.SDK now comes with Objects, so no need to reference that directly
  • Our v3 SDKs necessitate a DI container, so there's a couple extra lines of boilerplate in the program.cs
  • I've setup the AutomateFunction to also register in the DI container, would allow you to inject other Speckle services (e..g IOperations, or perhaps in future ILogger) in the constructor super easily.
  • Added a github actions workflow to just ensure that things build on PRs

@JR-Morgan
Copy link
Member Author

Ready and tested locally and as a fully published function.

@JR-Morgan JR-Morgan requested review from gjedlicska and cdriesler June 4, 2025 23:40
@gjedlicska gjedlicska merged commit f7d1420 into main Jun 10, 2025
2 checks passed
@gjedlicska gjedlicska deleted the jrm/v3 branch June 10, 2025 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants