When you try to install few NuGet packages in Visual Studio and if you encounter an error “The path is not of a legal form” , you can fix the issue by having a check on the version of the NuGet that is actually installed.
Nuget Package install error “The path is not of a legal form” in Visual Studio 2015
Ensure that you are using the updated NuGet package manager. Incase you are using the older version of NuGet (3.0 or lower) , just update them from Visual Studio extensions.