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 Software and Apps 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 Software and Apps' 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. 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 file.

    So, I ran the "Restore NuGet packages" command. I still got the same XLS0414 errors and I got an error indicating that an "Error occurred while restoring NuGet packages: The path is not of a legal form."

    So, I looked in the "Nuget Package Manager" under "Package Sources". Under the name "nuget.org", I have the following source: "https://api.nuget.org/v3/index.json". I copied this link to my Chrome browser and the link was functional. I have had several engineers look at the code and other than not having project.assets.json file, it seems to be ok.

    Can you help me.
     
    Glenn Varnon1, Jan 6, 2023
    #2
  3. Error occurred while restoring NuGet packages: The path is not of a legal form.

    I did exactly that on the site you provided. The issue is that I get an error that the server has timed out.

    I asked my co-worker to ty and he could connect and send in issues and comments. I am not sure why I cannot.
     
    Glenn Varnon1, Jan 6, 2023
    #3
  4. DaveM121 Win User

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

    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
    #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 Gaming
    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,...