I'm doing these steps:
Create new vs2010 C# console application
Project menu -> Add New Item
select Ado.NET Entity Data Model -> click Add
Entity Data Model wizard window opened.
Select Generate From database -> Click Next
The next window appears for less than 1 second and it gets closed automatically.
I tried to reset vs2010 setting but no good news, the problem still exist.
I also tried it with ASP.NET Website.
What is the problem?
I had a similar problem and finally fixed it by deleting
c:\users\myusername\appdata\roaming\microsoft\visualstudio\10.0\SeverExplorer\DefaultView.SEView.
I can resolved this fix:
in the route C:\Users\username\AppData\Roaming\Microsoft\VisualStudio\11.0\ServerExplorer
delete the file "DefaultView.SEView"
press keys window + R-> and write devenv.exe /ResetSettings
And Open Visual Studio
Related
I saved my project, but now I can't open it up in design view where you see all the buttons and stuff. Visual Studio 2012
Anyone know how?
You can double click directly on the .cs file representing your form in the Solution Explorer :
This will open Form1.cs [Design], which contains the drag&drop controls.
If you are directly in the code behind (The file named Form1.cs, without "[Design]"), you can press Shift + F7 (or only F7 depending on the project type) instead to open it.
From the design view, you can switch back to the Code Behind by pressing F7.
My problem, it showed an error called "The class Form1 can be designed, but is not the first class in the file. Visual Studio requires that designers use the first class in the file. Move the class code so that it is the first class in the file and try loading the designer again. ". So I moved the Form class to the first one and it worked. :)
From the Solution Explorer window select your form, right-click, click on View Designer. Voila! The form should display.
Click on the form in the Solution Explorer
Just Shift+f7 and Design view will open
OR
Right-click on your form file and Click on View Designer
I had this problem in Visual Studio 2019 today. When I right-clicked a form or user control in Solution Explorer, there was no "View Designer Shift-F7" option. The "View Code F7" option was there, but not the Shift-F7 option. I noticed that I could view and work on the design view for two forms, that I opened before the problem surfaced. But Visual Studio would not let me open more design views.
My solution is: In another project, in the same solution, I created a new Windows Form. Now the "View Designer Shift-F7" is visible and working for all forms and user controls, in all projects in my solution. I deleted the latest new form, and Design View still works. This solved the problem for me.
#Pierre's answer is not always applicable. When I messed up the files in the solution folder a bit (maybe add some code from outside which conflicts the GUI, I don't know precisely), then the Design View does not show up. In fact, my "Solution Explorer" is actually "Solution Explorer - Folder View". There is no object hierachy shown in the Solution Explorer, but just a file & folder view.
I am using VS2012 Premium. I do not have a menu item to launch the Data Sources window. According to MSDN I should have a menu item:
On the menu bar, choose View, Other Windows, Data Sources (or choose the Shift+Alt+D keys).
but I have no such item.
The shortcut doesn't work either. I have reset the shortcut from Shift+Alt+D (which drops down the Debug menu item) to something else but this still does not display the window.
I have created a new VS solution which is not an MVC website (a WCF application) to address this suggestion that the option is hidden in MVC sites.
I have also run devenv /ResetSettings
as suggested on this MSDN forum posting.
Has anyone any ideas how I can launch the Data Sources window?
Thanks.
It depends on the project type you choose. For instance, a WCF Service Application project will not show you this option, while WCF Service Library project will show you the option.
The issue I had was that my Report Data pane went missing when working with RDLC files.
Click somewhere on your main design working area (in my case the design area for the RDLC I am updating).
Then go to the View menu -> Report Data.
The Data Sources and DataSets are now available in the Report Data pane.
Another possible solution for some:
I've noticed that the View > Other Windows > Data Sources option is not available when the active file in the main window is a .sql query file (I'm sure this would be the case for other types of files as well).
In this case, simply selecting a file associated with the solution will make the View > Other Windows > Data Sources option available again.
During openning my project in Visual Studio 2010 this issue came out.
So, how can I fix it? Can't open DataSet and contiu any other work in VS. Please, tell me what can be th ereason?
For me, the error disappeared after disabling Source Code Control integration. To disable SCC, do like this:
In the IDE Go to Tools->Options->Source Control->Plug-in Selection dialog page.
Select None from the drop-down box labeled Current Source Control plug-in:.
I'm looking for a way to have the current TFS workspace displayed in Visual Studio.
It's visible when I open the Source Control Explorer (or Pending Changes), but I want it to be visible too when I'm editing code. So for example showing it in the toolbar, or in the window titlebar, or in the bottom status bar, doesn't matter as long as I can see it with a single glance.
Any tips?
You can use the "Rename Visual Studio Window Title" extension https://visualstudiogallery.msdn.microsoft.com/f3f23845-5b1e-4811-882f-60b7181fa6d6 and use the [workspaceName] attribute. Hope it helps.
There is a add on that shows this info, you can dock it somewhere :
http://visualstudiogallery.msdn.microsoft.com/384a4952-6b6f-4391-bc59-1b2bd38e1baf
There are a couple of options to do this without an additional plugin.
Use the Properties view
Select the solution, a project, or any file in Solution Explorer
Press F4 to go to the Properties view. The full path to your solution will be shown.
Note that right-clicking the solution or project and selecting Properties (Alt-Enter) will take you to the Properties Pages which doesn't have the information you want.
Use the Source Control Explorer
Opening Source Control Explorer will show you the last accessed workspace. Most of the time, this will be the workspace for the solution you are working on. However, if you have had two Visual Studio sessions open for different workspaces, I have seen the first VS session switch to the workspace of the other VS session.
Use the Pending Changes view
Pending Changes will show the workspace just under the header for the view.
You can get to Pending Changes through:
Team Explorer => Pending Changes
View => Other Windows => Pending Changes
Hover the mouse over an open file, the tooltip will show the full path to the file.
I started reading the Pro Business Applications with Silverlight 4 and I'm having the following problem here with my visual studio 2010
I can't find the data sources tab page as mentioned here:
When you open the Data Sources window in Visual Studio, you will
find that a data source has
already been created for each domain context created by RIA Services
in the Silverlight project, with the entities that they expose beneath
them (as shown in Figure 6-2). Dragging and dropping one of these onto
your design surface will create both a DomainDataSource control and a
bound control to display the data.
I know that the Data Sources window and Data menu are intentionally disabled in Websites and Web Application Projects but my project is a Silverlight business application.
Can someone tell where i can find this window or what should i do to create the DomainDataSource control and the bound control?
Thanks!
If you have MainWindow.xaml open, the DataSources tab is normally right next to the Toolbox tab.
If it does not appear there, go to View -> Toolbars, and turn on the Data Design toolbar. Click the Show Data Sources button.
Or just use Shift + Alt + D
When I create an empty project, I am able to access Data Sources as follows:
Select a project in the solution explorer. (Not a solution!)
The 'Data' menu on the menu bar now allows you to access the data sources for this project, along with other Data Source related options.
OK, i got a workaround. For some reason, it only shows up if you do a Silverlight project. So I started a blank solution, added a silverlight project. Bingo - there is the Data Source window. Now, add whatever project you really need.
You may need to build the project that contains your objects before the objects appear in the tree view.
Pablo
You can find this toolbar option in View -> Other Windows -> Data Sources or use
Shift + Alt + D