Skip to content

Microsoft.Windows.SDK.BuildTools.MSIX.Pri.targets(838,5): error MSB4044: The "WinAppSdkGenerateProjectPriFile" task was not given a value for the required parameter "ProjectPriIndexName". #6676

Description

@catmanjan

Describe the bug

I tried building my MSIX on a fresh buildserver and got the error

Microsoft.Windows.SDK.BuildTools.MSIX.Pri.targets(838,5): error MSB4044: The "WinAppSdkGenerateProjectPriFile" task was not given a value for the required parameter "ProjectPriIndexName".

Pointing to the following build files:


  <!--
  The _SplitResourcesPri target handles the splitting of sideload resource files
  from the main package into separate files based on a provided configuration.

  Key Actions:
    - Invokes the WinAppSdkGenerateProjectPriFile task to create a new PRI file using specified parameters,
      including paths for input and output files.
    - Clears any existing entries in the _AppxBundleSplitResourcesGeneratedFiles item group.
    - Reads a list of generated resource files from the specified path, if it exists,
      and outputs the lines into the _AppxBundleSplitResourcesGeneratedFiles item group.
-->

  <Target Name="_SplitResourcesPri"
          Inputs="$(MSBuildAllProjects);$(ProjectPriFullPath)"
          Outputs="$(AppxBundleSplitResourcesGeneratedFilesListPath);@(_AppxBundleSplitResourcesGeneratedFiles)">

    <WinAppSdkGenerateProjectPriFile MakePriExeFullPath="$(MakePriExeFullPath)"
                            MakePriExtensionPath="$(OutOfProcessMakePriExtensionPath)"
                            PriConfigXmlPath="$(AppxBundlePriConfigXmlForSplittingFileName)"
                            ProjectPriIndexName="$(ProjectPriIndexName)"
                            MappingFileFormat="AppX"
                            ProjectDirectory="$(AppxLayoutDir)"
                            OutputFileName="$(AppxBundleSplitResourcesPriPath)"
                            GeneratedFilesListPath="$(AppxBundleSplitResourcesGeneratedFilesListPath)"
                            QualifiersPath="$(AppxBundleSplitResourcesQualifiersPath)"
                            IntermediateExtension="$(AppxIntermediateExtension)"
                            AdditionalMakepriExeParameters="$(AppxGenerateProjectPriFileAdditionalMakepriExeParameters)"
                            AppxBundleAutoResourcePackageQualifiers="$(AppxBundleAutoResourcePackageQualifiers)"
                            VsTelemetrySession="$(VsTelemetrySession)"
                            />

Any idea what I need to set to get it to work?

Steps to reproduce the bug

Not sure

Expected behavior

No response

Screenshots

No response

NuGet package version

\microsoft.windows.sdk.buildtools.msix\1.7.260610101

Packaging type

No response

Windows version

No response

IDE

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-MSIXBuildToolsMSIX deployment technology in Microsoft.Windows.SDK.BuildTools.MSIXneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions