“The project file was unloaded” when moving VS2010 project to another server

前端 未结 6 1316
小鲜肉
小鲜肉 2021-01-01 11:40

I have moved a Visual Studio 2010 project to another server by copying and pasting the folder contents into another folder on a different server.

My understand was t

相关标签:
6条回答
  • 2021-01-01 12:10

    I experienced the same problem today. Here is what I did and worked for me :

    1. Open the .sln file.
    2. Right click on the project folder and click Reload project.
    3. You will see the projects and folders that you originally had.
    4. You will see .xml publish file . Double click it .. You should be good to go now.
    0 讨论(0)
  • 2021-01-01 12:11

    Found this answer and it worked for me.

    Note:Sometimes, the path in File path property is grayed out and you are unable to get to the Browse button. In this case try deleting .suo files. Don’t worry, these files gets recreated when you rebuild the solution / project.

    http://www.howtosolutions.net/2013/02/solving-project-file-error-could-not-find-part-of-the-path-with-visual-studio/

    0 讨论(0)
  • 2021-01-01 12:20

    I had the same problem. I fix path to .csproj files in the .sln file with a text editor and now it is all ok.

    0 讨论(0)
  • 2021-01-01 12:22

    In my case, I saw similar message (Projected was unloaded) and all I had to do was simply re-launching Visual Studio (2017) in Admin mode and the problem went away. Per one of the above answers, I tried to right-click and selected Reload but got a warning that, due to required access to IIS on the machine, I had to launch VS in Admin mode.

    HTH

    0 讨论(0)
  • 2021-01-01 12:23

    I had this problem today and it took me a while to figure out what was going on.

    Your problem is most likely that your solution was originally made with a Visual Studio configuration that contained support for certain project types (such as "Windows Service" or some other exotic project type). The Visual Studio configuration you are using to import your solution does not have that support. In other words,

    • there is probably nothing wrong with your solution,
    • there is probably nothing wrong with your project,
    • there is probably nothing wrong with any of the files (as you mentioned they do display briefly, giving you a second of hope)

    Just run the installer on the new Visual Studio and make sure the support is enabled for all the project types you need and try again.

    0 讨论(0)
  • 2021-01-01 12:27

    Open Visual Studio as Administrator

    0 讨论(0)
提交回复
热议问题