dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.37k stars 9.99k forks source link

ProjectTemplates instructions error #55975

Open sebastienros opened 4 months ago

sebastienros commented 4 months ago

I am following the Building locally instructions for Project Templates, the first suggested command line doesn't work for me:

eng\build.cmd -all -pack -configuration Release

Restore complete (1.5s)
  Npm.Workspace failed with 2 error(s) (105.0s)
    EXEC : error : D:\aspnetcore\artifacts\obj\Npm.Workspace\Release\packagesToPack.json: ENOENT: no such file or directory, open 'D:\aspnetcore\artifacts\obj\Npm.Workspace\Release\packagesToPack.json'
    D:\aspnetcore\eng\Npm.Workspace.nodeproj(68,5): error MSB3073: The command "node D:\aspnetcore\eng\scripts/npm/pack-workspace.mjs --create-packages D:\aspnetcore\package.json 9.0.0dev D:\aspnetcore\artifacts\packages\Release\Shipping\ D:\aspnetcore\artifacts\obj\Npm.Workspace\Release\" exited with code 1.

Build failed with 2 error(s) in 167.2s
Build failed with exit code 1. Check errors above.
build.cmd completed

I understand it's not specific to templates since it's building everything, but trying to figure out what other instructions we might need to add to get this working. I already did

npm ci
.\restore.cmd
. \activate.ps1
wtgodbe commented 4 months ago

@sebastienros is your doc PR going to cover this one as well?

sebastienros commented 4 months ago

No, but I will try to fix this doc page right away.