1. Simone Olianti
  2. SnapDevelop
  3. Tuesday, 9 March 2021 17:02 PM UTC

Hello, i had to clean install Windows 10 on my machine after a hardware failure.
Re-installed all PowerBuilder 2019R3 and SnapDevelop 2019R3 including all the default suggested components.

I have a small Web Api project migrated from 2019R2 that now gives the following error as soon as i open it in SnapDevelop:

    MSB4018    errore imprevisto dell'attività "GetPackageDirectory".
NuGet.Packaging.Core.PackagingException: La cartella 'C:\Program Files\dotnet\sdk\NuGetFallbackFolder' del pacchetto di fallback non è stata trovata.
   in NuGet.Packaging.FallbackPackagePathResolver..ctor(String userPackageFolder, IEnumerable`1 fallbackPackageFolders)
   in Microsoft.NET.Build.Tasks.NuGetPackageResolver.CreateResolver(IEnumerable`1 packageFolders)
   in Microsoft.NET.Build.Tasks.GetPackageDirectory.ExecuteCore()
   in Microsoft.NET.Build.Tasks.TaskBase.Execute()
   in Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   in Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()    StartWebApi3   Microsoft.NET.Sdk.FrameworkReferenceResolution.targets    164

Looks like the folder "C:\Program Files\dotnet\sdk\NuGetFallbackFolder" is missing and the project searching for it

this is the only folder i got now at that location: C:\Program Files\dotnet\sdk\3.1.403

I've also tried to create it myself following a similar issue on stackoverflow but didnt solve the problem

any ideas or any workaround?



Accepted Answer
Simone Olianti Accepted Answer Pending Moderation
  1. Tuesday, 9 March 2021 17:34 PM UTC
  2. SnapDevelop
  3. # Permalink

executing the command: dotnet restore

from the project folder command line solved the issue!

  1. Armeen Mazda @Appeon
  2. Tuesday, 9 March 2021 18:08 PM UTC
Thanks for sharing the solution!
  1. Helpful
There are no comments made yet.

There are replies in this question but you are not allowed to view the replies from this question.