Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include "pch.h"
#include "frameworkudk\ResourceManager.h"
#include <AppModel.Identity.IsPackagedProcess.h>

bool IsResourceNotFound(HRESULT hr)
{
Expand Down Expand Up @@ -83,7 +84,7 @@ HRESULT GetDefaultPriFile(winrt::hstring& filePath)

// GetDefaultPriFileForCurrentPackage will not handle the new case where
// resources.pri is in the parent folder.
bool isPackaged = (hr != HRESULT_FROM_WIN32(APPMODEL_ERROR_NO_PACKAGE));
bool isPackaged = AppModel::Identity::IsPackagedProcess();
hr = GetDefaultPriFileForCurentModule(isPackaged, filePath);

// Sparse-packaged apps have identity but deploy PRI files as loose files; fall back to unpackaged discovery which also searches for "[modulename].pri".
Expand Down
Loading