Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1052151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:02:49+00:00 2026-05-16T17:02:49+00:00

Edit: Basically what I need is for visual studio to always rebuild all when

  • 0

Edit: Basically what I need is for visual studio to always rebuild all when I hit debug.


I’m currently using visual studio to compile my assembly programs, using MASM and in general it’s working fine.

However I’ve run into an annoying issue:

If I include a file (say, a file with functions) like this

Include functions.inc

and compile it, it originally works fine. However if I then change the contents of functions.inc, this is not recognized and the compilers skips over functions.inc and uses the old version from before I changed it.

I cannot find an option anywhere under project properties to fix this. However I’m sure it has something to do with linker options or something – if I make any changes under project properties (even if I change something and change it back, and then press OK), it does compile properly with the new version of functions.inc.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T17:02:50+00:00Added an answer on May 16, 2026 at 5:02 pm

    You can change the behaviour via the EnvironmentEvents macro in Visual Studio’s Macro Explorer:

    Private Enum IDEMode
        Design = 1
        Break = 2
        Run = 3
    End Enum
    
    Private _IDEMode As IDEMode = IDEMode.Design
    
    Public Sub DTEDebuggerEvents_OnDebugRun() Handles _
    DebuggerEvents.OnEnterRunMode
        If _IDEMode = IDEMode.Design Then
            DTE.ExecuteCommand("Build.RebuildSolution")
        End If
        _IDEMode = IDEMode.Run
    End Sub
    
    Public Sub DTEDebuggerEvents_OnDebugDesign() Handles _
        DebuggerEvents.OnEnterDesignMode
        _IDEMode = IDEMode.Design
    End Sub
    
    Public Sub DTEDebuggerEvents_OnDebugBreak() Handles _
        DebuggerEvents.OnEnterBreakMode
        _IDEMode = IDEMode.Break
    End Sub
    

    This is a VisualStudio change so it will work across all solutions once set

    UPDATE
    The above solution works, however it has some pitfalls concerning content files where the IDE will change to design mode even if the debugger is running. It will try to build while the debugger is running in some situations. The proper solution is this:

    Private _curDebugState As EnvDTE80.dbgProcessState
    
    Public Sub debuggerStateChangedHandler
        (ByVal NewProcess As EnvDTE.Process, 
        ByVal processState As EnvDTE80.dbgProcessState) 
        Handles DebuggerProcessEvents.OnProcessStateChanged
        If _curDebugState = dbgProcessState.dbgProcessStateStop And processState = dbgProcessState.dbgProcessStateRun Then
            DTE.ExecuteCommand("Build.RebuildSolution")
        End If
        _curDebugState = processState
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT: I am basically running into the following documented issue . I am using
Basically what the title says. I am looking to install the Visual Studio 2010
I'm using DCRoundSwitch for a project where I basically need an UISwitch where I'm
Basically, I'm trying to do some string manipulation to edit directories. I found some
I'm making an interface to edit scenarios for a game. Basically it consists of
I have a relatively big SSIS package which I'm trying to edit. I basically
EDIT: iam using ajax to load text in my content that is why onload
I am new to Windows and Visual Studio. I have a strong background in
I need to build a visual editor in C#. Given a piece of PHP
I have a unicode string in Python and basically need to go through, character

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.