Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Visual Studio 2010 forgets open files in my project  (Read 3891 times)

0 Members and 1 Guest are viewing this topic.

Jove

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • http://www.jestofevekites.com/
Visual Studio 2010 forgets open files in my project
« on: April 07, 2012, 04:44:00 pm »
This has only just started happening today with one particular project and I was thinking someone might have experienced it before.

So I have some open files in VS, but when I close VS, reopen it and open that project again... no files are open.

Has it been corrupted in some way?

I noticed the exact question on Experts Exchange, but I'm not subscribed to that site.
{much better code}

texus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
    • TGUI
    • Email
Re: Visual Studio 2010 forgets open files in my project
« Reply #1 on: April 07, 2012, 05:25:27 pm »
Quote
I noticed the exact question on Experts Exchange, but I'm not subscribed to that site.
You don't have to subscribe. Just scroll down and you will find the responses.
TGUI: C++ SFML GUI

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10825
    • View Profile
    • development blog
    • Email
Re: Visual Studio 2010 forgets open files in my project
« Reply #2 on: April 07, 2012, 05:43:42 pm »
With 'no files are open' do you mean they aren't open in the editor or rather they don't exist in your project tree?

For the former you have to know that VS saves the current view (which files are open in the editor) in a file *.vcxproj.filters or *.vcxproj.user, I'm not sure which one, but if you delete this after you've closed VS, VS won't open the files in the editor.

For the later you have to ensure the project does get saved.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Jove

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • http://www.jestofevekites.com/
Re: Visual Studio 2010 forgets open files in my project
« Reply #3 on: April 07, 2012, 09:04:01 pm »
With 'no files are open' do you mean they aren't open in the editor or rather they don't exist in your project tree?

If I close VS with say, 3 source files open, when I re-launch VS and click on my project again, all of those open files are no longer there. They are of course present in the project tree and I can re-open them again.

It's just slightly irksome having to do that and I'm not sure why it has started to do that on this project.

Both the files you mentioned are present (not deleted).
{much better code}

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10825
    • View Profile
    • development blog
    • Email
Re: Visual Studio 2010 forgets open files in my project
« Reply #4 on: April 08, 2012, 12:41:07 am »
Okay so you have the same problem as described on the MSDN forum: Visual Studio 2010 does not load current files anymore

I'm not sure what fixed the problem then, but I think it was the following part:

Quote
Here is a clue. Recall that (see above) restoring VS fixed the problem temporarily but the problem comes back. Today I decided to restore the settings to the settings given by tools/settings/import and export settings/import selected environment settings/No, just import new settings, overwriting my current settings/Default Settings/Expert Settings.

If it doesn't fix the problem, read the whole thread fully on your own.
And in the worstcase there is always the possibility of reinstalling.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Jove

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • http://www.jestofevekites.com/
Re: Visual Studio 2010 forgets open files in my project
« Reply #5 on: April 08, 2012, 09:05:52 am »
Nice find eXpl0it3r :)

The solution didn't work for me, unfortuneately.  I'll wait a bit longer until the problem bugs me enough to re-install VS, who knows it might go away again. Something tells me I might learn to prefer it like this!  :o

Many thanks for your help.
{much better code}

 

anything