Project in VS2010 unavailable and can't reload - c#

I've been trying to load a project from a SourceGear Vault Client that has a plug-in for Visual Studio 2010. After selecting the solution file, the solution explorer populates with the associated projects but appends (unavailable) to the end of each project name.
The usual remedy is to reload each unavailable project but in doing so briefly reveals all files within each project but then VS quickly hides them and makes the project unavailable again.
So far, I have tried opening the code in VS2015, removing all related source control information from the .csproj and .sln files, and deleting the associated .suo file. Nothing has worked yet and I have exhausted all the known fixes.
Thanks for your help.

For clarity, I'm copying #PeterRitchie solution that worked for me, below.
You could try running Visual Studio in safe mode to see if a 3rd party plugin is to blame: devenv.exe /SafeMode – Peter Ritchie

Related

VS 2017 WinForms project quit recognizing user controls in same namespace

I have a Windows Forms Project that I have been working on for the last several months.
In this solution, I have about 10 custom user controls. A few days ago I was working on the common library that is shared across all of the forms in the application, and then when I went to open the form none of my controls were recognized.
I reverted my changes to the library and the issue persisted. Soon I got to the point where even opening the form crashed VS.
I can compile the solution fine, but I cannot use the visual editor.
None of my custom controls will show up anymore in the toolbox either. However, I can open them just fine.
After 2 days of looking online, I have tried the following, to no avail.
Dynamically reallocated my computer's memory (rebooted)
Close the solution and reopen it
Cleaned and rebuilt solution
Downloaded last release version from source control to a new directory and opened it.
Removing the controls from the project and readded them
Deleted the bin and obj folders
Deleted the .vs folder (stopped VS from crashing as soon as I opened the solution)
Followed this MSDN Article
Refreshed toolbox
Repaired the Visual Studio Installation
Uninstalled and Reinstalled Visual Studio
Copied the solution files from one directory to another
Reverted my project to an earlier commit from my source control solution
Removed all NuGet packages
Removed controls one by one
The only thing that has changed since the last time I was working on this project was that Visual Studio 2017 had recently installed a new update.
I am at a complete loss, I even resorted to going to page 4 on google.
UPDATE
This issue becomes intermittent when I run it on a fresh installation of VS within a Virtual Machine.
I had a separate DLL file that I was calling from my project for EMGU.CV. Once I removed that reference it worked fine. I created my own DLL wrapper for grabbing a Bitmap Image from the EMGU.CV library and the issue have since been resolved.
This makes sense as after I had deleted the NuGet packages, the DLL still remained, but once removed the designer resumed working.

Why can't I load this solution in Visual Studio after the VS re-installation?

I am not so into .NET (I came from Java) and I have the following problem. I started a .NET project in Visual Studio 2017 Community Edition.
Then I uninstalled Visual Studio (because I obtained the exception messages in Italian language, so reading here I found that maybe uninstalling VS and installing it again with only the English language avoiding the Italian one it can solve the problem).
Ok, I reinstalled it selecting only the English language pack.
The problem is that now I can't open again my project in fact doing:
File --> Open --> Project/Solution
then I select the folder of my project then I select the .sln file of this project.
The problem is that the project is not loaded and into the Solution Explorer; I get the following error message:
Unavailable, the project file was unloaded
Here is what I see:
Why is this? What could be the problem? How can I try to fix and correctly load my solution?
"Unavailable" like that usually means it literally cannot find the project file.
Make sure the csproj is on disk, and at the locations specified in the .sln file.
Try running VS19 as an admin. It worked for me.
A project may be unloaded from Visual Studio to allow you to edit the project file, or to allow something else to modify it (as I suspect is the case here). You can do this by right-clicking on the project and selecting 'Unload Project'
To re-load the project, right-click on it and select 'Reload Project'.
Of course, if the project file is missing or damaged (as mentioned in the other answer) this may not work. If this is the case, try and find the .csproj file or edit it manually to see if you can fix what's broken.
Running as an Admin worked for me. I get this issue everytime I update my Visual Studio.
It's late but I faced this and i had to load all projects(option from context menu on solution)
Try opening the project only from the folder. This is: (Menu) File → Open → Folder. And not directly from the solution, which is: (Menu) File → Open → Project/Solution.

Cannot Edit .cs file in Visual Studio

I am facing a problem in editing .cs files in my project, I recently installed visual studio 2013 on a fresh operating system Windows 8.1 x64.
It is not letting me edit the Project files i created here,
I have read articles and Stackoverflow threads but every one here is referring to Resharper tools that i have not installed on my machine. so besides resharper tools cache clearing method, please suggest other solutions. Thanks!
EDIT:
Issue was resolved. Since, it was the fresh installation, I forgot to register the product before starting on it, After I had registered the product and it allowed me to edit files!
Close Visual Studio.
Open the folder that contains your .cs file, select the file and open it's properties. Remove any checked "read-only" or similar property.
Reopen Visual Studio and edit your file.

Visual studio doesn't recognize namespace inside same project

The problem that i have is that when i open the solution that i am working on, in some files it will not recognize a namespace even thought that namespace is part of the same project and the solution builds fine. I could get rid of this problem by deleting my .suo file in the solution root folder but it is getting annoying to delete the .suo file every time i load the solution, plus i like the options that visual studio remembers the documents that i had opened when i closed the solution. I have heard that this may be caused by an extension but i disabled all the extensions and it still happens.
I am using visual studio ultimate 2013. I am working on a big solution that is connected with tfs and many peoples are working on it.
Does anybody have any idea why this is happening?
This question is old and I'm on a newer version of Visual Studio (2017), but having the same problem and my Google search led me to this question.
The solution to this in VS 2017 seems to be to delete the .vs folder that's in the same folder as the solution file. It's hidden, so you'll have to either show hidden files to see it or open a command prompt in that location and run the command
attrib -h .vs
Sometimes, if you have this problem and need a quick workaround, you can build .dll and reference that in project.

Visual studio doesn't support specific csproj file

I am getting this error when I try to open the solution file of my project. The solution is 2012 file (checked using notepad).
If I click on Ok, The solution opens up except for one csproject which does not load.
I get a migration report in UpgradeLog.htm file, with the following error for the project which failed to load. Could not figure out much from it.
Error:
The application which this project type is based on was not found.
Please try this link for further information:
http://go.microsoft.com/fwlink/?prd=12395&pver=11&sbp=ProjectTypeDeprecated&plcid=0x409&clcid=0x409&ar=MSDN&sar=ProjectCompatibility&o1=82b43b9b-a64c-4715-b499-d71e9ca2bd60
Does the upgrade report mean that it is a project from previous version of Visual studio? It does not open in Visual Studio 2010 either.
The error doesn't say that Visual Studio doesn't support .csproj files at all, it says it doesn't support a specific project type in that particular project file. This means this either isn't your project as you claim, or you are trying to build it on a different machine from the one used to create the project.
Visual Studio uses various elements in a .csproj file to determine its project type. See How do you tell the Visual Studio project type from an existing Visual Studio project and What is the significance of ProjectTypeGuids tag in the visual studio project file. It does this so it knows how to compile your project, what properties tabs to show, what context menu options should be available and so on.
Certain project types can cause this error. Usually they require some kind of SDK to be installed on the machine used to open or build the project.
You should search the web for the GUID mentioned in the error message you show (the value after o1=). You can also open the project file in a text editor and find the <ProjectTypeGuids> elements, which contains comma-separated project type GUIDs.
Then search the web for those GUIDs to find out which SDK or tool you need to install in order to be able to open or build the project.
If you paste the specific GUID from your error message in your favorite web search engine, you'll find Problem solved: Visual Studio / There is a missing project subtype. Subtype: '{82b43b9b-a64c-4715-b499-d71e9ca2bd60}' is unsupported by this installation., where it is mentioned you'll need to install the Visual Studio 2013 SDK. This means that in this case, your project is a Visual Studio 2013 extension.
This is what documentation is for. You should at least put a ReadMe.txt file in your project directory, explaining what the prerequisites for building a project are, especially when it won't open or build with Visual Studio out of the box.
I had this issue when I used Update 5 for VS 2013.
For me I had to click ok and read the next few steps, that popped up. I was initially clicking cancel.
On mine the project was missing Web Tools, so had to reinstall those and once done it was working.
Hope that helps someone.
This issue also appears when trying to import an ASP.Net project into Visual Studio 2015 Express for Desktop, and can be solved by simply downloading and installing Express 2015 for Web - or by using Visual Studio Community/Standard.
I am currently using VS 2017 v 15.7.4. This error came out of no where without any updates on my part. Usually when I have errors like this I just delete the .vs folder in my solution and that clears the problem. In this case that is what I did and the problem was fixed.
Close VS
Delete .vs folder
Load VS
Note: This was for a Xamarin based solution.
I solved this problem by downloading and installing (Microsoft Visual Studio Installer Projects). Close the project then install. After the installation, open your project then reload .csproj file
I had the same issue with VS 2017.
Eventually i solved it by just enable the SSIS in the following way:
1. In VS 2017 - Click on Extensions and Updates in the Tools menu.
Locate the Microsoft Integration Services Projects.
if you can't find it then you will have to install it first.
Click on the Enable button.
Close VS and start it again and SSIS projects are now available.
enter image description here
This (the error that states "Visual studio doesn't support specific csproj file") also occurs when the .vs folder is removed; however, closing and reopening Visual Studio will resolve the error.

Categories