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

ERROR: FileLoadException: Could not load file or assembly 'NuGet.VisualStudio.Contracts' #13359

Closed
Kamek437 opened this issue Jun 18, 2024 · 3 comments
Labels

Comments

@Kamek437
Copy link

Kamek437 commented Jun 18, 2024

Problem Description

Trying to build an empty project, In either debug or release mode.

ERROR: FileLoadException: Could not load file or assembly 'NuGet.VisualStudio.Contracts, Version=17.10.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I have yet to build anything at all with react native windows.

Steps To Reproduce

npx --yes react-native@latest init testProject --version "latest"
cd testProject
npx --yes react-native-windows-init --overwrite
npx react-native run-windows

Expected Results

App runs.

CLI version

13.6.6

Environment

System:
  OS: Windows 11 10.0.22631
  CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
  Memory: 6.65 GB / 15.90 GB
Binaries:
  Node:
    version: 18.18.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 3.6.4
    path: ~\OneDrive\Documents\node_modules\.bin\yarn.CMD
  npm:
    version: 9.6.3
    path: ~\OneDrive\Documents\node_modules\.bin\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK:
    AllowDevelopmentWithoutDevLicense: Enabled
    AllowAllTrustedApps: Enabled
    Versions:
      - 10.0.19041.0
      - 10.0.20348.0
      - 10.0.22621.0
      - 10.0.26100.0
IDEs:
  Android Studio: Not Found
  Visual Studio:
    - 17.10.35004.147 (Visual Studio Community 2022)
Languages:
  Java:
    version: 21.0.3
    path: C:/Users/kamek/scoop/apps/microsoft-jdk/current/bin/javac.exe
  Ruby:
    version: 3.3.0
    path: C:\Ruby33-x64\bin\ruby.EXE
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.2
    wanted: 0.74.2
  react-native-windows:
    installed: 0.74.9
    wanted: 0.74.9
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Community Modules

None, it is a blank project.

Target Platform Version

10.0.22621

Target Device(s)

Desktop

Visual Studio Version

Visual Studio 2022

Build Configuration

Debug

Snack, code example, screenshot, or link to a repository

No response

@Kamek437 Kamek437 added the bug label Jun 18, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) label Jun 18, 2024
@jonthysell
Copy link
Contributor

This is a duplicate of #13339. We're currently working on a solution with the Visual Studio team, the best current workaround is in the linked bug.

@Kamek437
Copy link
Author

Thanks. Keep up the good work guys you rock.

@chrisglein
Copy link
Member

Duplicate of #13339

@chrisglein chrisglein marked this as a duplicate of #13339 Jun 24, 2024
@chrisglein chrisglein closed this as not planned Won't fix, can't repro, duplicate, stale Jun 24, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants