Skip to content

SLNX: "Do not build" (no <build> node) is always reset #138

@42-MM

Description

@42-MM

A .slnx solution contains a WiX project. By default, this WiX project should not be built. The configuration via Visual Studio is possible without any problems. However, if the solution is reopened, the configuration is reset and the Wix project is set to built again.

Reproduction:

Microsoft Visual Studio Professional 2022 (64-bit), Version 17.14.18 (October 2025)
Test Solution: TestSLNX.zip

  1. Disable Build of WiX project
    Image
  2. Correct SLNX is generated
<Solution>
  <Configurations>
    <Platform Name="x64" />
  </Configurations>
  <Project Path="TestApp/TestApp.csproj">
    <Platform Project="x64" />
  </Project>
  <Project Path="TestWix/TestWix.wixproj" Id="4a922bd5-487a-4024-ab28-b9d5576c9993" />
</Solution>
  1. Close Solution in Visual Studio and reopen it.
  2. Click "Save all" without changing anything.
  3. A <Build /> node has been added and building has been activated again.
<Solution>
  <Configurations>
    <Platform Name="x64" />
  </Configurations>
  <Project Path="TestApp/TestApp.csproj">
    <Platform Project="x64" />
  </Project>
  <Project Path="TestWix/TestWix.wixproj" Id="4a922bd5-487a-4024-ab28-b9d5576c9993">
    <Build />
  </Project>
</Solution>
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions