mrward / monodevelop-nuget-extensions

Extends the MonoDevelop NuGet addin
MIT License
72 stars 9 forks source link

Using powershell commands from the command line #8

Open dhaligas opened 8 years ago

dhaligas commented 8 years ago

@mrward I would like to be able to manage my nuget packages Installs / Updates etc from the command line.

Is this possible using the powershell command you have built?

mrward commented 8 years ago

Not with what is currently available in the GitHub repository. It only works from inside Xamarin Studio or MonoDevelop.

I did look at this with SharpDevelop so you could update and install NuGet packages and have PowerShell scripts run. It needed a custom build of SharpDevelop so it was not a small binary you could ship.

Another problem if you want this to run on Mac and Linux is that Pash is missing some features so some NuGet powershell scripts do not work correctly.

dhaligas commented 8 years ago

@mrward thanks for the quick response ... managing nuget is a pain of which your addin alleviates some pain

cigano commented 8 years ago

I want to make some other suggestions for this Powershell Extension:

mrward commented 8 years ago

Getting Enable-Migrations, Add-Migration, Update-Database and the scaffolding to work is non-trivial. I got that working in SharpDevelop but only by creating custom versions of the the corresponding NuGet packages. The official NuGet packages only work with Visual Studio.

cigano commented 8 years ago

Getting Enable-Migrations, Add-Migration, Update-Database and the scaffolding to work is non-trivial. I got that working in SharpDevelop but only by creating custom versions of the the corresponding NuGet packages. The official NuGet packages only work with Visual Studio.

@mrward Can you please explain in Wiki how to make these customizations? I want to contribute.

mrward commented 8 years ago

One problem is that EntityFramework and MvcScaffolding rely on parts of the Visual Studio object model which are implemented in SharpDevelop but not for Xamarin Studio. Both use the FileCodeModel which is something I have not implemented for Xamarin Studio. It is also made more complicated since Xamarin Studio has moved from NRefactory (Xamarin Studio 5) to Roslyn (Xamarin Studio 6).

Code first migrations with EF in SharpDevelop

MVC Scaffolding in SharpDevelop

MVC Scaffolding source for SharpDevelop

EntityFramework 5 and 6 for SharpDevelop

The work done on the above has not been updated for at least three years if not longer.