How to make UI NuGet package? - nuget-package

I want to make UI NuGet package like Guna2 UI or Bunifu UI, but I don't know how to make it. Can you tell me how to make UI NuGet package?

Related

_Layout programming lost after Nuget Update-Package with Visual Studio 17

After applying Update-Package on a long solid MVC Application, the _Layout markup has been lost. This took place in 4/26/2017.
I couldn't determine which updated component from NuGet is causing the error.
However, I also created a new clean .NET Framework MVC Application. With no other actions, did an Update-Package. The new Application has also lost its _Layout rendering. My framework level is 4.6.1
At least one of the problems is the result of the Nuget batch Update-Package modifying the Bootstrap version to 4.1.0
The fix is using Nuget Package Manager on References and lowering the Bootstrap version to 3.3.7 At least my new clean trial MVC application is then correctly displaying the _ Layout page.
But this hasn't corrected my major application.
Further Fix. In my main application I removed using Nuget in the following order:
Bootstrap
Microsoft.jQuery.Unobtrusive.Validation
jQuery.Validation
jQuery
Then clear the Scripts folder in the Project View
In the reverse order of above Install, at the latest version:
jQuery
jQuery.Validation
Microsoft.jQuery.Unobtrusive.Validation
Bootstrap(3.3.7)
Now the Scripts Folder should be regenerated.
At this point my application is displaying the correct _Layout

Azure Mobile Services - System.PlatformNotSupportedException

i'm working on a xamarin forms app with azure however when I load my initial page it crashes on the line:
public static MobileServiceClient MobileService =
new MobileServiceClient(
"https://myapp.azurewebsites.net");
with exception:
System.PlatformNotSupportedException "The empty PCL implementation for
Microsoft Azure Mobile Services was loaded. Ensure you have added
nuget package to each of your platform projects."
How do I fix this?
It might mean that the NuGet packages did not install correctly in one of your platforms. I would suggest doing a force-reinstall of all NuGet packages using the Package Manager Console (Tools/NuGet Package Manager/Package Manager Console).
Update-Package -reinstall
Do this for all projects in your solution. Once done, close and reopen Visual Studio, open your solution and click Build in the top menu and do Clean Solution.
Now look into each of your platform projects in turn to see if you have a Microsoft.Azure.Mobile.Client reference there:
If it is not there, install the Microsoft.Azure.Mobile.Client package again in that given project.
Then you should proceed as described in any tutorial on Azure Mobile Services. Even if you use the Shared Project strategy in you Xamarin.Forms app, it should work as expected once the platform project has Microsoft.Azure.Mobile.Client installed.
If it does not help, as the last resort I would suggest trying to update all NuGet packages to their last version (right-click solution, Manage NuGet Packages for Solution...)
Make sure that you add the initialization code in the respective AppDelegate/MainActivity
CurrentPlatform.Init();
And that in the iOS, Android and PCL projects there is the reference to the Microsoft.Azure.Mobile.Client package.
Example
It instantiates the MobileServiceClient in the TodoItemManager class.

ServiceStack set up packages

I'm trying on ServiceStack but getting stuck in the installation. Can I ask what's the correct packages to install? For a very simple tutorial on Pluralsight.
It doesn't seem to allow me to enable using ServiceStack.Interfaces or using ServiceStack.ServiceInterface in my application. Even though those are right there in the References.
I have installed ServiceStrack, ServiceStack.Host.MVC, ServiceStack.Host.AspNet and more.
Assuming you want to build just minimal web-service, you do not need to install Host.MVC or Host.AspNet, just install the minimal package using NuGet Package Manager like this:
Install-Package ServiceStack
After that you can use this guide to configure your newly ServiceStack Web-Service.
The easiest way to install ServiceStack is with ServiceStackVS VS.NET Extension which will download the right packages for each project type. See this guide on Creating your first project with ServiceStackVS.
If you want to add packages manually to a normal ASP.NET Web Application please see Creating a Service from Scratch.

ServiceStack.ServiceInterface.dll not on nuget (included manually)

I was just reviewing my project's dependencies, and I remembered something I did a while ago.
When I first included the Validation Feature, i browsed servicestack's source, and since it was at ServiceInterface.dll and that wasn't at nuget, I just compiled it manually, and manually included the library. However I want to include it through nuget.
Am I missing something here?
Thanks
(using 3.9.71)
ServiceStack.ServiceInterface.dll has always been included in the ServiceStack v3 NuGet packages, you can inspect the contents of NuGet packages using the NuGet Package Explorer:

Make NuGet WebApi.HelpPage package go away

I did this in the NuGet console to try out the Web Api help package:
Install-Package Microsoft.AspNet.WebApi.HelpPage
Now everytime I create a MVC Web Api project I get Areas\HelpPage.
I tried:
PM> Uninstall-Package Microsoft.AspNet.WebApi.HelpPage
Skipping 'Areas\HelpPage\Views\_ViewStart.cshtml' because it was modified.
Skipping 'Areas\HelpPage\Views\_ViewStart.cshtml' because it was modified.
Skipping 'Areas\HelpPage\Views\_ViewStart.cshtml' because it was modified.
Skipping 'Areas\HelpPage\Views\_ViewStart.cshtml' because it was modified.
Successfully removed 'Microsoft.AspNet.WebApi.HelpPage 4.0.0' from MvcApplication16.
Successfully uninstalled 'Microsoft.AspNet.WebApi.HelpPage 4.0.0'.
PM>
I decided not to use the HelpPage pacakge.
How can I make that HelpPage and its Area go away and not be in every project I create?
It's actually a feature in VS2012.2 update (or webtools 2012.2 release). It's not due to that you installed that package once or not. If you don't like it, you have 2 options:
1. remove the package everytime you after creating a new webapi project
2. Create a customized webapi template (search on asp.net on how to do that) that only installs the packages that you'd like

Resources