Universal.EcmaScriptModule.Sdk 1.3.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Universal.EcmaScriptModule.Sdk --version 1.3.2
                    
NuGet\Install-Package Universal.EcmaScriptModule.Sdk -Version 1.3.2
                    
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="Universal.EcmaScriptModule.Sdk" Version="1.3.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Universal.EcmaScriptModule.Sdk" Version="1.3.2" />
                    
Directory.Packages.props
<PackageReference Include="Universal.EcmaScriptModule.Sdk" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Universal.EcmaScriptModule.Sdk --version 1.3.2
                    
#r "nuget: Universal.EcmaScriptModule.Sdk, 1.3.2"
                    
#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.
#:package Universal.EcmaScriptModule.Sdk@1.3.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Universal.EcmaScriptModule.Sdk&version=1.3.2
                    
Install as a Cake Addin
#tool nuget:?package=Universal.EcmaScriptModule.Sdk&version=1.3.2
                    
Install as a Cake Tool

Universal.EcmaScriptModule.Sdk

Native MSBuild SDK for .esmproj projects. Build and clean run as in-process MSBuild tasks and do not require the global esm tool.

<Project Sdk="Universal.EcmaScriptModule.Sdk/1.3.0">
  <PropertyGroup>
    <PackageId>Universal.Common</PackageId>
    <PackageReadmeFile>Package.md</PackageReadmeFile>
  </PropertyGroup>
  <ItemGroup>
    <Export Include="." Module="index.js" />
    <PackageFile Include="Package.md" PackagePath="Package.md" />
  </ItemGroup>
</Project>

The SDK provides native Restore, Build, Rebuild, Clean, Pack, GenerateImportMap, and browser Test targets. The SDK never falls back to spawning dotnet or the esm command.

Import-map generation is explicit by default:

dotnet msbuild Application.esmproj /t:GenerateImportMap /p:ImportMapOutputPath=wwwroot/importmap.json

Applications that own a suitable output location can opt into generation after every build:

<GenerateImportMapOnBuild>true</GenerateImportMapOnBuild>
<ImportMapOutputPath>wwwroot\importmap.json</ImportMapOutputPath>

The SDK also exports CPS property/reference schemas, Dependencies data, diagnostics, and fast up-to-date inputs for the companion Visual Studio extension. Test Explorer discovery and browser execution are supplied by the companion test adapter and remain separate from normal build tasks.

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
1.4.0 0 11/13/2026
1.3.2 61 11/13/2026
1.3.1 139 9/1/2026
1.3.0 114 9/1/2026
1.2.0 113 9/1/2026
1.1.0 109 9/1/2026
1.0.0 123 8/31/2026

Updates the browser Test target to accept empty test modules and identify module load failures.