WebAssembly.Sdk.Manifest 0.3.0

dotnet add package WebAssembly.Sdk.Manifest --version 0.3.0
NuGet\Install-Package WebAssembly.Sdk.Manifest -Version 0.3.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WebAssembly.Sdk.Manifest" Version="0.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WebAssembly.Sdk.Manifest --version 0.3.0
#r "nuget: WebAssembly.Sdk.Manifest, 0.3.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WebAssembly.Sdk.Manifest as a Cake Addin
#addin nuget:?package=WebAssembly.Sdk.Manifest&version=0.3.0

// Install WebAssembly.Sdk.Manifest as a Cake Tool
#tool nuget:?package=WebAssembly.Sdk.Manifest&version=0.3.0

WebAssembly

dotnet License: MIT Discord

<b>WebAssembly</b> is separate TPM for developing WebAssembly applications within a single project, if there are other TargetFrameworks using the main net8.0 TPM.

Usage

Just install and add net8.0-webassembly to TargetFrameworks.

Install

You can install WebAssembly workload for .NET 6.0/7.0/8.0 by using the installer script.

  • On Linux / macOS:
curl -sSL https://raw.githubusercontent.com/HavenDV/WebAssembly/main/scripts/workload-install.sh | sudo bash

if you want to install a specific version of WebAssembly workload or install to a specific directory, use the following command:

curl -sSL https://raw.githubusercontent.com/HavenDV/WebAssembly/main/workload/scripts/workload-install.sh | bash /dev/stdin -v <version> -d <directory>
  • On Windows:
Invoke-WebRequest 'https://raw.githubusercontent.com/HavenDV/WebAssembly/main/workload/scripts/workload-install.ps1' -OutFile 'workload-install.ps1';
./workload-install.ps1 [-v <version>] [-d <directory>]

You can see the WebAssembly workload as follows if it is properly installed.

PS D:\workspace> dotnet workload list

This command lists only workloads that were installed via `dotnet workload install` in this version of the SDK and not those that were installed via Visual Studio.

Installed Workload Ids
----------------------
maui
webassembly

Use `dotnet workload search` to find additional workloads to install.

Updates are avaliable for the following workload(s): maui webassembly. Run `dotnet workload update` to get the latest  

Development

You can test this project using these commands(tested on macOS) in src/tasks/tasks folder:

dotnet build /t:TestWorkload
dotnet build /t:WorkloadUninstall

other possible targets(it already included in targets above):
DownloadDotnetInstall
DotnetInstall
WorkloadInstall
BuildPackages
CleanArtifactsAndTemporaryFiles

You can override these properties:
/p:UseCurrentDotnet=true - Will install workload to current dotnet instead downloaded.

Disclaimer

Although this is a working solution, I have simplified some things regarding workload and manifest, which could theoretically cause problems (for example, when upgrading to a new sdk version).
I'll be glad to hear about it in issues.

Docs

Official documentation regarding the design of Workloads and Sdks:

Support

Priority place for bugs: https://github.com/HavenDV/WebAssembly/issues
Priority place for ideas and general questions: https://github.com/HavenDV/WebAssembly/discussions
Discord: https://discord.gg/g8u2t9dKgE

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.0 39 5/2/2024
0.2.0 252 9/30/2023
0.1.0 214 9/28/2023