Skip to content

Fresh project clone build fails #148

Closed
Closed

Description

Hello,

Right away when I clone the project and attempt to run it, I get an error attempting to connect to the "https://pkgs.dev.azure.com/ms/winget-cli-restsource/_packaging/winget/nuget/v3/index.json" source. I found someone online that claimed that they just removed this reference and it all built well from them but after doing that I also get errors of packages only on the source I cannot connect too.

I really want to be able to use this and I apologize ahead of time if there's a readme somewhere in the project that I couldn't find that goes over this.

Steps to reproduce -

  1. Clone Project down.
  2. Don't have access to "https://pkgs.dev.azure.com/ms/winget-cli-restsource/_packaging/winget/nuget/v3/index.json".
  3. Attempt to build project.

Expected Result -

Fresh project clone builds.

Activity

  1. zachcarp commented on Jun 22, 2022

    @zachcarp
    Contributor

    Dalton Keightey (@DaltonKeightley) - Thanks for letting us know about this. This is an issue we are actively investigating.

    The short version is that we are required to use dev-ops package feeds, and at this time we have not been able to make the feed publicly accessible. As you have pointed out, the packages are public so you should be able to get it to build by updating your NuGet feeds to public endpoints (something we aren't able to do) to unblock yourself currently.

  2. hancockl commented on Aug 19, 2022

    @hancockl

    Zach Carpenter (@zachcarp) - I'm attempting to do the same steps as the OP, with your suggestion of pointing to my own NuGet feed from my own internal AzureDevops project. The NuGet source is happier, however I now receive the following errors:

    Errors:

    • Error NU1504 - Duplicate 'PackageReference' items found. Remove the duplicate items or use the Update functionality to ensure a consistent restore behavior. The duplicate 'PackageReference' items are: Microsoft.WindowsPackageManager.Utils 0.3.4, Microsoft.WindowsPackageManager.Utils *.

    • Error MSB3073 - The command ""C:\temp\winget-cli-restsource-main\src\packages\bond.csharp\9.0.3\build..\tools\gbc.exe" c# --import-dir="C:\temp\winget-cli-restsource-main\src\packages\bond.csharp\9.0.3\build..\tools\inc" --jobs=-2 --namespace=bond=Bond --output-dir="obj/Debug/netstandard2.1/" @"obj/Debug/netstandard2.1/bonddefaultcodegen.in"" exited with code 1. Microsoft.WindowsPackageManager.Rest C:\temp\winget-cli-restsource-main\src\packages\bond.csharp\9.0.3\build\Common.targets 161

    • Error NU1101 - Unable to find package Microsoft.Cloud.InstrumentationFramework.NetStd. No packages exist with this id in source(s): WinGet_Feed

    I tried commenting out one of the package references to resolve the first error. The second one I'm not sure about, and the third seems to be referencing a deprecated package.

    Any help, or resources you could point me to to assist with this would be really appreciated. I'm very keen to get a private winget repo setup for my org, but this part is a little out of my area of expertise. Thanks!

  3. kimi0230 commented on Oct 3, 2022

    @kimi0230
    Contributor
    • Error NU1101 - Unable to find package Microsoft.Cloud.InstrumentationFramework.NetStd. No packages exist with this id in source(s): WinGet_Feed

    Same error.

    When I access https://pkgs.dev.azure.com/ms/winget-cli-restsource/_packaging/winget/nuget/v3/index.json
    will return F400813: The user xxxxx-xxx-x-x- is not authorized to access this resource.
    Is it not publicly available ?
    How should I apply for an authorized account ?

    I change NuGet Package Sources from https://pkgs.dev.azure.com/ms/winget-cli-restsource/_packaging/winget/nuget/v3/index.json tohttps://api.nuget.org/v3/index.json
    Will show * Error NU1101 - Unable to find package Microsoft.Cloud.InstrumentationFramework.NetStd. No packages exist with this id in source(s): WinGet_Feed

    Thanks !!

  4. idaence-dfi commented on Dec 13, 2022

    @idaence-dfi
    • Error NU1101 - Unable to find package Microsoft.Cloud.InstrumentationFramework.NetStd. No packages exist with this id in source(s): WinGet_Feed

    Same error.

    I've tried to downgrade VS Studio from 2022 to 2019 .... Changed to Public Package Source, too.
    Don't find any reference or documentation of this package?

    Thanks and Regards,
    Daniel

  5. ElianeMegert commented on Jan 12, 2023

    @ElianeMegert

    same problem. No valid package source found for Microsoft.Cloud.InstrumentationFramework.NetStd. Where can we find the package?

  6. jamie-oconnell commented on Jun 12, 2023

    @jamie-oconnell

    Is there any further recommendations on this? The latest commit also uses Bond.Csharp 11 which isn't publicly available. Likewise Microsoft.Cloud.InstrumentationFramework.NetStd.

  7. simpleprovider commented on Jun 21, 2023

    @simpleprovider

    I still have the same issue. I miss two packages on the public feeds.
    Any updates ? Thanks

  8. RDMacLachlan commented on Sep 11, 2023

    @RDMacLachlan
    Member

    Hi, there has been some work done recently that may have resolved this. Can someone confirm that this is still an issue?

  9. mpeckatwork commented on Sep 11, 2023

    @mpeckatwork

    I can confirm it's still an issue. The package feed still requires a Microsoft login to access it and those two packages are still not publicly available (looks like the 2nd one should never be).

  10. 92flash commented on Sep 14, 2023

    @92flash

    I have tried to build the package today in Visual Studio 2022, but I also get the same error.

    I got the error that Bond.CSharp could not be found, but I fixed this by altering the version from 11.0.0 to 10.0.0 as the highest available package at NuGet is 10.0.0 (though I don't know if this'll create problems later).

    When I try to build it like this, at first I get the question to login to my Microsoft account a bunch of times, and then the error: Unable to load the service index for source https://pkgs.dev.azure.com/ms/winget-cli-restsource/_packaging/winget/nuget/v3/index.json..

    If I remove the URL from the NuGet.config (as I also found an article online that suggested they got it working without the API URL), I then get the following error: Unable to find package Microsoft.Cloud.InstrumentationFramework.NetStd. No packages exist with this id in source(s): winget.

    When I try to follow the URL, and sign in, I get the message 401 - Uh-oh, you do not have access., so I don't know if I need to create my own API URL on Azure somewhere or something?

    I've read somewhere else that removing the URL from the NuGet.config and then run the .net command dotnet restore will solve the build issue, and it will try to resolve the issues, but then I get a whole bunch of errors:

    C:\Temp\winget-cli-restsource-main\src\Microsoft.WindowsPackageManager.Rest\Microsoft.WindowsPackageManager.Rest.c
    sproj : error NU1101: Unable to find package Microsoft.Cloud.InstrumentationFramework.NetStd. No packages exist with th
    is id in source(s): Microsoft Visual Studio Offline Packages, NuGet.org [C:\Temp\winget-cli-restsource-main\src\Wi
    nGet.RestSource.sln]
    
    C:\Temp\winget-cli-restsource-main\src\WinGet.RestSource.AppConfig\WinGet.RestSource.AppConfig.csproj : error NU11
    01: Unable to find package Microsoft.Cloud.InstrumentationFramework.NetStd. No packages exist with this id in source(s)
    : Microsoft Visual Studio Offline Packages, NuGet.org [C:\Temp\winget-cli-restsource-main\src\WinGet.RestSource.sl
    n]
    
    C:\Temp\winget-cli-restsource-main\src\WinGet.RestSource.PowershellSupport\WinGet.RestSource.PowershellSupport.csp
    roj : error NU1101: Unable to find package Microsoft.Cloud.InstrumentationFramework.NetStd. No packages exist with this
     id in source(s): Microsoft Visual Studio Offline Packages, NuGet.org [C:\Temp\winget-cli-restsource-main\src\WinG
    et.RestSource.sln]
    
    C:\Temp\winget-cli-restsource-main\src\WinGet.RestSource.IntegrationTest\WinGet.RestSource.IntegrationTest.csproj
    : error NU1101: Unable to find package Microsoft.Cloud.InstrumentationFramework.NetStd. No packages exist with this id
    in source(s): Microsoft Visual Studio Offline Packages, NuGet.org [C:\Temp\winget-cli-restsource-main\src\WinGet.R
    estSource.sln]
    
    C:\Temp\winget-cli-restsource-main\src\WinGet.RestSource\WinGet.RestSource.csproj : error NU1101: Unable to find p
    ackage Microsoft.Cloud.InstrumentationFramework.NetStd. No packages exist with this id in source(s): Microsoft Visual S
    tudio Offline Packages, NuGet.org [C:\Temp\winget-cli-restsource-main\src\WinGet.RestSource.sln]
    
    C:\Temp\winget-cli-restsource-main\src\WinGet.RestSource.Utils\WinGet.RestSource.Utils.csproj : error NU1101: Unab
    le to find package Microsoft.Cloud.InstrumentationFramework.NetStd. No packages exist with this id in source(s): Micros
    oft Visual Studio Offline Packages, NuGet.org [C:\Temp\winget-cli-restsource-main\src\WinGet.RestSource.sln]
    
    C:\Temp\winget-cli-restsource-main\src\WinGet.RestSource.Functions\WinGet.RestSource.Functions.csproj : error NU11
    01: Unable to find package Microsoft.Cloud.InstrumentationFramework.NetStd. No packages exist with this id in source(s)
    : Microsoft Visual Studio Offline Packages, NuGet.org [C:\Temp\winget-cli-restsource-main\src\WinGet.RestSource.sl
    n]
    
    C:\Temp\winget-cli-restsource-main\src\WinGet.RestSource.UnitTest\WinGet.RestSource.UnitTest.csproj : error NU1101
    : Unable to find package Microsoft.Cloud.InstrumentationFramework.NetStd. No packages exist with this id in source(s):
    Microsoft Visual Studio Offline Packages, NuGet.org [C:\Temp\winget-cli-restsource-main\src\WinGet.RestSource.sln]
    
  11. mpeckatwork commented on Nov 15, 2023

    @mpeckatwork

    Wanted to share how I resolved this issue for my use case: https://github.com/mpeckatwork/winget-cli-restsource/pull/2/files

    Essentially, the two libraries that aren't publicly available aren't part of the primary functionality of the code, so I was able to remove the dependency on them.

    Roy (@RDMacLachlan) Zach Carpenter (@zachcarp)

  12. mpeckatwork commented on Apr 22, 2024

    @mpeckatwork

    FYI - This issue was resolved for me with the changes in: 64cf1a8

  13. yao-msft commented on Jan 14, 2025

    @yao-msft
    Contributor

    The nuget feed could be accessed from public and the issue should be resolved now. Closing this issue.

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

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions