Visual Studio 2012: Can't add new item to project - visual-studio-2012

I am trying to add a new item (class) to my project but I when try to do this, I initially get this warning:
Then I keep getting this error saying that the class already exists (although it doesnt) whenever I try to add a new class
What should I do to fix this ?

Although the class isn't shown in Visual Studio as part of the project, the file still exists in the folder. In solution explorer, click the icon at the top to "Show All Files", then the file should appear in solution explorer, you can right click and select include in project.

I know this is an old thread just adding some info.
If this issue appears try to download the latest update for Visual Studio 2012, should be update 4.

Related

Android Studio project folders not showing

I am unable to see the folders that are physically existing, this is the case.
But in actual fact I have other folders as welll
So what can I do?
Above your the file directory view in Android Studio is a drop down which currently is most likely set to Android. Change it to Project and you should be able to see all your files.
I tried the all the approaches mentioned above but can't fix rather than fix it by a hardcore approach -
Step 1. Close your Android studio.
Step 2. Delete .gradle and .idea folder from your project directory.
Step 3. Open your project and you will see the files again.
go to View menu then click tool window then after click on project
view->toolwindow->project
it worked for me
for me doing the following works:
from menu go to: View--->tool windows ---> Project
then click the little gears icon (settings) you will see an option to change the empty middle packages. it looks like this:
disable "Hide Empty Middle Packages" under the Project View settings dropdown and then it should make everything show up.
If anyone ever does what I did maybe this will help:
Android Studio does not like it when module names begin with a number. I was learning from some tutorials and named the first module "1-name" and the next one "2-name". Setup was fine and it ran, but only the "Gradle" Scripts entry would show in the navigation window in "Android" mode.

visual studio 2010 not opening projects

i just installed visual studio 2010 and it is not opening any projects .I can make projects but i can not add any file in it and also it is not opening recent projects.
I am stuck here , kindly cooperate with me!
OK, sounds like the installaion got munged up.
first obvious questions: do you have any code that has actually been saved?
If "yes," copy that code to an alternate location, and use the simplest solution: use the Windows Control Panel to deinstall the MSVC instance and reinstall. If no code saved, just de-install and reinstall.
That's the obvious answer. You may also check the location for the project files, and the settings Visual Studios uses.
from the toolbar, click "tools".
From the drop-down list select "options"
Within the displayed list, scroll down to "projects and solutions"
expand that list (click on the little "+" box)
3 locations will be displayed.
Make sure you have write permission to all three locations
all the check boxes should be selected. Especially the one marked "save new projects when created"
click "OK" to accept the changes

How to choose which file to debug in Visual Studio 2012 prof

Kinda stupid question, but I've only been using this IDE for two days now. I havent found anything in google yet and I figured that once in a while you're entitled to a stupid question:
I have a project (or solution as Microsoft chose to call it) with two .cs-files. When I click on debug, it's alwys the same file that opens. How can I get VS to open the other .cs-file?
It sounds like you have multiple static Main methods in your project. If that's the case then you have to set the startup object to the object that you want to run.
Right-click on the project in the Solution Explorer and select
Properties (or select Project >> Projectname Properties from the
toolbar).
On the Application form, select the appropriate value
for Startup Object.

Class Files not visible in Visual Studio 2011

I ran Visual Studio 2012 today and tried to create a new solution with projects contained within.
The class source code for the boiler-plate Class1 file is not visible. If I create a new class, the source code is also not visible.
When I click on a class file, the tab file opens with the class name but there is no source code. Just a background color that was there before. If I try to open any class file in notepad then the source code is visible. The only thing I have done today is uninstall continuous tests after having a play with it. This happens on any new project I create or with existing projects.
Has anyone seen this before and do you have a solution? Ta very much.
*I cannot post images as I do not have enough reputation yet.
Ok, so problem solved. I had uninstalled Continuous Tests via the control panel and that was that. However, the plug-in was still visible from the Visual Studio add-in manager. I performed an uninstall from there and everything started working fine again. Source code is now visible. I can only put it down to the incorrect uninstall procedure. – DannyDuttser

Completely Delete Xcode project and all references?

Every time I try to delete my project, and create a new one under the previous name that i deleted, the icons and references are still there. I can't seem to fully delete it then start again with the same name. Any help is appreciated.
Using: Xcode 4
Close the project then delete it with Finder. Open Xcode's Organizer window (Cmd-Shift-2) and click the Projects tab. Find and delete the project from that list. Close the organizer than try creating your project again.
Also, file a bug report at http://bugreport.apple.com - this shouldn't be necessary but I have seen it before (in 4.0 betas).
A solution for Xcode 6:
(You can skip steps 2 and 4 if you just want Xcode to forget the project, but don't want to remove the actual project files.)
Go to Window ▸ Projects.
In the list on the left, secondary-click on the project you want to delete, and select "Reveal in Finder".
Go back to Xcode and secondary-click again on the project in the Projects sub-window, and this time select "Remove from Projects...". This will remove the project from Xcode, but won't delete the actual project files.
Go to the Finder window that opened in step 2 and move the project folder to trash.
Also, to get rid of the unwanted projects when you control-select on Xcode in docks:
1) Follow Joshua's instructions above
2) Quit xCode
3) Control-click on "show recents"
Now only the projects you have left will show up.
In Xcode 4.3, close the project, close Xcode, then use finder to delete the project folder. Next time you launch Xcode the project should be gone.

Resources