Last post Mar 05, 2020 11:21 PM by PatriceSc
Mar 05, 2020 09:34 AM|NewToDotyNet|LINK
I seem unable to install a package.
Mar 05, 2020 03:15 PM|Rion Williams|LINK
What type of error are you getting? Application Insights is a pretty well established package, so it may just be that you are trying to install the incorrect one (e.g. Web instead of one meant for a Desktop application, etc.)
Any additional context would be helpful, as you should be able to just install it via NuGet.
Mar 05, 2020 05:41 PM|PatriceSc|LINK
According to your description it could be anything that could possibly fail ;-)
My guess is that you have perhaps something such as https://stackoverflow.com/questions/46797892/net-core-2-0-package-was-restored-using-netframework-4-6-1-instead-of-target
Please never wait for someone to ask which error message or bad behavior you see so that we don't have first to guess which problem you have before even being able to suggest maybe a solution.
Mar 05, 2020 10:08 PM|NewToDotyNet|LINK
An error occurred while trying to restore packagers : The specified path, file name, or both are too long. The fully qualified file name must be lass than 260 characters, and the directory name must be less than 248 characters.
Mar 05, 2020 11:21 PM|PatriceSc|LINK
Move your solution folder to a higher level folder or rename folders above your solution to shorten their names.
Packages are stored in C:\Users\<name>\<more folders>\<whatever>\<something else>\<MyLongName>\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1.nupkg and you likely end up with a path
that is just too long.
As you see it would have been hard to guess but it's easy to suggest a fix once you know the exact problem.