Create NuGet package with a scaffolding only - nuget-package

I have a question, I would like to create a nuget Package, wich only include a custom scaffolding template.
I know how I create a custom scaffolding, but I do it ever in an existing mvc project, but now I want to create NuGet package, so that I can install the package on my projects and don't have to create or copy the complete scaffolding template.
Can someone help me?
Best regards

Related

Install custom component package in Orchard custom module in Orchard CMS

I have created one module called HellowWorls, i need to install custom nuget packages in this module and need to refer some custom script files.
How to do it?
Any help?
Thanks,

How to automatically create and push Nuget Package after building

We want to create nuget packages for our all products (dll) but there are several developers and want to find out the easiest way to do that.
It is possible to use console manager to do that but I am looking for a general solution. Because the projects can have dependencies or files and also the important thing is versioning. So I am looking for a tool which can create a package and push for us considering dependencies, versioning etc.
I solved the problem using TFS Build that has Nuget packager and publisher..

"Fody not properly installed" error exception. (Xamarin.forms)

I'm making app with using Xamarin.forms. (PCL Project)
Today, I added new three solution packages named SVG.Forms.Plugin.Abstractions, SVG.Forms.Plugin.iOS, SVG.Forms.Plugin.Android on workspace that downloaded from github.
I have used realm for Xamarin.
But After I added new packages, "Realms.RealmException has been thrown".
Message is "Fody not properly installed. allbX.Baby is a RealmObject but has not been woven."
Is it Fody's problem or Realm's or new packages'(SGV Control)?
And could you let me know how to solve it?
Better Answer
The check which is delivering that message is because Fody is not running.
So, they may have a RealmObject in their component but Fody doesn't get run building in your solution so weaving doesn't occur.
The easiest fix is to just use NuGet to add Fody to your main application project. That should install it in the right place for the solution.
Background
NuGet manages dependencies so if a package relies on Realm, it will go on in turn and install Realm. Realm itself relies on Fody, for example, so will in turn trigger a Fody installation.
You can manually install Realm but it is a little fiddly, having to add a couple of lines to your csproj to specify imports. We have chosen to only document installation via NuGet at this stage.
If you want to manually add Realm to another solution without using NuGet, I suggest you take a new clean solution, save a copy, and diff with the changes made to that solution by adding Realm via NuGet. You will then see the lines to copy into your existing solution.

Publish only Module in Orchard

I'm working in Orchard project & i want to implement WebApi in my project so that I plan to create one WebApi related separate module which handles all the database related code & returns the result to the other modules as well third party calls.
But for implementing like this, how can i publish my rest of the application at one place & the WebApi related module at another place.
You cannot run Orchard Modules without Orchard. If you want to separate site publishing from module publishing, you can update single modules. To do this you need to package you module and then upload and install it to the site. Either by Admin Dashboard or Orchard Command-line.
On how to package a module and install it with Orchard Command-line check the Orchard Doc's here
You can also upload the module package via Orchards Admin Dashboard. Check this Orchard Doc to accomplish this.
Important! Remember to update your module's version in Module.txt manifest file. Otherwise the update won't work.

Creating a Visual Studio project template that references external libraries

We're attempting to create a new project template that has references to external libraries like StructureMap and Entity Framework. However, when we create a project from the template the libraries are linked but the link is broken because of file path issues.
I would either like to have NuGet know to go download the packages on when creating the new project, or have some way to package the libraries in the project template.
You may want have a look at this post: http://haacked.com/archive/2011/06/06/creating-a-custom-asp-net-mvc-project-template.aspx
Although its about MVC the details about the very limited NuGet support for project templates is relevant to your question.
You could consider creating a custom IWizard for your template http://msdn.microsoft.com/en-us/library/ms185301.aspx but in short I don't believe there is an easy answer to what you are trying to do yet.

Resources