asp.net-corebootstrap-4partial-views

Unable to Add Partial View in ASP.NET Core Project - Bootstrap Version Error


I'm currently working on an ASP.NET Core project and I'm trying to add a Partial View. However, I'm encountering an error related to Bootstrap versioning. The error message states:

bootstrap error message

I have verified that my project is using Bootstrap v4.1.3, as indicated in the bootstrap.css file. Despite this, I still receive the error when attempting to add the Partial View. and also i tried to upgrade bootstrap version also.

How can I resolve this Bootstrap version error when trying to add a Partial View in my ASP.NET Core project? Any guidance or suggestions would be greatly appreciated!


Solution

  • I searched about the error message and I find this VS ticket which pointing to a VS issue, so that I suggest to upgrading to the latest VS version.

    Based on OP's confirmation, upgrading VS resolved this error.