What does VS do when testing code?

junfanbl

Member
Joined
Feb 18, 2016
Messages
18
Programming Experience
1-3
When you click the "Play" button in VS to test your code does it write to the registry to do so?
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,257
Location
Sydney, Australia
Programming Experience
10+
Why do you think it would write to the Registry? What exactly would it be writing? When you run your project VS will build it if required, execute the compiled EXE and then attach its debugger.
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
When you click the "Play" button in VS to test your code does it write to the registry to do so?
Do you have code that writes to the registry when your program runs?
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,385
Location
Norway
Programming Experience
10+
If you have a class library project that is marked "Register for COM Interop", and VS is run as administrator (elevated), then building it will add it to registry also. In such case if VS is run non-elevated then you will get error from VS saying that it cannot register it because of access denied to registry.
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,257
Location
Sydney, Australia
Programming Experience
10+
If you have a class library project that is marked "Register for COM Interop", and VS is run as administrator (elevated), then building it will add it to registry also. In such case if VS is run non-elevated then you will get error from VS saying that it cannot register it because of access denied to registry.
I'm getting the feeling that there was some assumed knowledge in the OP of this thread. Either that or you really do have ESP.
 
Top Bottom