admin管理员组文章数量:1334938
In my ASP.NET MVC project, I switched from Bootstrap 3 to Bootstrap 5. During this process, I used Bootstrap's bootstrap.bundle.min.js file.
After all the improvements, I realized that this bundle file does not automatically go to the server when we publish to IIS.
When I manually added the file to the server, there was no problem. Does anyone know the reason for this?
In my ASP.NET MVC project, I switched from Bootstrap 3 to Bootstrap 5. During this process, I used Bootstrap's bootstrap.bundle.min.js file.
After all the improvements, I realized that this bundle file does not automatically go to the server when we publish to IIS.
When I manually added the file to the server, there was no problem. Does anyone know the reason for this?
Share Improve this question asked Nov 22, 2024 at 6:31 AdylshaYAdylshaY 215 bronze badges 2- 2 Are you referencing a copy from the /js folder or /lib? – Steve Py Commented Nov 22, 2024 at 6:36
- 1 Include the file in csproj and it will be deployed, also on the file set Build Action as Content. – D A Commented Nov 22, 2024 at 6:48
1 Answer
Reset to default 0Thank you for your quick responses. When I added the relevant references to my csproj file as follows, the files were published.
<Content Include="Scripts\bootstrap.bundle.js" />
<Content Include="Scripts\bootstrap.bundle.min.js" />
本文标签: aspnet mvcBootstrap Bundle File Does Not Go Automatically After PublishStack Overflow
版权声明:本文标题:asp.net mvc - Bootstrap Bundle File Does Not Go Automatically After Publish - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742294228a2448395.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论