I am new to Visual Studio and the .NET framework. I create an ASP.NET Web API project and I a menu panel as shown in the screenshot, where I can easily add the controller class and other stuff:
but when I close Visual Studio and the reload the project, then I can not see the menu like in above, rather then I see the menu as shown below. I am confused - is this a setup problem or not?
Is there any solution for this problem?
As marc_s said, in the second screenshot, you entered "Solution Explorer - Folder View" by mistake.
There is a difference between the file page and the solution interface.
Click this button (Switch between solutions and available views), you can switch between different views.
Related
I'm trying to port my C# Windows Form project from .csproj to CSharp CMake CMakeLists.txt. I successfully made CMakeLists.txt similar to here. The only problem is when the project opened with CMakeLists.txt, the Form Designer is not available (as shown below). Is it any way to fix the problem?
csproj:
CMakeLists.txt:
Your second image (from your CMake-generated project) is in a different View than the first image. The first image is the Solution View, in which the Form1.cs and Form1.Designer.cs files are grouped to show that the Form Designer is available. The CMake (second) image is showing the Folder View, which does not group the two files together.
CMake does not control what view you see in Visual Studio, your Visual Studio IDE controls this. The toolbar across the top of Solution Explorer has a button (called "Switch Views") to switch from a solution view to a folder view (and vice versa). You can use this to switch your perspective back to Solution View so the Form Designer is shown.
Note: This button has a bug in Visual Studio 2019 (see here), so switching back to Solution View may not work as expected. I've worked around this issue by simply closing and re-opening the Solution.
When you open the solution file (via File > Open > Project/Solution...), your default View should be the Solution View, and the Form Designers for your forms sources should be accessible. If you open the solution by doing File > Open > CMake..., your default View will be Folder View, which is not what you want.
I'm new with nomad extension for visual studio (develop mobile applications based on phonegap project). As you can see at this link http://www.microsoft.com/en-GB/developers/articles/building-hybrid-cross-platform-apps-an-introduction-to-nomad-for-visual-studio/ at some point the example add new item of type jQuery UI Designer Page to the project. In my Visual Studio I can't see this kind of file. How can I add this kind of file?
When I try to Add --> new item (in Visual Studio project) I can see only css, javascript and html files.
I've tried everything.
Help me please.
The Nomad team answered me in a email about this question:
Hi,
We removed that feature when we moved to be backed by PhoneGap Build.
Thanks.
I followed the steps as mentioned in this article of msdn:
create new custom project template categories
But it doesn't create my custom category but shows the custom project template under root category i.e. Visual C#.
Any one who might have successfully created a sub-category under "Visual C#" in New Project dialog?
I want something like this, where "My Own Templates" should be on left pane and should show all the custom templates under it on right pane:
Any help would be much appreciated.
I tried this before but didn't get it working. But now it works like a charm. Here is the link that really is straight forward and easy to follow:
VS Custom Templates
I missed this [I guess] Uncheck the option to "Automatically import the template into Visual Studio" for better control of how the template will appear in the Visual Studio. as mentioned in the second page of the article.
I'm creating a setup project for my application with a link to the application
and another link for uninstalling the application.
For some reason the "Uninstall" link always shows on top and it seems that there is no way of changing that.
How can I rearrange the order of the files in the start menu ?
I am using Visual Studio 2008 SP1 (version 9.0.30729.1). My problem is that the only reporting-related toolbox items I see are 3 "Textbox" controls. Where are the other stuff? Do I need to add a reference to a different assembly?
Here are the steps I take:
1) Open Visual Studio
2) Add new project --> "Reports Application"
3) Open Report1.rdlc
4) Open the toolbox and no controls are available (except the repeating 3 Textbox controls)
Thanks for your help.
My good sense tells me that something got corrupted in your installation.
Here's what I would try before attempting a repair (this happened recently):
I fixed this by going into my profile as follows:
C:\Documents and Settings\MYUSERNAME\Local Settings\Application Data\Microsoft\VisualStudio\8.0\ProjectAssemblies
There are four HIDDEN files in there that make up what is apparently the toolbox cache. If you erase them, they will be re-generated and #13119 will go back to General. As I said, these files appear to be hidden so configure the file explorer accordingly.
Second problem: my User controls disappeared from the toolbox.
I was able to fix it by going into the VS menus:
Visual Studio "Tools" menu
"Options" submenu
"Windows Form Designer" tab
"General" tab
Set "AutoToolboxPopulate" to "True"
My problem was The Report Items Toolbox was showing multiple textboxes instead of valid Report controls.
Solution:
1) Close the visual studio 2005.
2) delete the folders under C:\Documents and Settings\\Local Settings\application Data\microsoft\visualStudio\
3) Open your visual studio 2005 project. It should work
Here is a book reference available through Google Books: http://books.google.com/books?id=b9j0MKXhnygC&pg=PA419&lpg=PA419&dq=vs+2008+Reports+Application+toolbox&source=web&ots=awTO1ibUZH&sig=7iHAUSCZ46_uAjC5lAfLeiXZt_Q&hl=en&sa=X&oi=book_result&resnum=7&ct=result#PPA433,M1
I also did the same (on same VS2008 SP1) and had the exact same items available.
A complete reinstall took care of it.
Thank you!!
This fixed my report designer toolbox. My "report items" group was only showing three textbox items.
I am on Vista though, so the folder was..
C:\Users\Fox\AppData\Local\Microsoft\VisualStudio
I just renamed this and next time VS started it recreated the toolbox and all the items were in place.
Before doing this I had tried to reset the toolbox with a "right-click|reset toolbox" in VS, but it didn't fix the problem, only removing this folder did it.