Add other projects stylesheet to Bundleconfig

996 views Asked by At

I have a common solution MyApp. Within this, I have more than 2 projects like MyCommon,MyInclude,MyWeb. I want to place stylesheets,scripts in a common project and refer them in other projects. Now I refer my stylesheets in MyWeb project by adding them in BundleConfig as following:

public static void RegisterBundles(BundleCollection bundles)
{
    bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

    bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/login.css",
                      "~/Content/site.css"));
}

So, Now If I place these login.css,site.css in MyInclude project in MyApp solution and add them to this MyWeb project. How can i do this ? Can anyone help me to do this.. Thanks in advance..

0

There are 0 answers