Windows 10: Error occurred while restoring NuGet packages: The path is not of a legal form.

Discus and support Error occurred while restoring NuGet packages: The path is not of a legal form. in Windows 10 Gaming to solve the problem; I recently installed Visual Studio Professional 2022 64 bit version 17.4.3 onto my Lenovo ThinkPad computer model 20MAS6L00L. The operating system is... Discussion in 'Windows 10 Gaming' started by Glenn Varnon1, Jan 6, 2023.

  1. Error occurred while restoring NuGet packages: The path is not of a legal form.


    I recently installed Visual Studio Professional 2022 64 bit version 17.4.3 onto my Lenovo ThinkPad computer model 20MAS6L00L. The operating system is Windows 10 version 10.0.19042 Build 19042. I created a new Maui Windows project. The project start up code was automatically generated for me via Visual Studio as is normal. Upon loading, some errors were generated. I had several XLS0414 errors indicating that I was missing an assembly reference. I also had a NETSDK1 error indicating the project.assets.json file was not found and that I needed to run NuGet package restore to generate the fil

    :)
     
    Glenn Varnon1, Jan 6, 2023
    #1
  2. DaveM121 Win User

    What are the pros and cons of publishing NuGet packages publicly and privately?

    Hi Michael,

    I am Dave, I will help you with this.

    Basically Public indicates anyone can download your package and private are only available within your organization,

    Quote from the link below:

    1

    Public packages are made available to all developers globally through nuget.org as described in this article (requires NuGet 4.1.0+).

    2

    Private packages are available to only a team or organization, by hosting them either a file share, a private NuGet server, Azure Artifacts, or a third-party repository such as myget, ProGet, Nexus Repository, and Artifactory.

    https://docs.microsoft.com/en-us/nuget/nuget-or...
     
    DaveM121, Jan 6, 2023
    #2
  3. MuniOnp Win User
    NuGet-anycpu.exe, offers to download but everytime it says " Initialization Failed. Unable to find package provider 'NuGet'

    Original title: Powershell Module Browser problem

    ill keep it simple, I installed the module browser on powershell but its asking for NuGet-anycpu.exe, it offers to download it but everytime it says " Initialization Failed. Unable to find package provider 'NuGet' "

    how do I get this missing piece of software to get the module browser working; it can't be as simple as downloading the nuget command line program, renaming it as nuget-anycpu and placing it wherever because both time it gave me a powershell error, can anyone
    help me, or is this question more suited to the technet forums?
     
    MuniOnp, Jan 6, 2023
    #3
  4. Brink Win User

    Error occurred while restoring NuGet packages: The path is not of a legal form.

    Announcing “UWPDesktop” NuGet Package Version 14393


    Source: https://blogs.windows.com/buildingap...-version-14393
     
    Brink, Jan 6, 2023
    #4
Thema:

Error occurred while restoring NuGet packages: The path is not of a legal form.

Loading...
  1. Error occurred while restoring NuGet packages: The path is not of a legal form. - Similar Threads - Error occurred while

  2. Visual Studios 22 Nuget Package Manager: I get a System.IO.DirectoryNoFoundException Error...

    in Windows 10 Gaming
    Visual Studios 22 Nuget Package Manager: I get a System.IO.DirectoryNoFoundException Error...: Since this doesn't seem to be the forum to get the answer, please navigate me to the right one. Google doesn't help.System.IO.DirectoryNotFoundException: Could not find a part of the path...
  3. Where Can I Get the NuGet Package Manager?

    in Windows 10 Network and Sharing
    Where Can I Get the NuGet Package Manager?: Where can I get the NuGet Package Manager?I have Windows 10. https://answers.microsoft.com/en-us/windows/forum/all/where-can-i-get-the-nuget-package-manager/35924171-1fcc-41a5-a3ea-98333f2bfa45
  4. Where Can I Get the NuGet Package Manager?

    in Windows 10 Gaming
    Where Can I Get the NuGet Package Manager?: Where can I get the NuGet Package Manager?I have Windows 10. https://answers.microsoft.com/en-us/windows/forum/all/where-can-i-get-the-nuget-package-manager/35924171-1fcc-41a5-a3ea-98333f2bfa45
  5. Where Can I Get the NuGet Package Manager?

    in Windows 10 Software and Apps
    Where Can I Get the NuGet Package Manager?: Where can I get the NuGet Package Manager?I have Windows 10. https://answers.microsoft.com/en-us/windows/forum/all/where-can-i-get-the-nuget-package-manager/35924171-1fcc-41a5-a3ea-98333f2bfa45
  6. Error occurred while restoring NuGet packages: The path is not of a legal form.

    in Windows 10 Software and Apps
    Error occurred while restoring NuGet packages: The path is not of a legal form.: I recently installed Visual Studio Professional 2022 64 bit version 17.4.3 onto my Lenovo ThinkPad computer model 20MAS6L00L. The operating system is Windows 10 version 10.0.19042 Build 19042. I created a new Maui Windows project. The project start up code was automatically...
  7. Trying to install NuGet package using Powershell and getting this error

    in Windows 10 Gaming
    Trying to install NuGet package using Powershell and getting this error: Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -ForceWARNING: Unable to download from URI 'https://onegetcdn.azureedge.net/providers/Microsoft.PackageManagement.NuGetProvider-2.8.5.208.dll' to ''.Install-PackageProvider : Failed to bootstrap provider...
  8. Trying to install NuGet package using Powershell and getting this error

    in Windows 10 Software and Apps
    Trying to install NuGet package using Powershell and getting this error: Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -ForceWARNING: Unable to download from URI 'https://onegetcdn.azureedge.net/providers/Microsoft.PackageManagement.NuGetProvider-2.8.5.208.dll' to ''.Install-PackageProvider : Failed to bootstrap provider...
  9. Trying to install NuGet package using Powershell and getting this error

    in Windows 10 Drivers and Hardware
    Trying to install NuGet package using Powershell and getting this error: Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -ForceWARNING: Unable to download from URI 'https://onegetcdn.azureedge.net/providers/Microsoft.PackageManagement.NuGetProvider-2.8.5.208.dll' to ''.Install-PackageProvider : Failed to bootstrap provider...
  10. Announcing “UWPDesktop” NuGet Package Version 14393

    in Windows 10 News
    Announcing “UWPDesktop” NuGet Package Version 14393: The UWPDesktop NuGet package is here to improve the developer experience with Visual Studio when walking along the Desktop Bridge. The Desktop Bridge allows you to call UWP APIs directly from your WinForms, WPF or VB application. You can use APIs such as Live tiles,...