How to use nuget with Visual Studio for phpproj type project

861 views Asked by At

I have installed VS.php and Phalanger for developing a PHP project in Visual Studio.

I am able to debug the PHP project successfully, now I am looking for to add 'bootstrap' as a package through nuget.

By using "Manage NuGet Packages for solution" option, when I choose to install 'bootstrap' package, the VS show following mesasge.

'bootstrap' could not be installed because it is not compatible with any project in the solution. The package doesn't target any framework.

Its a phpproj; PHP project created from VS.php extension, how can i use nuget with phpproj type project.

1

There are 1 answers

2
Jakub Míšek On

VS.php is only PHP extension, nothing to do with Phalanger.

Phalanger comes with Phalanger Tools for Visual Studio (https://visualstudiogallery.msdn.microsoft.com/419916fb-ec89-4f18-ba97-75cf66037797). It cannot co-exist with VS.php since both provide PHP Editor functionality.

Then, if you create new Phalanger Web Project, it should allow you such features as NuGet.