Yarn.MSBuild
1.3.2
See the version list below for details.
dotnet add package Yarn.MSBuild --version 1.3.2
NuGet\Install-Package Yarn.MSBuild -Version 1.3.2
<PackageReference Include="Yarn.MSBuild" Version="1.3.2" />
paket add Yarn.MSBuild --version 1.3.2
#r "nuget: Yarn.MSBuild, 1.3.2"
// Install Yarn.MSBuild as a Cake Addin #addin nuget:?package=Yarn.MSBuild&version=1.3.2 // Install Yarn.MSBuild as a Cake Tool #tool nuget:?package=Yarn.MSBuild&version=1.3.2
For full documentation, see https://github.com/natemcmaster/Yarn.MSBuild/blob/master/README.md
Usage
This package installs yarn so you can use it from MSBuild without needing to install yarn globally.
YarnBuildCommand
If you set the YarnBuildCommand
property, the command will run automatically in the "YarnBuild" target
when you compile the application.
Example:
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<YarnBuildCommand>run webpack</YarnBuildCommand>
<YarnBuildCommand Condition="'$(Configuration)' == 'Release'">run webpack --env.prod</YarnBuildCommand>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
<PackageReference Include="Yarn.MSBuild" Version="1.2.1" />
</ItemGroup>
</Project>
{
"scripts": {
"webpack": "webpack"
},
"dependencies": {
"react": "^16.0.0"
},
"devDependencies": {
"webpack": "^3.6.0"
}
}
You can also chain of this target to run additional commands.
<Target Name="YarnInstall" BeforeTargets="YarnBuild">
<Yarn Command="install" Condition=" ! Exists('node_modules/')" />
</Target>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.0 is compatible. netstandard1.1 was computed. netstandard1.2 was computed. netstandard1.3 was computed. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 was computed. netstandard2.1 was computed. |
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Windows Phone | wp8 was computed. wp81 was computed. wpa81 was computed. |
Windows Store | netcore was computed. netcore45 was computed. netcore451 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
This package has no dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Yarn.MSBuild:
Package | Downloads |
---|---|
MintPlayer.AspNetCore.NodeServices
This package contains the abandoned node services. |
|
Rixian.MSBuild.TailwindCSS
Adds build targets required to work with TailwindCSS in your project. |
|
Blazor.BrowserExtension.Authentication
Adds MSAL authentication features to browser extensions written with Blazor.BrowserExtension. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Yarn.MSBuild:
Repository | Stars |
---|---|
JeringTech/Javascript.NodeJS
Invoke Javascript in NodeJS, from C#
|
Version | Downloads | Last updated |
---|---|---|
1.22.19 | 170,845 | 10/8/2022 |
1.22.17 | 93,640 | 10/23/2021 |
1.22.15 | 54,200 | 10/7/2021 |
1.22.10 | 105,726 | 10/4/2020 |
1.22.5 | 23,111 | 8/29/2020 |
1.22.4 | 110,693 | 3/10/2020 |
1.22.1 | 638 | 3/8/2020 |
1.22.0 | 126,495 | 2/6/2020 |
1.21.1 | 9,157 | 12/15/2019 |
1.16.0 | 57,430 | 6/21/2019 |
1.15.2 | 523,725 | 5/7/2019 |
1.13.0 | 61,703 | 2/22/2019 |
1.12.3 | 79,768 | 11/26/2018 |
1.7.0 | 15,438 | 6/26/2018 |
1.6.0 | 1,135 | 6/26/2018 |
1.5.2 | 5,859 | 5/1/2018 |
1.5.1 | 2,299 | 4/16/2018 |
1.3.4 | 2,718 | 3/4/2018 |
1.3.3 | 4,046 | 11/30/2017 |
1.3.2 | 1,074 | 11/29/2017 |
1.2.1 | 9,382 | 11/3/2017 |
1.2.0 | 1,287 | 10/28/2017 |
1.1.0 | 1,258 | 10/15/2017 |
1.0.2 | 2,143 | 10/15/2017 |
1.0.1 | 1,527 | 10/1/2017 |
1.0.0 | 1,545 | 9/10/2017 |
0.27.5 | 1,405 | 7/18/2017 |
0.24.6 | 2,298 | 5/31/2017 |
0.23.2 | 1,145 | 5/3/2017 |
0.21.3-beta | 1,402 | 3/11/2017 |
0.21.3-alpha | 1,286 | 3/4/2017 |
Changes in 1.3.2:
- Upgrade the bundled version of yarn to 1.3.2
- For more details on changes to yarn itself, see https://github.com/yarnpkg/yarn/releases/tag/v1.3.2