Results 1 to 6 of 6

Thread: What does VS do when testing code?

  1. #1
    junfanbl is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Feb 2016
    Posts
    17
    Reputation
    14

    What does VS do when testing code?

    When you click the "Play" button in VS to test your code does it write to the registry to do so?

  2. #2
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    13,767
    Reputation
    1702
    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.

  3. #3
    JuggaloBrotha's Avatar
    JuggaloBrotha is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Jun 2004
    Location
    Lansing, MI; USA
    Posts
    4,458
    Reputation
    1013
    Quote Originally Posted by junfanbl View Post
    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?
    Currently using: VS 2010 Ultimate on Win7 Ultimate x64.

  4. #4
    JohnH's Avatar
    JohnH is online now VB.NET Forum Moderator
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    15,065
    Reputation
    2800
    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.

  5. #5
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    13,767
    Reputation
    1702
    Quote Originally Posted by JohnH View Post
    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.

  6. #6
    JohnH's Avatar
    JohnH is online now VB.NET Forum Moderator
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    15,065
    Reputation
    2800
    Quote Originally Posted by jmcilhinney View Post
    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.
    There were two previous threads about this recently, I presumed that was what OP meant here also

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •