monodevelop-nuget-extensions icon indicating copy to clipboard operation
monodevelop-nuget-extensions copied to clipboard

Using powershell commands from the command line

Open dhaligas opened this issue 8 years ago • 6 comments

@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?

dhaligas avatar Jan 18 '16 16:01 dhaligas

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.

mrward avatar Jan 18 '16 17:01 mrward

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

dhaligas avatar Jan 18 '16 17:01 dhaligas

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

  • Enable-Migrations, Add-Migration and Update-Database commands (from Entity Framework);
  • scaffold command (from MvcScaffolding);

cigano avatar Apr 20 '16 21:04 cigano

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 avatar Apr 20 '16 22:04 mrward

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.

cigano avatar Apr 20 '16 22:04 cigano

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.

mrward avatar Apr 21 '16 08:04 mrward