Development on Multiple Computers

  • Thread starter Thread starter ljlevend2
  • Start date Start date
L

ljlevend2

I have a situation where I need to develop on two different computers. My
solution is to simply save the project on a USB flash drive. Everything
seems to work, except that the files that were opened in Visual Studio are
not restored if I switch computers. If I open the solution on the same
computer then Visual Studio will automatically open all of the files that
were opened when closed the solution, but this does not happen when I switch
computers.

Is there any way to have Visual Studio restore the previously opened files?
For example, does Visual Studio save this information to a file that I could
copy to my flash drive?

Thanks for any help.
Lance
 
Hi sloan,

That is an interesting idea, but I would also like to investigate the idea
of copying the file that VS uses to know which files to open when an existing
solution is opened. Does anybody know where this file is located (or if it
exists)?

Thanks,
Lance
 
Hi Lance,

As for the VS solution, the solution files only contains project reference
info. For those files of solution(and its contained projects), they're
recorded in the project file (csproj or vbproj). You can open the project
file in text editor(xml format). All the items in project will be described
in the " <ItemGroup>" list. Have you checked it to see whether the copied
project file contains all the item?

Best regards,

Steven Cheng
Microsoft MSDN Online Support Lead

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
Hi Steven,

Thank you for your reply and sorry for taking so long to respond. I save
the solution directly to the USB flash drive so there was never a need to
copy the project files. Also, I make sure that the USB flash drive is the
same letter (e.g., D:\) on both computers.

You can easily reproduce my issue by creating a new solution in VS, create
some new files (e.g., classes, forms, etc.) within the solution and then save
the solution to a USB flash drive (and keep the files opened of course).
Now, if you open the solution on the same computer you will notice that the
files are reopened. But, if you take the flash drive to another computer and
open the solution then files are not reopened.

So, I guess the trick is to find out where VS stores the information about
which files are opened and then determine whether or not that information can
be transferred to by USB drive and restored at the other computer.

Thanks again for your help.
Lance
 
Hi Lance,

I have performed some test through a USB drive and did get the same
behaviory you encounter. So far I think the settings maybe stored in some
local temporary store. I'll do some further research on this and will
update you if I get any new information.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).


This posting is provided "AS IS" with no warranties, and confers no rights.




--------------------
From: =?Utf-8?B?bGpsZXZlbmQy?= <[email protected]>
References: <[email protected]>
<[email protected]>
 
Hi Steven,

Thanks for the update. I'm glad to hear that you were able to reproduce my
results and I am grateful that you are continuing to look into this issue. I
look forward to hearing about what you discover.

Lance
 
Hi Lance,

After some further research and working with some other VS engineers, it
seems those settings are stored in user's local temp cache and the temp
file location is randomly generated which is not definite determinable. I'm
afraid it would be hard to make it move between multiple machines like
other project files.

Anyway, I would suggest you submit this as a feature request on our
feedback site so that the dev team can also hear more on this:

http://connect.microsoft.com/feedback/default.aspx?SiteID=210

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

--------------------
From: =?Utf-8?B?bGpsZXZlbmQy?= <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
 
Hi Steven,

Thank you so much for looking finding an answer to my question. I've looked
into this issue a bit more and I think it might be possible to use a macro to
implement the desired behavior. I will try this idea and start a new thread
if I run into issues.

Thanks again!
Lance
 
Back
Top