You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.
In the 1.2.0 version of this package, I will be removing the default MSBuild target that calls yarn install when your project compiles. After discussion with others (#1) and a lot of dogfooding with this package on my own, I realized that there is no good default command.
Note: this will not affect those who have specified YarnBuildCommand in their projects.
Preserving existing behavior
To keep the existing behavior from 1.1 and earlier, add this to your project
yarn install -
NuGet does not support on-install hooks, and does not have any plans to add it. Therefore, it is impossible to make this command run by default when dotnet restore works, or in Visual Studio. Although NuGet made improvements in 15.4 to add your own targets to MSBuild restore, it is not possible to do this reliably from within a package.
On build?
There is not default convention for how to run the "build" command on a javascript project. For some this is yarn run webpack, for others it's yarn run gulp. It's really up to your project, therefore, YarnBuildCommand is required.
The text was updated successfully, but these errors were encountered:
In the 1.2.0 version of this package, I will be removing the default MSBuild target that calls
yarn install
when your project compiles. After discussion with others (#1) and a lot of dogfooding with this package on my own, I realized that there is no good default command.Note: this will not affect those who have specified
YarnBuildCommand
in their projects.Preserving existing behavior
To keep the existing behavior from 1.1 and earlier, add this to your project
Justification
yarn install -
NuGet does not support on-install hooks, and does not have any plans to add it. Therefore, it is impossible to make this command run by default when
dotnet restore
works, or in Visual Studio. Although NuGet made improvements in 15.4 to add your own targets to MSBuild restore, it is not possible to do this reliably from within a package.On build?
There is not default convention for how to run the "build" command on a javascript project. For some this is
yarn run webpack
, for others it'syarn run gulp
. It's really up to your project, therefore, YarnBuildCommand is required.The text was updated successfully, but these errors were encountered: