ASP.NET MVC after upgrading the packages the default template is lost?

Asked

Viewed 173 times

1

I’m new in this area, I’m "walking barefoot on rocks" to learn ASP.NET, I use VISUAL STUDIO 2017 Community 2017 Version 15.8.4.

When creating a new ASP.NET MVC project the visual studio generates an empty application with a menu.

When upgrading packages via Package Manager Console this application loses the menu and its features.

I believe it is because of the update of Bootstrap and other scripts.

I confess that I am in the dark without the model that ASP.NET MVC creates to guide me, I’ve seen on the Bootstrap site that the current version is 4.1. In the model created with ASP.NET MVC the version is 3.3.7. That is, you cannot update the packages of the created model?

Someone has gone through such situation, losing page formatting because of it ?

I’ve researched several models and examples, but all I found are based on older versions, the models on the Bootstrap site are quite different.

My lack of experience tells me I may already have the answer but I can’t interpret it.

From now on, I thank the friends who can give me a direction to follow...

1 answer

1


The new version of bootstrap has some break changes.

An alternative is for you to fix the package version in Packages.config.

<package id="bootstrap" version="3.3.7" targetFramework="net472" allowedVersions="[3.3.7]" />

Or update your template to the new specifications of boostrap 4.1

  • Thanks for the tip Pablo!

  • Done! Adding this restriction the Bootstrap version is maintained and the model created with ASP.NET MVC does not lose its formatting or its operation. Thanks for your attention Pablo!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.