Delete references to nonexistent databases in Visual Studio 2010 - visual-studio-2010

I'm trying to delete references to two nonexistent .sdf databases listed in my solution but nothing happens when I select delete, exclude from project, or detach. I think I made the mistake of deleting the databases in Explorer instead of from VS. Here is what it looks like.

Edit the csproj file in Notepad...

Related

Visual Studio 2013 - Rename SSIS Solution (Package, object files, everything)

I am using Visual Studio 2013 Data Tools and I have an existing built solution that I want to duplicate and rename.
When copying the new solution over, let's call it 'X' and going to Solution Explorer and renaming the solution to 'Y' I am able to rename it but all child elements (the packages, objects) keep the same name 'X'.
I tried renaming the package.dtsx and the solution to 'Y' but then it broke when trying to reload the solution.
How can I rename everything?
It works for me.
I rename the solution, the project and a package. Save All and then close the solution.
At this point, I cannot reopen the previous solution because X.sln/X.dtproj no longer exists through the rename. What gets confusing is that the rename does not rename folders (thus the Y.sln is in the X folder and all the SSIS artifacts remain in the X subfolder).

Why is my .tfignore not ignoring *.vssscc?

I'm running VS Enterprise 2015. This infernal thing keeps wanting to add my solution's .vssscc file to version control. My .tfignore has this line:
*.vssscc
The other items in .tfignore are working fine, but for some reason this one is not. There are no other .tfignore files in the directory tree. Surely I'm overlooking something, but I'm pulling what's left of my hair out trying to figure out what. Any suggestions?
*.vssscc stands for Visual Studio Solution Source Control File
When a solution is added to source control, a corresponding .vssscc file is created. The text file contains connection information and an exclusion file list, similar to the project hint file. This file is temporary and exists only in the source control database.
As a rule of thumb, we'd recommend letting Visual Studio handle those files. It'll add to source control the files it needs and leave out those not needed.
.vssscc files also manage the solution bindings, so better to have them controlled (by VS) .
Also, visual studio can have problems with the source control bindings if the files it needs are not under source control.

Error MSB3541: Files has invalid value

I just deployed an asp.net mvc 3 web application to AppHarbor but it failed:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3932,5): error MSB3541: Files has invalid value "<<<<<<< HEAD". Illegal characters in path. [D:\temp\q5cmde4m.uk1\input\MyProject\MyProject.csproj]
This happened after I opened the project with Visual Studio 2012 (the application was created with VS2010).
Try to search the entire solution for the value and remove it from where it occurs, and then delete the obj folder from your project. When you build again it should work.
The obj folders are hidden in Visual Studio. You can see them with a file explorer.
Delete the obj folder within your project and it will fix the issue.
though it is very old question but I would like to add an answer here.
when you work with multiple developer in visual studio you should git ignore obj folder, .suo,.sln etc which is only holding the visual studio information user based.
refer to this SO question
Ok this might be helpful to someone else.
in my case my .vbproj file and some form files somehow had the last lines of its code truncated, I fixed this by restoring this missing part of the code (around the last 10 lines were missing) from a previous backup of the same project.
The other files got corrupted in a simillar way and were fixed by restoring the missing parts of the files from the backed up ones on a text editor (notepad)
After getting this the project loaded without issue.
Delete both obj and bin folder it will fix the issue, which in my cas its been done and it was causing when create pull request from remote repository !!
Yes, it is about merging conflicts. Usually Visual Studio highlights most of the errors with file paths. However, it does miss some files.
All you have to do is REMOVE the "obj" an "bin" folder from your solution.
If you are in Visual Studio, you have to select "Show All/Hidden files" as "obj" folder is hidden, and then delete it.
You can also delete it by going to your directory where your project is stored e.g C:/Users/username/source/repos/project/ (can be different in your case).

VS corrupted .sln file?

When I try to open my .sln file, Visual Studio quits on me. I can open it by opening up TFS, getting a specific version, choosing the latest version, forcing an overrwrite, opening up the .sln file, and then ignoring an 'incompatible doc message".
However, I would like to know what's wrong and how it can be fixed, in case some day I can't do this.
How can this be fixed?
I would think this is more likely to be the .suo (which is a hidden file). These are know to corrupt (and this has been true since at least VC++ V6). Deleting it will clear all sorts of odd/erroneous behaviour in VS.
(The .suo holds local settings: which files are open and layout, breakpoints, bookmarks, ... only: nothing that really matters to the solution or projects.)
For Visual Studio 2015 and 2017: rather than being in the same location as the solution (.sln) file, it is now held in a, hidden, folder called .vs in the folder containing the solution file.
In Visual Studio 2022, the .suo is in \.vs\MySolution\v17\
Have you tried creating a new sln and importing all the projs? if it doesn't solve the corruption, it may point to a project with a problem.
Get copies of both versions of the file and use your favorite dif tool to see what's changed. sln files are xml (i.e. human readable), so it isn't too hard to figure out what happened.
Difficult to tell. A sln file is quite simple structured, if you open it with a text editor,
check is everything looks all right to you.
Seems to me that the sln file could be in a conflicted state.

Delete files non-project files from SVN in Visual Studio

I am using AnkhSVN in Visual Studio.
How can I delete all files from SVN as I delete them from Visual Studio (files ARE NOT included in projects).
Ideally I would like to do:
Press "Show All Files" In Visual Studio (shows the files not included in projects).
Delete selected files (the ones not included in projects) from VS Solution Explorer.
Commit (Deletes the files in SVN)
But this is not possible and I have to delete files directly from Repository OR delete missing files from TortoiseSVN.
Cheers,
Dmitriy.
Your scenario should work. What's wrong with deleting missing files using TortoiseSVN?
TortoisSVN commit http://img21.imageshack.us/img21/5603/tortoisesvncommit.png
The easiest way to do it is using explorer. You can add a column to explorer called SVN Status. You can then sort the file view using that and delete the ones that you don't want..
(source: tigris.org)
I do not think AnkhSVN checks for files that are not in your project. Why don't you directly delete them in explorer using TortoiseSVN?
I either use a RapidSVN for that task, or add to VS Project (Add - Existing file) then delete, as Daniel says.

Resources