-
fix(repo): run dotnet restore before publish (#35771)
发布于
2026-05-22 14:45:10 +00:00 Current Behavior
Publish workflow fails when building MsbuildAnalyzer because the
@nx/dotnetplugin's inferredbuildtarget runs
dotnet build --no-restore --no-dependencies --configuration Release,
but no restore has happened, so
project.assets.jsonis missing:error NETSDK1004: Assets file
'.../packages/dotnet/analyzer/obj/project.assets.json' not found.Expected Behavior
Run
dotnet restore nx.slnonce in the publish job (right afterpnpm install) so all .NET projects have assets files
before any inferred build runs with--no-restore.Related Issue(s)
N/A
下载附件