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

msidentity-app-sync build using project names as package IDs of dependancies #2579

Closed
jasonalexander-ja opened this issue Nov 13, 2023 · 1 comment
Assignees

Comments

@jasonalexander-ja
Copy link
Contributor

Microsoft.Identity.Web Library

Microsoft.Identity.Web

Microsoft.Identity.Web version

2.15.3

Web app

Not Applicable

Web API

Not Applicable

Token cache serialization

Not Applicable

Description

When following build-and-install-from-the-repository steps, the build fails during dotnet pack for all 3 projects in that solution, all following the format [name-of-project].csproj : error NU1101/NU1102: Unable to find the package [name-of-project]. I was not able to find anything inside any of the .csproj files that would cause this.

Was able to recreate this in Windows, MacOS and a fresh install of .NET 7 on WSL2 Debian 11.

Reproduction steps

  1. Run git clone https://github.com/AzureAD/microsoft-identity-web & cd tools/app-provisioning-tool.
  2. Run either dotnet pack or dotnet build

Error message

MSBuild version 17.8.0+6cdef4241 for .NET
  Determining projects to restore...

C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning-tool\msidentity-app-sync.csproj : error NU1102: Unable to find package msidentity-app-sync with version (= 2.7.0) [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]
C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning-tool\msidentity-app-sync.csproj : error NU1102:   - Found 2 version(s) in nuget.org [ Nearest version: 1.0.1 ] [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]
C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning-tool\msidentity-app-sync.csproj : error NU1102:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]
C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning-tool\msidentity-app-sync.csproj : error NU1102:   - Found 0 version(s) in C:\Program Files\dotnet\library-packs [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]

C:\Development\microsoft-identity-web\tools\app-provisioning-tool\tests\Tests.csproj : error NU1102: Unable to find package Tests with version (= 2.7.0) [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]
C:\Development\microsoft-identity-web\tools\app-provisioning-tool\tests\Tests.csproj : error NU1102:   - Found 2 version(s) in nuget.org [ Nearest version: 1.0.0-b2017040802 ] [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]
C:\Development\microsoft-identity-web\tools\app-provisioning-tool\tests\Tests.csproj : error NU1102:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]
C:\Development\microsoft-identity-web\tools\app-provisioning-tool\tests\Tests.csproj : error NU1102:   - Found 0 version(s) in C:\Program Files\dotnet\library-packs [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]

C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning-lib\app-provisioning-lib.csproj : error NU1101: Unable to find package app-provisioning-lib. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages, nuget.org [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]

  Failed to restore C:\Development\microsoft-identity-web\tools\app-provisioning-tool\tests\Tests.csproj (in 932 ms).
  Failed to restore C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning-lib\app-provisioning-lib.csproj (in 927 ms).
  Failed to restore C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning-tool\msidentity-app-sync.csproj (in 930 ms).

Build FAILED.


C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning-tool\msidentity-app-sync.csproj : error NU1102: Unable to find package msidentity-app-sync with version (= 2.7.0) [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]
C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning-tool\msidentity-app-sync.csproj : error NU1102:   - Found 2 version(s) in nuget.org [ Nearest version: 1.0.1 ] [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]
C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning-tool\msidentity-app-sync.csproj : error NU1102:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]
C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning-tool\msidentity-app-sync.csproj : error NU1102:   - Found 0 version(s) in C:\Program Files\dotnet\library-packs [
C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]

C:\Development\microsoft-identity-web\tools\app-provisioning-tool\tests\Tests.csproj : error NU1102: Unable to find package Tests with version (= 2.7.0) [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]
C:\Development\microsoft-identity-web\tools\app-provisioning-tool\tests\Tests.csproj : error NU1102:   - Found 2 version(s) in nuget.org [ Nearest version: 1.0.0-b2017040802 ] [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]
C:\Development\microsoft-identity-web\tools\app-provisioning-tool\tests\Tests.csproj : error NU1102:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]
C:\Development\microsoft-identity-web\tools\app-provisioning-tool\tests\Tests.csproj : error NU1102:   - Found 0 version(s) in C:\Program Files\dotnet\library-packs [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]

C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning-lib\app-provisioning-lib.csproj : error NU1101: Unable to find package app-provisioning-lib. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages, nuget.org [C:\Development\microsoft-identity-web\tools\app-provisioning-tool\app-provisioning.sln]
    
    0 Warning(s)
    3 Error(s)

Time Elapsed 00:00:04.98

Id Web logs

No response

Relevant code snippets

git clone https://github.com/AzureAD/microsoft-identity-web
cd tools/app-provisioning-tool
dotnet pack

Regression

No response

Expected behavior

Build does not look up project names as package dependencies.

@jennyf19
Copy link
Collaborator

jennyf19 commented Nov 13, 2023

@jasonalexander-ja fixed. Should work with a new git pull.

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

No branches or pull requests

2 participants