c# - Add javascript file added as link to the BundleCollection -



c# - Add javascript file added as link to the BundleCollection -

there 2 projects in solution, first 1 class library , sec mvc 4 project.

the first library contains javascript file build action embedded resource.

i want utilize javascript file in mvc project , avoid copying it, why added link (visual studio's add together link). i'm trying add together file bundlecollection

bundles.add(new scriptbundle("~/content/scripts/xxx") .include("~/content/scripts/xxx.js"));

but script not referenced on page after rendering there. have tried set property "copy output directory" of linked file "copy always" didn't work. copying , adding file mvc project works expected, avoid having 2 copies of it.

is there way add together linked script bundlecollection

my suggestion re-create file post-build event. can xcopy file through batch file.

javascript c# asp.net asp.net-mvc bundle

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -