Simplify vcxproj files - Remove explicit DebugInformationFormat - #457
Merged
Conversation
…figs For `Release` configurations (`UseDebugLibraries` not set to `true`) the `DebugInformationFormat` setting defaults to `ProgramDatabase`. Technically, the default for any configuration is `ProgramDatabase`, however, for `Debug` configurations (`UseDebugLibraries` set to `true`) there can be an additional override that changes the value when not specified. For the `Release` configurations there is no additional override, so the `ProgramDatabase` value will be retained.
This effectively changes the setting to `EditAndContinue` for `Debug` configurations. Normally when `DebugInformationFormat` is not specified it defaults to `ProgramDatabase`. However, when `UseDebugLibraries` is set to `true` there may be an additional override to `EditAndContinue`, which is the expected value here. The details are a little more involved. When `DebugInformationFormat` is set explicitly, then `DebugInformationFormatDefined` is set to `true`. Then if `DebugInformationFormat` is unset it is defaulted to `ProgramDatabase`. Later on, when `DebugInformationFormatDefined` is not set to `true` and `UseDebugLibraries` is set to `true` then the `DebugInformationFormat` setting may be updated to `EditAndContinue`. This later check also depends on a few other settings such as `EnableASAN` and `CLRSupport`. Effectively by not explicitly setting `DebugInformationFormat`, we can get additional support for Edit and Continue features for `Debug` configurations, assuming other settings don't prevent that support.
This was referenced Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove explicit setting for
DebugInformationFormat, which typically defaults toProgramDatabase, though may be set toEditAndContinueforDebugconfigurations when other settings don't conflict with the Edit and Continue feature.This effectively changes the value of the setting to
EditAndContinueforDebugconfigurations.Related:
DebugInformationFormatproject setting OPHD#2215DebugInformationFormatproject setting lairworks/nas2d-core#1486