Skip to content

In DevContainer a NuGet error if Angular project exists #1993

@TomicaSoft

Description

@TomicaSoft

Type: Bug

Image

Image

To reproduce:

  1. Create a devcontainer.json with:
    {
    "name": "C# (.NET)",
    "image": "mcr.microsoft.com/devcontainers/dotnet:1-9.0"
    }

  2. Install C# Dev Kit Version 1.19.45

  3. Create a simple C# WebAPI-Projekt in folder to have this folder structure:
    ROOT
    |- .devcontainer
    |- .vscode
    |- WebApplication1
    |- WebApplication1.sln

  4. Install Node.js in DevConatiner with "nvm install --lts"

  5. Install Angular global with "npm i -g @angular/cli"

  6. Create Angular project with "ng new --minimal client" to have this folder structure:
    ROOT
    |- .devcontainer
    |- .vscode
    |- client
    |- WebApplication1
    |- WebApplication1.sln

If i close the DevContainer and reopen it next time i get delayed this error in VSCode:

MSBUILD : error MSB1009: Project file does not exist.
Switch: undefined
Determining projects to restore...
All projects are up-to-date for restore.

This error only occurs when I add Angular, why?

Extension version: 1.19.45
VS Code version: Code 1.99.3 (17baf841131aa23349f217ca7c570c76ee87b957, 2025-04-15T23:18:46.076Z)
OS version: Windows_NT x64 10.0.26100
Modes:
Remote OS version: Linux x64 5.15.167.4-microsoft-standard-WSL2

System Info
Item Value
CPUs AMD Ryzen 7 7735HS with Radeon Graphics (16 x 3194)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 29.78GB (16.69GB free)
Process Argv C:\Users\Arthur\Desktop\test --crash-reporter-id e35c248e-3da0-4519-a241-94fdf1f6cc19
Screen Reader no
VM 0%
Item Value
Remote Dev Container: C# (.NET) @ desktop-linux
OS Linux x64 5.15.167.4-microsoft-standard-WSL2
CPUs AMD Ryzen 7 7735HS with Radeon Graphics (16 x 0)
Memory (System) 14.53GB (12.77GB free)
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
pythonrstrctxt:31112756
nativeloc2:31192216
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
9064b325:31222308
copilot_t_ci:31222730
e5gg6876:31282496
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
31787653:31262186
3e8i5726:31271747
pythonpulldiagcf:31298646
996jf627:31283433
usemplatestapi:31297334
7bj51361:31289155
747dc170:31275177
g20af354:31278749
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
gendocf:31295004

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-projectProject load, Solution Explorerarea-restorebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions