DmitryEfimenko / TwitterBootstrapMvc

Fluent implementation of ASP.NET-MVC HTML helpers for Twitter Bootstrap.
Apache License 2.0
223 stars 79 forks source link

Bootstrap() namespace not recognised in razor view #424

Open dm7777 opened 8 years ago

dm7777 commented 8 years ago

Hi Dimitry

I have download a trial of TwitterBootstrapMVC and followed the instruction of how to add the dll's to the project. The licence file is in the root of the project and the web.config in the Views root folder includes the TwitterBootstrap namespace.

The project compiles successfully. However the Bootstrap namespace (intellisense) is not recognised in the razor views.

I have included the print screen of the error message error

Can you please help as I want to use your library in my project

Sorry but can you also please provide a VS solution with a working solution of this library. I have tried codeproject.com and the download links from your articles are missing package

editcshtml gobasasax webconfig

Regards Dairy Milk

gicalle commented 8 years ago

in your web.config file (under the views folder!) you forgot to add the desired namespace: TwitterBootstrap3 (see installation info, step 3, point 4):

Depending on version of Bootstrap that you are using add one of the two namespaces: TwitterBootstrap2 or TwitterBootstrap3

`

`

dm7777 commented 8 years ago

Hi gicalle

Many thanks for pointing that out. I dont know how I missed that one out.

I read and re read the instructions half a dozen times to ensure that I have not missed anything before posting here.

I am definitely buying the licence for this library

Would be nice if there was a sample VS solution for asp.net mvc

Regards Dairy Milk

DmitryEfimenko commented 8 years ago

@dm7777 Glad you got this working! Good idea on having a configured sample VS solution available to people. I'll put something together.

@gicalle Thanks for stepping in! It's a great help!