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" />
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742294229a4416787.html
评论列表(0条)