You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is it possible to use MSBuild properties to populate the project matrix of a file?
#9534
Visual Studio has a combobox for every file, which can be used to switch between the different "contexts"(projects) that include that file
Captured in the above image is the combobox along with some sample values it can have. Currently, I know that new contexts can be as follows,
Add a new target framework to a multi-TFM project (ProjectA)
Include the file in another project through <Compile Include"..." /> (ProjectB)
I wish to know if there's other ways to create such contexts, for example, having ProjectA (x86) and ProjectA (x64) compiled and checked side-by-side(like ProjectA (net7.0) and ProjectA (net8.0)) without having to switch the Platform using the build configuration manager. I hope to know if there's way to extend it with any arbitrary MSBuild property, not just Platform
Thanks for the suggestion! Although, I don't think that's what I'm looking for, because IntelliSense doesn't load them in parallel(as in the combobox) and they seem to be limited to the Platform and Configuration properties, whereas I'm looking for a solution which can use arbitrary MSBuild properties
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Visual Studio has a combobox for every file, which can be used to switch between the different "contexts"(projects) that include that file
Captured in the above image is the combobox along with some sample values it can have. Currently, I know that new contexts can be as follows,
ProjectA)<Compile Include"..." />(ProjectB)I wish to know if there's other ways to create such contexts, for example, having
ProjectA (x86)andProjectA (x64)compiled and checked side-by-side(likeProjectA (net7.0)andProjectA (net8.0)) without having to switch the Platform using the build configuration manager. I hope to know if there's way to extend it with any arbitrary MSBuild property, not justPlatformAll reactions