-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DeploymentRepairOptions #3001
base: main
Are you sure you want to change the base?
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
5337905
to
cd53458
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
…ment Deployment contract version to 4.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
dev/Deployment/DeploymentManager.cpp
Outdated
{ | ||
auto packagePath{ GetPackagePath(packageFullName) }; | ||
auto packagePath{ package.InstalledPath()}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why InstalledPath
? Why not EffectivePath
?
dev/Deployment/DeploymentManager.cpp
Outdated
@@ -327,29 +337,38 @@ namespace winrt::Microsoft::Windows::ApplicationModel::WindowsAppRuntime::implem | |||
HRESULT DeploymentManager::VerifyPackage(const std::wstring& packageFamilyName, const PACKAGE_VERSION targetVersion, | |||
__out std::wstring& packageIdentifier) try | |||
{ | |||
auto packageFullNames{ FindPackagesByFamily(packageFamilyName) }; | |||
winrt::Windows::Management::Deployment::PackageManager packageManager; | |||
auto packages{ packageManager.FindPackagesForUser(L"", packageFamilyName) }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You want all packages in the family? Even Bundle? Resource? Optional?
FindPackagesForUserWithPackageType(...Main|Framework)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should have checked FindPackagesByFamily's definition for proper like for like winrt API replacement and should also have thought beyond like for like replacement here. That also points that FindPackagesByFamily is half complete in it's name as it is filtering in it's find for ONLY Main and Framework package types only and not all package types.
Anyway, figured DeploymentManager::FindPackagesByFamily is not used and also there is a duplicate API, FindByFamily, in dev\common\AppModel.Package.h that does the same.
Probably, the FindByFamily in dev\common\AppModel.Package.h should be renamed as FindMainOrFrameworkPackagesByFamily, to be more precise in it's name ?
…ework PackageTypes ONLY.
df46662
to
dd47aab
Compare
…omentRepair_Force
The base branch was changed.
@sachintaMSFT neither the spec nor the implementation has ever landed since then. what's the latest update on this one? |
API spec at #2869