I'm not sure if this question is appropriate for SO, but I'm sure a few people here have been through it:
I'm trying to follow the MVC tutorials on the ASP.NET website and there's a point at which it has you add an ADO.NET entity to the project, but for some reason, it doesn't appear on the dialog for adding a new item. I've got SP1 for .NET 3.5 installed, so I have no idea why it isn't showing up. Anyone know of something else I need to install or tick for it to show up?
Thanks
The Entity Data Source appears on the Toolbox, in the Data section.
Here's some helpful information from an MSDN blog for people who can't see the item in the Toolbox:
Can't find the Entity Data Source?
If you upgrade the RTM version of Visual Studio 2008 with SP1, the EntityDataSource control doesn't appear in the Data group of the Web project Toolbox by default. To add the control to the Toolbox:
·Open Visual Studio
·Open or create a Web Application
or Project.
·Make sure the Toolbox tool window is visible.
·Right click on the Toolbox, in the Data group and click on the "Choose Items…" option.
·Wait for the "Choose Toolbox
Items" window to appear.
·Scroll down in the list of components under the ".NET Framework
Components" tab until you find
"EntityDataSource"
·Ensure the checkbox is marked
next to the EntityDataSource
component and click on the OK
button.
If you cannot see “EntityDataSource” in the list, you may need to add the assembly manually. To do that, click on the “Browse” button on the “Choose Toolbox Items” window. Then browse for the System.Web.Entity.dll under “C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5” or the equivalent folder in your configuration.
You need the Visual Studio Team System 2008 Database Edition GDR.
http://blogs.msdn.com/gertd/archive/2008/11/25/visual-studio-team-system-2008-database-edition-gdr-rtm.aspx
Related
In Visual Studio 2015 when I want to create MVC application there is no MVC option like below
Also when I open a .cshtml file look like below (not formatting, not coloring, not intellisense)
I tried below suggestions but doesn't resolve
Install web developer tools by Visual Studio setup modification
Change .net framework version from project screen
devenv.exe /resetuserdata
Delete %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache files
How can I solve ?
Try update web tools in visual studio 2015 - I had the same problem
Maybe you have selected the wrong file editor.
How to set other editor:
Click with your right mouse button on the View/HTML-page.
Click on: Open with...
Click on HTML editor (see image below)
Set the good editor as default:
Click on Set as Default (image below)
This problem can occur by clicking on an other editor and clicked by Set as Default.
I'm working on a few Umbraco projects that use MVC4. The MVC intellisense doesn't work within visual studio and I get lots of errors underlined. But when I run build the project, I don't get any errors, and when I run the site everything works fine.
I'm using Visual Studio 2013 and I created a new MVC4 site and compared the web.configs within the Views folder and they're identical.
I'm pretty sure it's not a code problem as my colleague is using the same code and he doesn't have this problem.
I've just done a fresh install of Visual Studio 2013.
Any ideas?
This could be a clue:
When I hover over #Htmlit tells me that my HtmlHelper is a System.Web.WebPages.Html.HtmlHelper instead of a System.Web.Mvc.HtmlHelper
The common one is to ensure that it is switched on (Visual Studio menu: Tools > Options > Text Editor > All Languages (or C# if you want it just for that language) > Tick "Auto list members", Untick "Hid advanced members", tick "Parameter information")
Once you've checked this, sometimes if you're using one HDD on Windows, because the disk has its bandwidth used up (particularly if using ReSharper then you need two or more drives ideally with the pagefile going to the non-OS drive I find). This is the case if the red lines do disappear after up to two minutes of not touching the IDE.
Finally check you project's references folder to make sure where the paths for your includes are coming from and that Visual Studio has permission to read from there. Permission issues cause all manner of problems I find, so when you launch VS, right click and choose "run as Administrator".
Hopefully one of these solves your problems. If not, then please update your question to explain how you create your project. Do you create an empty site or an MVC site? Do you then use Nuget to install Umbraco through the Package Manager Console like this?
Install-Package UmbracoCms
I just downloaded the new nopCommerce 3.2 MVC 4 application.
When I open the solution in Visual Studio,
I can't add a Controller : there is no "Controller...." option from the "Add" menu.
There is also no "Add View" when I right click inside of a Controller.
It seems to be treating all the projects in the solution as "Web Forms".
I think is has something to do with the last Windows update. It changed something.
I have the latest updates on Visual Studio.
Anyone have any idea how I can fix this?
Thanks
UPDATE : Solved. Need to install this update :
[ASP.NET and Web Tools 2013.1 for Visual Studio 2012][1] : [1]: http://blogs.msdn.com/b/webdev/archive/2013/11/18/announcing-release-of-asp-net-and-web-tools-2013-1-for-visual-studio-2012.aspx
You need to add {E3E379DF-F4C6-4180-9B81-6769533ABE47} as 'the first GUID' to in your project .csproj. You may not need to update your Visual Studio.
Refer to Context menu to Add Controller/View missing
Just two steps
1)Update your Visual studio 2013
2) unload your project from solution explorer then Reload it again.
I'm helping develop a MVC application in Visual Studio 2008 using the Entity Model Framework. I've gotten the code from the source control and I'm wanting to add some new Models from the edmx file. I right click and then click "Custom Tool" but then I get the following error.
Cannot find custom tool 'EntityModelCodeGenerator' on this system.
I have Visual Studio 2008, .NET 3.5 SP1, MVC 1.0.
What am I missing?
Thanks in advance.
You need VS2008 SP1.
In case you are using Visual Studio 2019:
Open the Visual Studio Installer by clicking menu Tools -> Get Tools and Features in Visual Studio
Click the tab Individual components and search for "entity",
Under the header SDKs, libraries, and frameworks you should see Entity Framework 6 tools
Click the checkbox and press the install button
I'd like to add an item into the Visual Studio 2008 context menu exactly how ASP.NET MVC projects have "Add View" or "Add Controller" items in the context menu. How would I accomplish this? Do I have to write an add-in?
Thanks,
Nathan
you and I are probably trying to do the same kind of thing.
So I will share whatever I have found while doing my own research.
Oleg Sych was kind enough to point me to the ASP.NET MVC dll Microsoft.VisualStudio.Web.Extensions.dll file that contains the MvcTextTemplateHost class.
Take a look at this DLL using the .NET Reflector tool.
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Microsoft.VisualStudio.Web.Extensions.dll
As you will see, the DLL contains WinForm classes such as MvcAddControllerDialog, MvcAddViewDialog, and other classes.
So I am pretty sure you can dig around in there to figure out how they did it.
Another place to look is definitely the Visual Studio Extensibility Developer Center.
In the [Learning Center Resources] section, click on [Custom Wizards] link (msdn.microsoft.com/en-us/vsx/dd631327.aspx --- sorry I can include ONE Hyperlink per post at the moment).
Wizards can be implemented in Visual
Studio to let users select from a tree
view of available values when they
open the Add New Project dialog box or
the Add New Item dialog box, or when
they right-click an item in Solution
Explorer.
So start from those two places. I will post some updates myself as well if I found out more.