peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core
https://www.peachpie.io
Apache License 2.0
2.33k stars 202 forks source link

Creating a new project in Visual Studio result in error. #986

Closed hlynnerup closed 2 years ago

hlynnerup commented 2 years ago

I have tried to create a new Peachpie Console App (.NET Core) project with extension 1.0.10 on realtive new installed VS 2019 Version 16.11.5 with 'almost' every choice selected, but VS complaint not being able to find package Peachpie.NET.Sdk

peachpie 2021-10-29_19-13-09 k

jakubmisek commented 2 years ago

Seems you have turned off the nuget.org package source (visual studio supposed to download the Peachpie.NET.Sdk package from there)

Similar issue as on https://github.com/NuGet/Home/issues/2617

Try running the following on cmd:

dotnet restore

If it doesn't help, run the following:

dotnet nuget add source https://api.nuget.org/v3/index.json --name nuget.org
hlynnerup commented 2 years ago

Thank you Jakub, this fixed the issue. Seems like VS2019 does not install package reference to NuGet (I didn’t turn it off!). Project created and Build succeeded 😊

jakubmisek commented 2 years ago

I'm glad it works!