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:
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!
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:
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!
Share Improve this question asked 2 days ago MANSIMANSI 593 silver badges8 bronze badges 10- Sounds like your code generator itself wants to produce BS 3 code? – C3roe Commented 2 days ago
- @C3roe I am not able to understand what the issue is. I wanted to add partial view but i got this error – MANSI Commented 2 days ago
- The partial you are trying to add appears to have been written for BS 3. – C3roe Commented 2 days ago
- @C3roe yes it is saying that it is specified for bootstrap 3 – MANSI Commented 2 days ago
- 1 @TinyWang now i am able to add partial view thanks – MANSI Commented yesterday
1 Answer
Reset to default 1I 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.