I updated multiple nuget packages of default MVC application and my page style got messed up. Looks like partial styles are being loaded but I am unable to track down what went wrong.
Thanks in advance.
My Navbar before update.
My Navbar after update.
Sorry to hear that.
I got the same problem, and it cost me a lot. So frustrating. Fortunately I found the solution.
It is because of the the new version of Bootstrap. To solve the problem, please follow the steps below:
- Right click on your project, and go to "Manage NuGet Packages":
- Then find bootstrap, click on it. And you can see to the right the version selector. Click on the drop-down button:
- Then find an older version of bootstrap (most likely, 3.3.7 will work for you), and select it:
- Then click on the "Update" button:
- And then you can see that "bootstrap" has changed back to the old version you have selected:
- Then refresh you web page, and you can see it has returned to normal.
Don't repeat these steps if you don't have to.