Wednesday, 16 October 2019

Publish your project in visual studio

You need to click on the Build menu and then select Publish ,



Once the Dialog has been open you need to specify the publishing target , Since we choose the file system so we need to click on "Folder", Then we gonna need to specify the target location for that
but visual studio will choose a default location as well after getting done with that you just simply need to click on "Publish" button and It's done! Now you can pick the published code from your chosen target location and can deploy it as you want.



Tuesday, 15 October 2019

Adding jQueryUI library in MVC Project

First you need to download JqueryUI via their website or Nuget Package manager, Once you get it in your project you need to add it into BundleConfig.cs file like below:

    public class BundleConfig
    {
        public static void RegisterBundles(BundleCollection bundles)
        {

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
            "~/Scripts/jquery-ui-{version}.js"));
        }
    }

Now you can add it in your _Layout page :

   @Scripts.Render("~/bundles/jqueryui")