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
Add a comment  | 

1 Answer 1

Reset to default 0

Thank 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