Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using powershell commands from the command line #8

Open
dhaligas opened this issue Jan 18, 2016 · 6 comments
Open

Using powershell commands from the command line #8

dhaligas opened this issue Jan 18, 2016 · 6 comments

Comments

@dhaligas
Copy link

@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
Copy link
Owner

mrward commented Jan 18, 2016

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
Copy link
Author

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

@cigano
Copy link

cigano commented Apr 20, 2016

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);

@mrward
Copy link
Owner

mrward commented Apr 20, 2016

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
Copy link

cigano commented Apr 20, 2016

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
Copy link
Owner

mrward commented Apr 21, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants