Project Settings disappeared in Visual Studio 2013 - visual-studio-2013

Today I was add a new SETTING into the VS2013 Project´s Properties page (at Design Mode) and I see that ALL settings had disapeared! My Settings page is clean (the settings called through "my.settings.xxxx").
But, when I run the application in DEBUG or RELEASE mode the system functions normally - and I reference a lot of "my.settings" in there!
How can I solve it? I´m affraid of SYNCHRONIZE and clean the DEBUG/RELEASE files too!
Help me! Thanks!

I found a solution!
1- Go to Project Solution Explorer.
2- Click in the symbol to SHOW ALL FILES
3- At the My Project folder, simply delete the Settings file.
4- Go to the Project´s Properties page and select Settings.
5- In the middle of the screen will appear a message to Import Settings.
6- Done! VS had imported all the project settings (from where, I don´t know exactly).

Related

Visual Studio not running / debugging code anymore

I am using Visual Studio 2019 with .NET extension .
Everything was working fine, i.e all my C# codes and projects were executing fine on F5 when suddenly the options went dead . I am farely new to Visual Studio and cant seem to get my head around this problem . If anyone can suggest anything , it would be of great help.
Basically,
Go to project properties -> Build Tab. Then click Advanced button on the right bottom corner of the pane. Change "Debug Info:" to "full" and click OK.
If it is like that, then change it to "full" like below:
Visual Studio not running / debugging code anymore
Please try these suggestions:
Suggestions
unload your current project by right-click on your project-->Unload your project and then close VS Instance, enter your project path, delete .vs hidden folder, bin, obj folder and then restart your project again.
Then Upload the project, right-click on the project-->set as startup project to test.
reset VS settings by Tools-->Import and Export Settings-->Reset all settings
disable any other third party extensions under Extensions-->Manage Extensions
restart your VS and then rebuild your project
try to create a new empty default project and then test again whether the issue persists, if so, you should try to do a repair in VS Installer, if not, I think the issue is related to your project itself.
same issue in VisualStudio Code, with Dotnet5 API angular MVC application
for me it was the generated main.js file in wwwroot folder. deleted the folder and ran ng build --prod again and got a new one with current code.

Configuration With Same Name Already Exists

I have a solution with 10+ projects (VS2010 SP1). I have the following configurations defined in the solution:
Debug
Debug-QA
Release-UAT
Release-Production
This allows me to easily setup specific settings for each deployment scenario. However, for some reason I can't get things setup as I'd like. Please see this screenshot:
Notice the highlighted projects/configurations. I am unable to create a "Debug-QA" configuration for these projects (by selecting <New> in the cell for that particular project). When I try to add a new "Debug-QA" configuration to the DataUtility project, for instance, Visual Studio yells at me:
This configuration could not be created because a solution configuration of the same name already exists.
I know it does! I'm trying to add the configuration to the project! What am I missing here? I want all projects to have all 5 configuration. I have the same problem when trying to match up (create) platforms (for instance, adding an "Any CPU" platform to the DataUtility project).
Make sure you're using the drop down list from the grid (not the one at the top of the dialog), and do not check the "Create new solution configurations" checkbox when adding your new project configuration.
Here's a workaround if already checked the Create new solution configurations checkbox:
Open Explorer and navigate to the location of the solution for the project that is missing platforms.
Move the solution .sln file to a temorary location where Visual Studio won't locate it.
Open the .csproj file for the project that is missing platforms.
Click the Solutions Platform dropdown.
Click Configuration Manager...
In the table, Click the dropdown in the Platform column for the project and select , to add a new platform.
Click OK.
Repeat adding new platforms as needed.
Save the project.
Return the previously moved solution file back to where it was.
Reopen the combined project solution.
source: https://developercommunity.visualstudio.com/content/problem/972/adding-a-platform-when-one-with-the-same-name-alre.html
The above solution didn't quite work, but I did find a solution on a forum that worked. Described below is to set the builds to x64 for each project that was set to "Any CPU", but the steps would also work for x86.
Open the main solution. Unload each project with a conflict (not
remove).
Leave the solution open.
In Explorer, navigate to the
project folders and open the csproj file in Visual Studio.
In this
screwed up project, navigate to Build->Configuration Manager.
If
needed, "Add New" and set it to x64 and save.
Right-click the
project and set the build architecture to the new x64.
Save this,
but when you close the project in VS, do not save to the solution.
That's unnecessary.
Repeat for each project with a misaligned architecture.
Finally, in the original solution with all the offending projects,
reload each project.
Open the Build->Configuration Manager for the solution. Then, one by
one, reset "Any CPU" to the desired platform, in my case x64.
Save the changes for the solution and rebuild all. You should be OK,
now.

Visual Studio C++ - Resource View blank?

I have a Visual Studio 2010 C++ project which was copied from another visual studio project and renamed. The project compiles fine and works. However recently, I went to the Resource View to edit some dialogs and the window is completely empty. I can't remember if I went there since I copied the project or not:
Any ideas on how I can get this back? I'm thinking there is some cache somewhere?
UPDATE
I should add that this solution is a multi-project solution and normally in the resource view even if a given project does not have resource files you will still see a "folder" for the project in the resource view tree view. There are no "folders" for any of the projects in the solution.
I should also add that other solutions that I open in visual studio will display the resource view fine.
It might be because your Browsing/Navigation Database is disabled.
Check the current setting under:
Tools -> Options -> Text Editor -> C++ -> Advanced. "Disable Database" should be false.
This is a bug as far as I know, and they said they are working on the problem.
More Info:
http://connect.microsoft.com/VisualStudio/feedback/details/535971/solution-resource-view-empty-when-option-disable-database-c-is-set-to-true
I had similar problem that I solved with reloading projects in the solution (unload projects and then reload all projects).
I had the same issue today, and my class browser was also empty. I fixed it by deleting the ipch directory and the sdf file from the solution's directory. Visual Studio reinitialized the intellisense databases, and the view were back.
Try to find the .rc file in your Solution Explorer, then double-click it which should reload it in the Resource View.
Also check to make sure the .vcxproj file is referencing the correct .rc file (open it up in a text editor). Perhaps you renamed it or something.
Woohoo! Figured it out. Since each project normally has a entry on the Resource View tab regardless of whether it has resources or not, I decided to add a new temp project to my solution to see how visual studio would handle that. So I right clicked on my solution and clicked Add->New project.. and added a new Win32 project with the setting of static library and MFC checked. Once I added the project and went to the resource view all my other projects were back! Then I just deleted the temp project I created.
I'm not sure what it did, but it must have forced visual studio to rebuild some internal cache or something.
I've had the same problem: Resource View was totally blank for a solution with several projects.
I had moved the entire file heirarchy's top directory to a different place (different disk mount too) which probably had something to do with it.
After I finally got all the paths changed (files in projects, the the projects' include and lib paths and so on) and started back on developing, I noted the Resource View was empty, and clicking on the .rc file didn't make anything visible.
But, saving the solution and restarting did the trick.
Simply closing & re-opening the Solution worked for me (VS 2017).
This can also be caused when forcing VS2010 to write browsing information to a location which doesn't exist. For example when settings are exported on another machine and then imported on a new machine which doesn't have this path.
In the following sample, I was forcing browsing information to be written to my local temp folder. When I imported my settings from an old computer, the path was pointing to a non-existent path.

copying the visual studio settings for one project to another

I have a visual studio 2010 project done in VB.net and i have around 45 variables in the application settings. The one you set in the properties.settings. Now i m having a similar project and i wanna copy the settings variables to this project. Not sure how to proceed with this.
what i did is tried to copy the auto generated code for the settings into that project and it didnt work out well. I am not even sure how to google this out and tried the following.
copying application settings from one project to another in visual studio
moving application settings between visual studio projects
Both of this didnt get what i wanted and am actually out of clue on what to search for this.
So is there a way to directly copy the settings from one project to another project.
All I did was grab the physical Settings.Designer.vb and Settings.settings files found in the "My Project" folder of your applicaton (assuming it's a windows App and not web) and copied/replaced the existing settings files in the new project.
Did a rebuild of new project and errors kicked back but that was just the desinger code referencing the old project name. Corrected by replacing the old project name with the new one and voila, worked.
HTH
Dave

Start Debugging F5 doesn't automatically build

I used to have the environment optimized for c# but recently I have been doing a mostly c++ work. So after a format, I selected c++ instead. Once in a while I still do some c#/xna stuff so I installed xna as well. Problem is that visual studio does not behave anything like I remember it behaving when I had the environment optimized for c#. The run button no longer compiles the solution. Hell, compiling the solution does nearly nothing... I need to recompile for my changes to take effect. What the hell?
I have tried Tools > Import and Export Settings > Reset all settings, reinstalling xna and visual studio and still the F5 does not compile.
edit: Turns out that the projects were set to not compile under the configuration options. I never set this though. I found a forum with several people who had the same issue: http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/8657c07a-da08-4a9f-9558-0c9d93c94ce2/
If you have a number of configurations, it's possible that the currently selected configuration doesn't have the project (you want to auto-build) in it.
For example.
The default configurations are DEBUG and RELEASE and all the projects (in the solution) are ticked against this.
But if you've manually un-ticked a project against one of these configurations OR you've manually added a new project and then un-ticked that project in the configuration .. Visual Studio won't compile those un-ticked projects.
So double check your configuration. (Right Click on the Solution name => Configuration Manager).
I hope this will fix your problem: Start debugging F5 does not build automatically, Visual Studio.
First check what should happen when you run a project. To do this, open Tools > Options, Projects and Solutions, Build and Run, and check that you have selected for the On Run, when projects are out of date option:
Make sure you have selected Always Build...
To change you settings:
Tools -> Import and Export Settings
Choose: Import selected environment settings
Save you settings if you want
You are then presented with a set of default settings to choose from (General, C++, C#)

Resources