Skip to content

[browser] Suport for OutputType Library #89577

Closed

Description

@pavelsavara

currently WASM projects need to be <OutputType>Exe</OutputType>

use case: nuget library with component for Blazor, including [JSImport]

Activity

  1. added this to the 9.0.0 milestone on Jul 27, 2023
  2. maraf commented on Jun 4, 2024

    @maraf
    Member

    I'm slightly confused by the description. Is the goal here to produce a "wasm application without main" (the whole app bundle)? Or just be able to use [JSImport] in .NET library? For the latter, setting RuntimeIdentifier=browser-wasm should be sufficient. If the Microsoft.NET.Sdk.StaticWebAssets SDK is used, even the javascript files will be bundled correctly

  3. pavelsavara commented on Jun 4, 2024

    @pavelsavara
    MemberAuthor

    For the "wasm application without main" what would be the use-case ?
    Could we have blazor component with wasm functionality as nuget and then add that to non-wasm blazor project and expect it to work ?

    Could we have dotnet wasm wrapped as react component and somehow flow it thru asp.net core in a way which would initialize the dotnet.js ?

    I feel that the answer is probably not with nuget.

    Could the same thing be achieved with npm package and node/webpack ecosystem ? Possibly yes.

  4. maraf commented on Jun 4, 2024

    @maraf
    Member

    If it's not the "wasm application without main" case, we can close the issue

  5. locked and limited conversation to collaborators on Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions