最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin2浏览0评论

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
 |  Show 5 more comments

1 Answer 1

Reset to default 1

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.

发布评论

评论列表(0)

  1. 暂无评论