Visual Studio Solution Unavailable (reload doesn't work)

随声附和 提交于 2019-12-20 10:26:33

问题


I am downloading a sample program for a barcode reader that I am using. Everytime I download the program and run it I am prompted with the error in my solution explorer (see image below).

Any suggestions? Everytime I right click and reload project, it reloads quickly and then reverts back to unavailable.

Suggestions?

EDIT: Here is the link to the project (scroll to the bottom, PC Sample Program)

http://www.barcodereader.com/download/connections.php

CS Project File Example

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SrEthernetSample",     
"SrEthernetSample\SrEthernetSample.csproj", "{7A2F3660-184B-4553-ADEF-3071D718A501}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
    Debug|Any CPU = Debug|Any CPU
    Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
    {7A2F3660-184B-4553-ADEF-3071D718A501}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    {7A2F3660-184B-4553-ADEF-3071D718A501}.Debug|Any CPU.Build.0 = Debug|Any CPU
    {7A2F3660-184B-4553-ADEF-3071D718A501}.Release|Any CPU.ActiveCfg = Release|Any CPU
    {7A2F3660-184B-4553-ADEF-3071D718A501}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
    HideSolutionNode = FALSE
EndGlobalSection
EndGlobal


回答1:


I faced this problem recently. The procedure below worked for my solution:

  1. Right click the project which is not loading, in VS Solution Explorer
  2. Click on Remove and confirm the removing process
  3. Right click the Solution and select Add > Existing Project
  4. Browse to the .csproj file in the project folder

If the above procedure does not work, then check the .NET targeted framework. May be Framework Incompatibility must be also one reason of the problem

Problem Solved :)




回答2:


I was having the same problem on VS 2017 CE. I opened a .sln and the solution was empty (unavailable).

This solved my problem:

  1. open the .sln file in VS
  2. right click on the project name (unavailable) in the solution explorer
  3. click on "install missing..." (i don't remember the exact text)



回答3:


Have you tried re-adding the project to the solution from within VS? That can fix an invalid path




回答4:


Right-clicking the solution and selecting (Open with VS 2013), seems to have fixed it.

Thanks all




回答5:


I had the same issue with VS 2013. Start Visual studio as administrator. Then open the project. Job done.




回答6:


The most probably reason of not loading the solution may be because of the version incompatibility of the version of vs you are using and the one by which the solution(you are trying to load) was built. For example - You may be using the VS 2013 And the solution was built using VS 2005.

The solution is creating new empty solution and adding all the files you downloaded to load it successfully.




回答7:


Had similar problem with causing solution explorer to indicate file "unavailable". Performed same fix as suggested above i.e. right clicked on file and selected reload. Got another message that in order run in Universal window had to install what was being offered which I did and everything working fine now.




回答8:


Happened to me when I attempted to load a solution that contained projects that were built with a newer version of Visual Studio 2010 and slightly newer .NET Framework. In other words even though both Visual Studios were 2010 SP1, the original had all of the most recent VS patches applied, where the one I was trying to open did not. Set Windows Update to make sure to check for updates for other Microsoft Products, and apply all Visual Studio patches and Framework updates making it current. Reopen.




回答9:


Right click on the project and select reload project. In my case , i am working on a xamarin forms application using visual studio 2015. The project was not loaded initially and 2-3 times i close my IDE and later i did the above trick. This works for me.




回答10:


Had the same issue after making some changes to .csproj. My .csproj was configured to use IIS which wan't installed. Make sure that your .csproj doesn't contain bad parameters/non-extisting references/urls.




回答11:


Sometimes Windows getting confused.

You should try:

Open C:/Users/[$username(change with yours)]/AppData/ directory.

And try to open Roaming folder.

If asks open as administrator, click Ok.




回答12:


I had fixed this issue by run visual studio as administrator mode




回答13:


Mine did the same thing. I thought it was my hard drive, but one time I tried to load the program it didn't work. I left clicked my project and reloaded it. It asked me to install updates. I installed them and tried it again. It didn't work off the bat. I reloaded the project again and it worked!!!




回答14:


I got this error when I open a project targeted on Windows 10.0.10240, I solved this by right click the project in the solution explorer and then choose Reload project.




回答15:


I remove project by right click on the project and click remove. Then right click on the solution and add existing project you removed. If this didn't work then before adding the existing project delete csproj.user file and then add.




回答16:


I had this problem after I was messing with NuGet packages. I was able to fix it by deleting the packages folder in my solution folder.




回答17:


I'm getting this in a Single Page Application Web project. It was because I had the project setup to use IIS (not express).

Visual Studio needs to be opened using the right click on Visual Studio and choose Run as Administrator.

Hope this helps someone to save time.




回答18:


First, create a blank solution with the same name as your project.

On the File menu, select New and then click Project.

In the Project types pane, select Other Project Types and then select Visual Studio Solutions.

In the Templates pane, select Blank Solution.

Enter a name for the project (same as failing to load solution).

To change the location of the solution directory, choose Browse and specify a new location.

Select Add to Source Control if you want to add the solution to a source control database or repository.

Click OK.

After creating an empty solution, move your project folder to the same folder as your solution's folder.

Add your project to the new solution.




回答19:


I had the same issue and fixed it by opening the project in Administrator mode in the latest version of VS 2017. The solution was originally in 2010, but when I opened it in 2017 and reloaded it the projects loaded correctly and no incorrect information was posted in the output window.




回答20:


if you opened the project in another version of Visual Studio and you see a message that the framework is different and closed the dialog will appear like this.

  • In the project solution, click right and then update.
  • Then the same window will appear again of version this framework and you can choose to use the recommended one if you do not want to download the framework version.
  • Close and open project again (optional)

You can see all the project folders again.



来源:https://stackoverflow.com/questions/25853604/visual-studio-solution-unavailable-reload-doesnt-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!