Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NETSDK1060 Error reading assets file: Error loading lock file... Could not load file or assembly 'System.Text.Json, Version=8.0.0.4,... #43433

Closed
arellegue opened this issue Sep 13, 2024 · 1 comment
Labels
Area-Workloads untriaged Request triage from a team member

Comments

@arellegue
Copy link

Describe the bug

Just instaled .Net9 rc1. When opening any solution using .Net9 rc1, you'll get:

NETSDK1060 Error reading assets file: Error loading lock file... Could not load file or assembly 'System.Text.Json, Version=8.0.0.4,...

I even tried creating a new console app project target .Net9.0 Preview and simple "Hello, world" without any package references.
After creating the project, it already has the above mentioned error.

To Reproduce

Create a new console app that targets .Net9.0 Preview.

Exceptions (if any)

Further technical details

  • Include the output of dotnet --info
    .NET SDK:
    Version: 9.0.100-rc.1.24452.12
    Commit: 81a714c
    Workload version: 9.0.100-manifests.a7bf2b8f
    MSBuild version: 17.12.0-preview-24422-09+d17ec720d

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.100-rc.1.24452.12\

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
[maui-windows]
Installation Source: VS 17.11.35303.130
Manifest Version: 9.0.0-preview.6.24327.7/9.0.100-preview.6
Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100-preview.6\microsoft.net.sdk.maui\9.0.0-preview.6.24327.7\WorkloadManifest.json
Install Type: Msi

[android]
Installation Source: VS 17.11.35303.130
Manifest Version: 34.99.0-preview.6.340/9.0.100-preview.6
Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100-preview.6\microsoft.net.sdk.android\34.99.0-preview.6.340\WorkloadManifest.json
Install Type: Msi

[wasm-tools-net6]
Installation Source: VS 17.11.35303.130
Manifest Version: 9.0.0-rc.1.24431.7/9.0.100-rc.1
Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100-rc.1\microsoft.net.workload.mono.toolchain.net6\9.0.0-rc.1.24431.7\WorkloadManifest.json
Install Type: Msi

[wasm-tools-net7]
Installation Source: VS 17.11.35303.130
Manifest Version: 9.0.0-rc.1.24431.7/9.0.100-rc.1
Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100-rc.1\microsoft.net.workload.mono.toolchain.net7\9.0.0-rc.1.24431.7\WorkloadManifest.json
Install Type: Msi

[aspire]
Installation Source: VS 17.11.35303.130
Manifest Version: 8.1.0/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.1.0\WorkloadManifest.json
Install Type: FileBased

[maccatalyst]
Installation Source: VS 17.11.35303.130
Manifest Version: 17.2.9714-net9-p6/9.0.100-preview.6
Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100-preview.6\microsoft.net.sdk.maccatalyst\17.2.9714-net9-p6\WorkloadManifest.json
Install Type: Msi

[ios]
Installation Source: VS 17.11.35303.130
Manifest Version: 17.2.9714-net9-p6/9.0.100-preview.6
Manifest Path: C:\Program Files\dotnet\sdk-manifests\9.0.100-preview.6\microsoft.net.sdk.ios\17.2.9714-net9-p6\WorkloadManifest.json
Install Type: Msi

Host:
Version: 9.0.0-rc.1.24431.7
Architecture: x64
Commit: static

.NET SDKs installed:
8.0.400 [C:\Program Files\dotnet\sdk]
9.0.100-rc.1.24452.12 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.33 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.0-rc.1.24452.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.33 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.0-rc.1.24431.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.33 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.0-rc.1.24452.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

  • The IDE (VS / VS Code/ VS4Mac) you're running on, and its version
    Visual Studio 2022
    Microsoft Visual Studio Enterprise 2022 (64-bit) - Current
    Version 17.11.3

Microsoft Visual Studio Enterprise 2022
Version 17.11.3
VisualStudio.17.Release/17.11.3+35303.130
Microsoft .NET Framework
Version 4.8.09032

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Workloads untriaged Request triage from a team member labels Sep 13, 2024
@baronfel
Copy link
Member

Thanks for reporting. This is a dupe of #43339, there is a workaround listed in that thread and this should be resolved in VS 17.11.4, the next release.

@baronfel baronfel closed this as not planned Won't fix, can't repro, duplicate, stale Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Workloads untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

2 participants