Universal.EcmaScriptModule.Sdk 1.4.0

dotnet add package Universal.EcmaScriptModule.Sdk --version 1.4.0
                    
NuGet\Install-Package Universal.EcmaScriptModule.Sdk -Version 1.4.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="Universal.EcmaScriptModule.Sdk" Version="1.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Universal.EcmaScriptModule.Sdk" Version="1.4.0" />
                    
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.4.0
                    
#r "nuget: Universal.EcmaScriptModule.Sdk, 1.4.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.
#:package Universal.EcmaScriptModule.Sdk@1.4.0
                    
#: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.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Universal.EcmaScriptModule.Sdk&version=1.4.0
                    
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.4.0">
  <PropertyGroup>
    <PackageId>Universal.Common</PackageId>
    <Version>1.0.0</Version>
    <Title>Universal Common</Title>
    <Authors>Andrew Ong</Authors>
    <Description>Shared browser modules.</Description>
    <PackageLicenseExpression>MIT</PackageLicenseExpression>
    <PackageReadmeFile>Package.md</PackageReadmeFile>
  </PropertyGroup>
  <ItemGroup>
    <Export Include="." Module="index.js" />
  </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.

Visual Studio properties use C#-style Application, Build, Package (General/License), and Debug pages. Package metadata supports title, authors, description, copyright, homepage, repository URL/type/branch/commit, tags, release notes, icon, README, and a license expression or license file. README, icon, and license source files are included automatically as non-runtime package files; explicit PackageFile mappings still work. Authors and tags are semicolon-separated.

GeneratePackageOnBuild enables automatic packing. PackageOutputPath is the archive output directory (default bin/Configuration); EsmPackagePath is the completed archive filename. PackageVersion, when specified, overrides Version. Build and pack use evaluated MSBuild properties, including imported package metadata and expressions such as $(MSBuildProjectName) and $(Configuration).

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

Adds C#-style native project properties, descriptive package metadata, file pickers, and evaluated MSBuild build/pack properties.