发布

  • fix(repo): run dotnet restore before publish (#35771)

    frostbyte_neo 发布于 2026-05-22 14:45:10 +00:00

    Current Behavior

    Publish workflow fails when building MsbuildAnalyzer because the
    @nx/dotnet plugin's inferred build target runs
    dotnet build --no-restore --no-dependencies --configuration Release,
    but no restore has happened, so
    project.assets.json is missing:

    error NETSDK1004: Assets file
    '.../packages/dotnet/analyzer/obj/project.assets.json' not found.

    Expected Behavior

    Run dotnet restore nx.sln once in the publish job (right after pnpm install) so all .NET projects have assets files
    before any inferred build runs with --no-restore.

    Related Issue(s)

    N/A

    下载附件