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

Improve zones.json for deployment #64

Closed
wants to merge 1 commit into from

Conversation

jongalloway
Copy link
Contributor

@jongalloway jongalloway commented Feb 21, 2025

Fixes #43

Embed zones.json as a resource and modify code to read it.

  • Api.csproj

    • Add zones.json as an embedded resource.
  • NwsManager.cs

    • Modify GetZonesAsync method to read zones.json as an embedded resource instead of from the wwwroot folder.
    • Remove the webHostEnvironment parameter from the NwsManager constructor.

For more details, open the Copilot Workspace session.

Fixes #43

Embed `zones.json` as a resource and modify code to read it.

* **Api.csproj**
  - Add `zones.json` as an embedded resource.

* **NwsManager.cs**
  - Modify `GetZonesAsync` method to read `zones.json` as an embedded resource instead of from the `wwwroot` folder.
  - Remove the `webHostEnvironment` parameter from the `NwsManager` constructor.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/dotnet-presentations/dotnet-aspire-workshop/issues/43?shareId=XXXX-XXXX-XXXX-XXXX).
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.

Improve zones.json for deployment
2 participants