Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 18, 2025

Description

Adds a --UseMonoRuntime boolean parameter to the wasmbrowser template that controls whether <UseMonoRuntime>true</UseMonoRuntime> is included in the generated project file. Default is true.

Template changes:

  • Added UseMonoRuntime symbol in template.json (boolean, default: true)
  • Added conditional property in browser.0.csproj using template engine directives

Usage:

# Default behavior - includes <UseMonoRuntime>true</UseMonoRuntime>
dotnet new wasmbrowser -n MyApp

# Explicitly disable
dotnet new wasmbrowser -n MyApp --UseMonoRuntime false

Testing:

  • Added UseMonoRuntimeParameter test covering true/false/default cases
  • Validates presence/absence of property in generated csproj

Documentation:

  • Created README.md with parameter documentation and usage examples

Customer Impact

Low - additive change only. Existing users unaffected (default maintains current behavior).

Regression

No - this is a new feature.

Testing

Unit tests added covering all parameter combinations (true/false/default).

Risk

Low - template-only change with explicit tests. No impact to runtime or build system.

Original prompt

Update the wasmbrowser template to add a --usemonoruntime parameter (default: true). When this parameter is set to true, add false to the generated project file. Ensure the template help text and documentation are updated, and add or update template tests to cover both parameter settings.

This pull request was created from Copilot chat.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Update wasmbrowser template to add usemonoruntime parameter Add --UseMonoRuntime parameter to wasmbrowser template (default: true) Dec 18, 2025
Copilot AI requested a review from maraf December 18, 2025 14:47
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.

2 participants