Skip to content

Migrating project from wix3 to wix6 and getting error for WIX_DIR_COMMON_DOCUMENTS #1864

@speedycat2110-maker

Description

@speedycat2110-maker

I am migrating my wixsharp project from wix.3.11 to wix.6.0.2

I have added below NuGet package references to my wixsharp project.

<PackageReference Include="WixToolset.Sdk" />
<PackageReference Include="WixSharp_wix4" />
<PackageReference Include="WixSharp_wix4.bin" />

And my compiled .wxs has below directory structure.

<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
  <Package Compressed="yes" ProductCode="xxx" Name="xxx" Language="1033" Version="xxx.xxx.xxx" UpgradeCode="xxxx" Manufacturer="xxx" InstallerVersion="400">
    <SummaryInformation Codepage="Windows-1252" />
        <Directory Id="WIX_DIR_COMMON_DOCUMENTS" Name="WIX_DIR_COMMON_DOCUMENTS">
......................
.....................

        <PropertyRef Id="WIX_DIR_COMMON_DOCUMENTS" />

I am getting below error for
The identifier 'Property:WIX_DIR_COMMON_DOCUMENTS' could not be found. Ensure you have typed the reference correctly and that all the necessary inputs are provided to the linker.

Do I need to add http://wixtoolset.org/schemas/v4/wxs/util namespace to get this property? How can I add it to compiled .wxs using wixsharp?
Any suggestion would help.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions