I have a console app on a network location \\desktop1\C$\Code
. But when I open the solution in Visual Studio from my machine desktop2
, its is running in context of my desktop2
and not in context of desktop1
.
How do I run the exe in context of desktop1
?
For example, when I print the name of the machine using below code, I get the output as desktop2
even though the code is located in desktop1
private static void Main(string[] args)
{
Console.WriteLine(System.Environment.MachineName);
Console.ReadLine();
}
EDIT: desktop1
does not have Visual Studio installed.