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 NU1101: Unable to find package MSBuildForUnity #173

Open
gyoce opened this issue Feb 26, 2024 · 0 comments
Open

error NU1101: Unable to find package MSBuildForUnity #173

gyoce opened this issue Feb 26, 2024 · 0 comments

Comments

@gyoce
Copy link

gyoce commented Feb 26, 2024

Hello,
I'm using Unity 2022.3.19f1
I have a Unity project, i modified the Packages/manifest.json to add to the start of the file the following` :

"scopedRegistries": [
    {
        "name": "Microsoft",
        "url": "https://pkgs.dev.azure.com/UnityDeveloperTools/MSBuildForUnity/_packaging/UnityDeveloperTools/npm/registry/",
        "scopes": [
            "com.microsoft"
        ]
    }
  ],

And i added to the bottom (in the dependencies section) the following : "com.microsoft.msbuildforunity": "0.9.2-20230322.1"

(PS: i also tried with the version "0.9.2-20221114.1" and "0.9.2-20211109.1")

After that when i try to go the Unity Editor after the loading screen i get an error message :

C:\Users\...\UnityGame\Assets\UnityGame.Dependencies.msb4u.csproj : error NU1101: Unable to find package MSBuildForUnity. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages, nuget.org
UnityEngine.Debug:LogError (object)
Microsoft.Build.Unity.MSBuildProjectBuilder:LogProgressMessage (string,Microsoft.Build.Unity.MSBuildProjectBuilder/ProgressMessageType) (at ./Library/PackageCache/com.microsoft.msbuildforunity@0.9.2-20230322.1/Editor/ProjectBuilder/MSBuildProjectBuilder.cs:385)
Microsoft.Build.Unity.MSBuildProjectBuilder/<>c__DisplayClass13_0:<BuildProjects>b__1 (System.ValueTuple`2<int, System.ValueTuple`2<string, Microsoft.Build.Unity.MSBuildProjectBuilder/ProgressMessageType>>) (at ./Library/PackageCache/com.microsoft.msbuildforunity@0.9.2-20230322.1/Editor/ProjectBuilder/MSBuildProjectBuilder.cs:213)
Microsoft.Build.Unity.MSBuildProjectBuilder/DelegateProgress`1<System.ValueTuple`2<int, System.ValueTuple`2<string, Microsoft.Build.Unity.MSBuildProjectBuilder/ProgressMessageType>>>:Report (System.ValueTuple`2<int, System.ValueTuple`2<string, Microsoft.Build.Unity.MSBuildProjectBuilder/ProgressMessageType>>) (at ./Library/PackageCache/com.microsoft.msbuildforunity@0.9.2-20230322.1/Editor/ProjectBuilder/MSBuildProjectBuilder.cs:516)
Microsoft.Build.Unity.MSBuildProjectBuilder/<>c__DisplayClass14_0:<BuildProjectsAsync>b__1 (System.ValueTuple`2<string, Microsoft.Build.Unity.MSBuildProjectBuilder/ProgressMessageType>) (at ./Library/PackageCache/com.microsoft.msbuildforunity@0.9.2-20230322.1/Editor/ProjectBuilder/MSBuildProjectBuilder.cs:330)
Microsoft.Build.Unity.MSBuildProjectBuilder/DelegateProgress`1<System.ValueTuple`2<string, Microsoft.Build.Unity.MSBuildProjectBuilder/ProgressMessageType>>:Report (System.ValueTuple`2<string, Microsoft.Build.Unity.MSBuildProjectBuilder/ProgressMessageType>) (at ./Library/PackageCache/com.microsoft.msbuildforunity@0.9.2-20230322.1/Editor/ProjectBuilder/MSBuildProjectBuilder.cs:516)
Microsoft.Build.Unity.MSBuildProjectBuilder/<>c__DisplayClass21_0:<ExecuteMSBuildAsync>b__0 (object,System.Diagnostics.DataReceivedEventArgs) (at ./Library/PackageCache/com.microsoft.msbuildforunity@0.9.2-20230322.1/Editor/ProjectBuilder/MSBuildProjectBuilder.cs:462)
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback ()

When i open the .csproj which is generated it has the same error :
Untitled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant