c# - Deployment isn't copying certain files over -
i added this nuget package mvc project written in c#. works fine when run code locally.
but, when deploy solution remote server , run it, seems missing of these scripts. example, missing scripts/bootstrap-treeview.js , errors in chrome browser's debugger it. files not being deployed onto server @ because when browse remote server's disk not see them in deployment location.
i checked file's properties, set build action: content , copy output directory: not copy. that's set. tried setting copy output directory: copy always did not fix deployment copy these files over. other stack questions eluded me believe should deploy because i've set build action: content.
so structure follows (if helps in way):
project.csproj /scripts /bootstrap-treeview.js <-- want file deploy, not deploying. what problem be?
since using bundling , minification, issue bundle wasn't registered. not rendered because of (so there no reference , seems optimizations caused not deploy):
bundles.add(new scriptbundle("~/bundles/bootstrap").include( "~/scripts/bootstrap.min.js", "~/scripts/bootstrap-treeview.min.js")); ...and in view (or layout view):
@scripts.render("~/bundles/bootstrap")
Comments
Post a Comment