Skip to content
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

v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592

Closed
fredemmott opened this issue Jun 7, 2022 · 14 comments · Fixed by #2608

Comments

@fredemmott
Copy link

fredemmott commented Jun 7, 2022

Describe the bug

My app currently calls MddBootstrapInitialize() when running unpackaged:

https://github.com/fredemmott/OpenKneeboard/blob/794c53568b34f18443027c43135b7a90e5ce47eb/src/app/app-winui3/App.xaml.cpp#L200-L204

After upgrading from 1.0 to 1.1 - changing the c++/winrt package to 2.0.220418.1 (the latest version is compatible with WinUI3 when building with C++20) and windows app SDK 1.1.0, this has the following output:

D:\a\_work\1\s\BuildOutput\Release\x64\WindowsAppRuntime_DLL\WindowsAppRuntimeInsights.h(53)\Microsoft.WindowsAppRuntime.Bootstrap.dll!00007FF981FE24DB: (caller: 00007FF981FDE1C6) LogHr(1) tid(5c44) 8007007E The specified module could not be found.
    Msg:[Unable to load resource dll. Microsoft.WindowsAppRuntime.Insights.Resource.dll] 
D:\a\_work\1\s\dev\WindowsAppRuntime_BootstrapDLL\MddBootstrap.cpp(776)\Microsoft.WindowsAppRuntime.Bootstrap.dll!00007FF981FDB0D9: (caller: 00007FF981FD9C2F) LogHr(2) tid(5c44) 80040010 Object is not in any of the inplace active states
    Msg:[Bootstrap.Intitialize: Scanning packages for Major.Minor=1.1, Tag=, MinVersion=1000.516.2156.0] CallContext:[\Initialize] 
Exception thrown at 0x00007FF981FE4403 (Microsoft.WindowsAppRuntime.Bootstrap.dll) in OpenKneeboardApp.exe: 0xC0000005: Access violation writing location 0x00007FF981FF6716.

windbg points here:

void MddBootstrap_StopActivity(
    const std::string failureType,
    const bool isActivityRunning,
    const GUID *activityId,
    const WindowsAppRuntime::MddBootstrap::Activity::Context& activityContext,
    const wil::FailureInfo& failure)
{
    MddBootstrap_WriteEventWithActivity(*failureType.c_str(), activityId);

...

called from:

    THROW_HR_IF_MSG(HRESULT_FROM_WIN32(ERROR_NO_MATCH), !foundAny, "Enumeration: %ls", criteria.get());
    (void)LOG_HR_MSG(MDD_E_BOOTSTRAP_INITIALIZE_DDLM_FOUND,
                     "Bootstrap.Intitialize: %ls best matches the criteria (%ls) of %d packages scanned",
                     bestFitPackageFullName.c_str(), criteria.get(), packagesScanned);

bestFitPackageFullName is a null handle.

Steps to reproduce the bug

  1. Grab fredemmott/openkneeboard at rev 794c53568b34f18443027c43135b7a90e5ce47eb
  2. Apply https://gist.github.com/fredemmott/96216c79d2e0496e128a7923a6ac6777 to update windows app SDK and C++/winrt
  3. build with cmake in debug mode
  4. run app, e.g. build\src\app\app-winui3\msbuild-out-Debug\OpenKneeboardApp.exe

Expected behavior

App should start, or exit cleanly, depending on state of installed packages.

Screenshots

No response

NuGet package version

No response

Packaging type

Unpackaged

Windows version

Windows 10 version 21H2 (19044, November 2021 Update)

IDE

Other

Additional context

  • using 1.1.0 nuget package, which isn't in list
  • using vscode + cmake
@fredemmott
Copy link
Author

  • switching to MddBootstrapInitialize2 doesn't fix this...
  • forgot to update the PackageDependency in my appxmanifest - this didn't fix it

@fredemmott
Copy link
Author

Correction (windbg is giving me off-by-one lines on some frames) -

THROW_HR_IF_MSG(HRESULT_FROM_WIN32(ERROR_NO_MATCH), !foundAny, "Enumeration: %ls", criteria.get());
is the call that eventually leads to the access violation

image

@fredemmott
Copy link
Author

Also seeing the same if I use the auto-generated auto initializer :(

@fredemmott
Copy link
Author

Same with release build.

@sachintaMSFT @DrusTheAxe this part of #2321 seems to likely be the problem:

https://github.com/microsoft/WindowsAppSDK/blob/v1.1.0/dev/WindowsAppRuntime_BootstrapDLL/MddBootstrapTracelogging.cpp#L8-L15

... in combination with ...

https://github.com/microsoft/WindowsAppSDK/blob/v1.1.0/dev/WindowsAppRuntime_BootstrapDLL/MddBootstrapTracelogging.h#L126-L142

windbg says the access violation is:

Microsoft_WindowsAppRuntime_Bootstrap!MddBootstrap_StopActivity+0x93:
00007ff9`c1a14403 88050d230100    mov     byte ptr [Microsoft_WindowsAppRuntime_Bootstrap!_tlgEvent+0xf (00007ff9`c1a26716)],al ds:00007ff9`c1a26716=00
0:000> dt _tlgEvent
   +0x000 _tlgBlobTyp      : 0x6 ''
   +0x001 _tlgChannel      : 0xb ''
   +0x002 _tlgLevel        : 0x5 ''
   +0x003 _tlgOpcode       : 0 ''
   +0x004 _tlgKeyword      : 0
   +0x00c _tlgEvtMetaSize  : 0x30
   +0x00e _tlgEvtTag       : 0 ''
   +0x00f _tlgName         : [1]  ""
   +0x010 _tlgName0        : [5]  ""
   +0x015 _tlgTy0          : 0 ''
   +0x016 _tlgName1        : [8]  ""
   +0x01e _tlgTy1          : 0 ''
   +0x01f _tlgName2        : [5]  ""
   +0x024 _tlgTy2          : 0 ''
   +0x025 _tlgName3        : [5]  ""
   +0x02a _tlgTy3          : 0 ''
   +0x02b _tlgName4        : [7]  ""
   +0x032 _tlgTy4          : 0 ''
   +0x033 _tlgName5        : [8]  ""
   +0x03b _tlgTy5          : 0 ''

If I'm reading that correctly, writing to _tlgEvent._tlgName within the ETW macros is failing

@fredemmott
Copy link
Author

fredemmott commented Jun 7, 2022

Yeah, this seems wrong:

    MddBootstrap_WriteEventWithActivity(*failureType.c_str(), activityId);

This passes through to TraceLoggingWriteActivity, with the first arg becoming the event name.

  1. It should be a C string, i.e. char*, not a char
  2. The documentation notes "This must be a string literal and not a variable"

Both are likely problematic as the macro uses sizeof(eventname) which is the length of the string when using a literal, but is currently 1 (as it's a char), and would be 4 or 8 if it was c_str(), instead of the length of the string as expected.

@fredemmott
Copy link
Author

The exception being thrown is 0x80070491 (There was no match for the specified key in the index.) - "0x13b81fd8f0 : "Enumeration: Major.Minor=1.1, Tag=, MinVersion=1000.516.2156.0"" for "microsoft.winappruntime.ddlm."

Proximal cause is a missing ddlm package, filing a ticket for that - but regardless of the trigger, the event logging shouldn't crash: the bootstrapper is meant to report/log missing packages.

@riverar
Copy link
Contributor

riverar commented Jun 7, 2022

So looks like you didn't install the latest runtimes?

@fredemmott
Copy link
Author

fredemmott commented Jun 7, 2022

@riverar it was partially installed automatically by windows/the store, and the runtime installer will not install missing components on top of a partial install - filed #2595

That said, the missing packages are orthogonal to this issue: the purpose of the event logging and the existence of MddBootstrapInitialize2() is to provide information about what is broken when dependencies aren't installed - so they should expect to 'work' (i.e. log/present information, not crash) - when parts of the windows app runtime are not installed.

@fredemmott fredemmott changed the title v1.1 SDK throws an access violation from MddBootstrapInitialize v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed Jun 7, 2022
@riverar
Copy link
Contributor

riverar commented Jun 7, 2022

Sounds good. Is this a fair summary?

  • Runtimes not being cross-channel (Store, loose installer, etc.) serviced correctly (think @DrusTheAxe already fixed that one)
  • Telemetry crashing in failure scenarios

@fredemmott
Copy link
Author

fredemmott commented Jun 7, 2022

Runtimes not being cross-channel (Store, loose installer, etc.) serviced correctly

Maybe - this wording is too specific for me to be certain :)

Telemetry crashing in failure scenarios

Yep - in particular, variables can't be passed as ETW event names, and the bootstrapper's logging attempts to do this.

@btueffers btueffers added bug Something isn't working area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) labels Jun 7, 2022
@sachintaMSFT sachintaMSFT self-assigned this Jun 8, 2022
@DrusTheAxe DrusTheAxe added area-DynamicDependencies and removed area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) labels Jun 10, 2022
@DrusTheAxe DrusTheAxe added this to the 1.2 milestone Jun 10, 2022
@DrusTheAxe
Copy link
Member

Ouch! Great catch, thanks for the analysis! Working up a fix as we speak, will get it into the servicing queue ASAP

Thanks!

@riverar
Copy link
Contributor

riverar commented Jun 14, 2022

@DrusTheAxe Beware of the

D:\a\_work\1\s\dev\WindowsAppRuntime_BootstrapDLL\MddBootstrap.cpp(536)\Microsoft.WindowsAppRuntime.Bootstrap.dll!00007FFE5F8938F9: (caller: 00007FFE5F89244F) LogHr(1) tid(aaec) 80040010 Object is not in any of the inplace active states
    Msg:[Bootstrap.Intitialize: Scanning packages for Major.Minor=1.1, Tag=, MinVersion=1000.516.2156.0] 

This seems to be coming from the wil helper https://github.com/microsoft/WindowsAppSDK/blob/v1.1.0/dev/WindowsAppRuntime_BootstrapDLL/MddBootstrap.cpp#L536. Then because package enumeration failed, the installed candidate package is not found.

DrusTheAxe added a commit that referenced this issue Jun 14, 2022
…ging code if no matching packages are installed #2592 (#2608)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592

* Telemetry char/string. AppData DataStore-1.0.

* Retrieve the *Main* package's family name for AppData

* Add/Remove the test Main package (DataStore) just like we do the test Framework
@ghost ghost added the Status: Fixed label Jun 14, 2022
DrusTheAxe added a commit that referenced this issue Jun 14, 2022
…ging code if no matching packages are installed #2592 (#2608)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592

* Telemetry char/string. AppData DataStore-1.0.

* Retrieve the *Main* package's family name for AppData

* Add/Remove the test Main package (DataStore) just like we do the test Framework
DrusTheAxe added a commit that referenced this issue Jun 17, 2022
…ging code if no matching packages are installed #2592 (#2608) - 1.1-servicing (#2624)

!cherry-pick 42ba331
!cherry-pick 6198c22

1.1-servicing of v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592 (#2608)

Summary

Telemetry char=crash. Needs be string-literal
Retrieve the Main package's family name for AppData for the release matching the framework (not always 1.0)
Add/Remove the test Main package (DataStore) just like we do the test Framework
Fixup test packages with naming more aligned with the actual runtime (test package Names were "blah" but product is "blah-1.2", and we now have code that parses release out of package name for further processing)
For more details see #2608

https://task.ms/39995920 for 1.1-servicing consideration
loneursid added a commit that referenced this issue Jun 23, 2022
* Fix issue where WinUI C# and C++ item templates are not appearing in WinUI projects

* Making EM RS5+. Limiting the tracking capability to Windows11+ (Spec) (#2544)

* Updating spec

* Adressing comments

* More changes

Co-authored-by: Darren Hoehna <[email protected]>

* Create a pipeline to automate FIs from main to develop (#2610)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592 (#2608)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592

* Telemetry char/string. AppData DataStore-1.0.

* Retrieve the *Main* package's family name for AppData

* Add/Remove the test Main package (DataStore) just like we do the test Framework

* Detoured GetCurrentPackageInfo3() should route to the OS any PackageInfoType value it doesn't handle (#2623)

* Create tsaoptions.json

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Delete WindowsAppSDK-SourceAnalysis-job.yml

* Delete WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update ProjectReunion-CI.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update build-mrt.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Do a compiler options pass on all binaries contributing to WinAppSDK (#2629)

Tweak various compiler options for optimization (e.g. /GR-) and correctness/productivity (e.g. /W4).

Project-wide standardization via new \WindowsAppSDK.Build.Cpp.props. See for more details.

Corrected several inconsistencies across projects e.g. given Debug|Release + x86+x64+arm64 = 6 permutations, but some projects had an option set for only 5, or only 1. Most projects were mostly already setting most of these options so their changes were mostly removing the now-redundant project-specific setting and let the top-level project-wide standards handle it.

This now standardizes all C++ projects to...
* Compile (all): `/W4 /sdl /permissive- /std:c++17 /GR-` (except 2 projects that explicitly set `/std:c++20`)
* Compile (debug): `/Od`
* Compile (release): `/GS /GF /GL /Gy /Gw /Ob2 /Oi /Os /Oy`
* Link (debug) `/DEBUG:FULL /INCREMENTAL`
* Link (release): `/INCREMENTAL:NO /LTCG /OPT:ICF /OPT:REF`

https://task.ms/39994837 Foundation

https://task.ms/39994852 MRTCore

* Add standardized (project-wide) C++ compile and link options

* Remove ARM support (not supported, but some ARM-conditional fragments weren't removed)

* Removed <WarningLevel> from all projects. Fixed up warnings masked by projects who'd set Level3

* Added SDLCheck for all builds. Added Disable-Optimization for Debug builds. Remove properties in *vcxproj redundnat with standardized options

* Removed redundant <Optimization> from *vcxproj

* Fixed warnings. Removed unnecessary delayload

* Fixed some inconsistencies in project settings

* Fixed AccessControlTests weren't copying the Bootstrap dll to the test's OutDir and thus the test dll wouldn't load

* Fix some warnings in MRT. Had to disable read-only string pooling and strictstrings as workaround for some funky issues in MrtBaseUnitTests for now; filed bug for follow up to fix the errors

* Corrected some comments. Added the missing LTCG option

* Changed LTCG from fast to normal

* Updated FavorSizeOrSpeed to Size instead of Speed

* Move LinkIncremental=false for Release builds to the top-level project-wide standard

* Host LinkIncremental=true if Configuration=Debug to be project wide setting (projects were routinely doing this locally, but inconsistently)

* Fixed a comment

* Added a cautionary note about why Detours.vcxproj has seemingly redundant or contradictory options and to be wary of making any changes

* Removed options redundant with WindowsAppSDK.Build.Cpp.props

* Elevate GenerateDebugInformation=Full to project-wide and remove redundancies. Move dev\WindowsAppSDK.Build.Cpp.props content to project wide (not just \dev) and delete the now obsolete dev\WindowsAppSDK.Build.Cpp.props (really only amounted to /ZH:SHA_256).

* Incorporated feedback

* Overhaul NuGet versions to include "main" or "develop" (#2636)

* Some old MSTest.pfx references were lingering (and now breaking things) (#2638)

* Installation with System-Account doesn't work #2546 (#2565)

* Installation with System-Account doesn't work #2546 
Co-authored-by: Santosh Chintalapati <[email protected]>

* Fix the .NET SDK installer script used by MRT Core, and don't run the script anymore (#2640)

* Fix the .NET SDK install script.

* Remove .NET SDK version from global.json file.

* Don't run the DownloadDotNetCoreSdk.ps1 script in the pipeline.

* Update build-mrt.yml

* Update DownloadDotNetCoreSdk.ps1

* Update global.json

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update global.json

* Update global.json

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Add 1.1.1 & 1.0.4 to bug template and remove outdated versions (#2627)

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-CI.yml

Co-authored-by: James Parsons <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Kyaw Thant <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: alexlamtest <[email protected]>
Co-authored-by: Jeff Genovy <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
loneursid added a commit that referenced this issue Jun 24, 2022
* Fix issue where WinUI C# and C++ item templates are not appearing in WinUI projects

* Making EM RS5+. Limiting the tracking capability to Windows11+ (Spec) (#2544)

* Updating spec

* Adressing comments

* More changes

Co-authored-by: Darren Hoehna <[email protected]>

* Create a pipeline to automate FIs from main to develop (#2610)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592 (#2608)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592

* Telemetry char/string. AppData DataStore-1.0.

* Retrieve the *Main* package's family name for AppData

* Add/Remove the test Main package (DataStore) just like we do the test Framework

* Detoured GetCurrentPackageInfo3() should route to the OS any PackageInfoType value it doesn't handle (#2623)

* Create tsaoptions.json

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Delete WindowsAppSDK-SourceAnalysis-job.yml

* Delete WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update ProjectReunion-CI.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update build-mrt.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Do a compiler options pass on all binaries contributing to WinAppSDK (#2629)

Tweak various compiler options for optimization (e.g. /GR-) and correctness/productivity (e.g. /W4).

Project-wide standardization via new \WindowsAppSDK.Build.Cpp.props. See for more details.

Corrected several inconsistencies across projects e.g. given Debug|Release + x86+x64+arm64 = 6 permutations, but some projects had an option set for only 5, or only 1. Most projects were mostly already setting most of these options so their changes were mostly removing the now-redundant project-specific setting and let the top-level project-wide standards handle it.

This now standardizes all C++ projects to...
* Compile (all): `/W4 /sdl /permissive- /std:c++17 /GR-` (except 2 projects that explicitly set `/std:c++20`)
* Compile (debug): `/Od`
* Compile (release): `/GS /GF /GL /Gy /Gw /Ob2 /Oi /Os /Oy`
* Link (debug) `/DEBUG:FULL /INCREMENTAL`
* Link (release): `/INCREMENTAL:NO /LTCG /OPT:ICF /OPT:REF`

https://task.ms/39994837 Foundation

https://task.ms/39994852 MRTCore

* Add standardized (project-wide) C++ compile and link options

* Remove ARM support (not supported, but some ARM-conditional fragments weren't removed)

* Removed <WarningLevel> from all projects. Fixed up warnings masked by projects who'd set Level3

* Added SDLCheck for all builds. Added Disable-Optimization for Debug builds. Remove properties in *vcxproj redundnat with standardized options

* Removed redundant <Optimization> from *vcxproj

* Fixed warnings. Removed unnecessary delayload

* Fixed some inconsistencies in project settings

* Fixed AccessControlTests weren't copying the Bootstrap dll to the test's OutDir and thus the test dll wouldn't load

* Fix some warnings in MRT. Had to disable read-only string pooling and strictstrings as workaround for some funky issues in MrtBaseUnitTests for now; filed bug for follow up to fix the errors

* Corrected some comments. Added the missing LTCG option

* Changed LTCG from fast to normal

* Updated FavorSizeOrSpeed to Size instead of Speed

* Move LinkIncremental=false for Release builds to the top-level project-wide standard

* Host LinkIncremental=true if Configuration=Debug to be project wide setting (projects were routinely doing this locally, but inconsistently)

* Fixed a comment

* Added a cautionary note about why Detours.vcxproj has seemingly redundant or contradictory options and to be wary of making any changes

* Removed options redundant with WindowsAppSDK.Build.Cpp.props

* Elevate GenerateDebugInformation=Full to project-wide and remove redundancies. Move dev\WindowsAppSDK.Build.Cpp.props content to project wide (not just \dev) and delete the now obsolete dev\WindowsAppSDK.Build.Cpp.props (really only amounted to /ZH:SHA_256).

* Incorporated feedback

* Overhaul NuGet versions to include "main" or "develop" (#2636)

* Some old MSTest.pfx references were lingering (and now breaking things) (#2638)

* Installation with System-Account doesn't work #2546 (#2565)

* Installation with System-Account doesn't work #2546 
Co-authored-by: Santosh Chintalapati <[email protected]>

* Fix the .NET SDK installer script used by MRT Core, and don't run the script anymore (#2640)

* Fix the .NET SDK install script.

* Remove .NET SDK version from global.json file.

* Don't run the DownloadDotNetCoreSdk.ps1 script in the pipeline.

* Update build-mrt.yml

* Update DownloadDotNetCoreSdk.ps1

* Update global.json

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update global.json

* Update global.json

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Add 1.1.1 & 1.0.4 to bug template and remove outdated versions (#2627)

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-CI.yml

* Update Newtonsoft.Json explicit reference in Dev16 projects to work around vulnerability in older versions (#2662)

Co-authored-by: James Parsons <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Kyaw Thant <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: alexlamtest <[email protected]>
Co-authored-by: Jeff Genovy <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>
Co-authored-by: Ryan Shepherd <[email protected]>
@gabbybilka
Copy link
Member

Fixed in Windows App SDK 1.1.2, see release notes for more info.

pmpurifoy added a commit that referenced this issue Jul 26, 2022
* Use internal nuget feed for develop branch (#2274)

* Test push

* Test push revert

* Merge and Update FrameworkUDK

* publish to feed only on scheduled builds (#2571)

* Refactor register API (#2557)

* Refactor register API

* Address comments

* Address minor comments

* don't need these parameters

* Revert "don't need these parameters"

This reverts commit 5c76b96.

* FI main into develop (#2602)

* Create a pipeline to automate FIs from main to develop (#2610)

* Create tsaoptions.json

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Delete WindowsAppSDK-SourceAnalysis-job.yml

* Delete WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update ProjectReunion-CI.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update build-mrt.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update DownloadDotNetCoreSdk.ps1

* Update global.json

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update global.json

* Update global.json

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Add 1.1.1 & 1.0.4 to bug template and remove outdated versions (#2627)

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-CI.yml

* FI develop into WNP_ContentBuilder_Prev1 (#2656)

* Fix issue where WinUI C# and C++ item templates are not appearing in WinUI projects

* Making EM RS5+. Limiting the tracking capability to Windows11+ (Spec) (#2544)

* Updating spec

* Adressing comments

* More changes

Co-authored-by: Darren Hoehna <[email protected]>

* Create a pipeline to automate FIs from main to develop (#2610)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592 (#2608)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592

* Telemetry char/string. AppData DataStore-1.0.

* Retrieve the *Main* package's family name for AppData

* Add/Remove the test Main package (DataStore) just like we do the test Framework

* Detoured GetCurrentPackageInfo3() should route to the OS any PackageInfoType value it doesn't handle (#2623)

* Create tsaoptions.json

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Delete WindowsAppSDK-SourceAnalysis-job.yml

* Delete WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update ProjectReunion-CI.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update build-mrt.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Do a compiler options pass on all binaries contributing to WinAppSDK (#2629)

Tweak various compiler options for optimization (e.g. /GR-) and correctness/productivity (e.g. /W4).

Project-wide standardization via new \WindowsAppSDK.Build.Cpp.props. See for more details.

Corrected several inconsistencies across projects e.g. given Debug|Release + x86+x64+arm64 = 6 permutations, but some projects had an option set for only 5, or only 1. Most projects were mostly already setting most of these options so their changes were mostly removing the now-redundant project-specific setting and let the top-level project-wide standards handle it.

This now standardizes all C++ projects to...
* Compile (all): `/W4 /sdl /permissive- /std:c++17 /GR-` (except 2 projects that explicitly set `/std:c++20`)
* Compile (debug): `/Od`
* Compile (release): `/GS /GF /GL /Gy /Gw /Ob2 /Oi /Os /Oy`
* Link (debug) `/DEBUG:FULL /INCREMENTAL`
* Link (release): `/INCREMENTAL:NO /LTCG /OPT:ICF /OPT:REF`

https://task.ms/39994837 Foundation

https://task.ms/39994852 MRTCore

* Add standardized (project-wide) C++ compile and link options

* Remove ARM support (not supported, but some ARM-conditional fragments weren't removed)

* Removed <WarningLevel> from all projects. Fixed up warnings masked by projects who'd set Level3

* Added SDLCheck for all builds. Added Disable-Optimization for Debug builds. Remove properties in *vcxproj redundnat with standardized options

* Removed redundant <Optimization> from *vcxproj

* Fixed warnings. Removed unnecessary delayload

* Fixed some inconsistencies in project settings

* Fixed AccessControlTests weren't copying the Bootstrap dll to the test's OutDir and thus the test dll wouldn't load

* Fix some warnings in MRT. Had to disable read-only string pooling and strictstrings as workaround for some funky issues in MrtBaseUnitTests for now; filed bug for follow up to fix the errors

* Corrected some comments. Added the missing LTCG option

* Changed LTCG from fast to normal

* Updated FavorSizeOrSpeed to Size instead of Speed

* Move LinkIncremental=false for Release builds to the top-level project-wide standard

* Host LinkIncremental=true if Configuration=Debug to be project wide setting (projects were routinely doing this locally, but inconsistently)

* Fixed a comment

* Added a cautionary note about why Detours.vcxproj has seemingly redundant or contradictory options and to be wary of making any changes

* Removed options redundant with WindowsAppSDK.Build.Cpp.props

* Elevate GenerateDebugInformation=Full to project-wide and remove redundancies. Move dev\WindowsAppSDK.Build.Cpp.props content to project wide (not just \dev) and delete the now obsolete dev\WindowsAppSDK.Build.Cpp.props (really only amounted to /ZH:SHA_256).

* Incorporated feedback

* Overhaul NuGet versions to include "main" or "develop" (#2636)

* Some old MSTest.pfx references were lingering (and now breaking things) (#2638)

* Installation with System-Account doesn't work #2546 (#2565)

* Installation with System-Account doesn't work #2546 
Co-authored-by: Santosh Chintalapati <[email protected]>

* Fix the .NET SDK installer script used by MRT Core, and don't run the script anymore (#2640)

* Fix the .NET SDK install script.

* Remove .NET SDK version from global.json file.

* Don't run the DownloadDotNetCoreSdk.ps1 script in the pipeline.

* Update build-mrt.yml

* Update DownloadDotNetCoreSdk.ps1

* Update global.json

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update global.json

* Update global.json

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Add 1.1.1 & 1.0.4 to bug template and remove outdated versions (#2627)

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-CI.yml

Co-authored-by: James Parsons <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Kyaw Thant <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: alexlamtest <[email protected]>
Co-authored-by: Jeff Genovy <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>

* Update Newtonsoft.Json explicit reference in Dev16 projects to work around vulnerability in older versions (#2662)

* User/erlangl/fi develop into feature (#2660)

* Fix issue where WinUI C# and C++ item templates are not appearing in WinUI projects

* Making EM RS5+. Limiting the tracking capability to Windows11+ (Spec) (#2544)

* Updating spec

* Adressing comments

* More changes

Co-authored-by: Darren Hoehna <[email protected]>

* Create a pipeline to automate FIs from main to develop (#2610)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592 (#2608)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592

* Telemetry char/string. AppData DataStore-1.0.

* Retrieve the *Main* package's family name for AppData

* Add/Remove the test Main package (DataStore) just like we do the test Framework

* Detoured GetCurrentPackageInfo3() should route to the OS any PackageInfoType value it doesn't handle (#2623)

* Create tsaoptions.json

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Delete WindowsAppSDK-SourceAnalysis-job.yml

* Delete WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update ProjectReunion-CI.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update build-mrt.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Do a compiler options pass on all binaries contributing to WinAppSDK (#2629)

Tweak various compiler options for optimization (e.g. /GR-) and correctness/productivity (e.g. /W4).

Project-wide standardization via new \WindowsAppSDK.Build.Cpp.props. See for more details.

Corrected several inconsistencies across projects e.g. given Debug|Release + x86+x64+arm64 = 6 permutations, but some projects had an option set for only 5, or only 1. Most projects were mostly already setting most of these options so their changes were mostly removing the now-redundant project-specific setting and let the top-level project-wide standards handle it.

This now standardizes all C++ projects to...
* Compile (all): `/W4 /sdl /permissive- /std:c++17 /GR-` (except 2 projects that explicitly set `/std:c++20`)
* Compile (debug): `/Od`
* Compile (release): `/GS /GF /GL /Gy /Gw /Ob2 /Oi /Os /Oy`
* Link (debug) `/DEBUG:FULL /INCREMENTAL`
* Link (release): `/INCREMENTAL:NO /LTCG /OPT:ICF /OPT:REF`

https://task.ms/39994837 Foundation

https://task.ms/39994852 MRTCore

* Add standardized (project-wide) C++ compile and link options

* Remove ARM support (not supported, but some ARM-conditional fragments weren't removed)

* Removed <WarningLevel> from all projects. Fixed up warnings masked by projects who'd set Level3

* Added SDLCheck for all builds. Added Disable-Optimization for Debug builds. Remove properties in *vcxproj redundnat with standardized options

* Removed redundant <Optimization> from *vcxproj

* Fixed warnings. Removed unnecessary delayload

* Fixed some inconsistencies in project settings

* Fixed AccessControlTests weren't copying the Bootstrap dll to the test's OutDir and thus the test dll wouldn't load

* Fix some warnings in MRT. Had to disable read-only string pooling and strictstrings as workaround for some funky issues in MrtBaseUnitTests for now; filed bug for follow up to fix the errors

* Corrected some comments. Added the missing LTCG option

* Changed LTCG from fast to normal

* Updated FavorSizeOrSpeed to Size instead of Speed

* Move LinkIncremental=false for Release builds to the top-level project-wide standard

* Host LinkIncremental=true if Configuration=Debug to be project wide setting (projects were routinely doing this locally, but inconsistently)

* Fixed a comment

* Added a cautionary note about why Detours.vcxproj has seemingly redundant or contradictory options and to be wary of making any changes

* Removed options redundant with WindowsAppSDK.Build.Cpp.props

* Elevate GenerateDebugInformation=Full to project-wide and remove redundancies. Move dev\WindowsAppSDK.Build.Cpp.props content to project wide (not just \dev) and delete the now obsolete dev\WindowsAppSDK.Build.Cpp.props (really only amounted to /ZH:SHA_256).

* Incorporated feedback

* Overhaul NuGet versions to include "main" or "develop" (#2636)

* Some old MSTest.pfx references were lingering (and now breaking things) (#2638)

* Installation with System-Account doesn't work #2546 (#2565)

* Installation with System-Account doesn't work #2546 
Co-authored-by: Santosh Chintalapati <[email protected]>

* Fix the .NET SDK installer script used by MRT Core, and don't run the script anymore (#2640)

* Fix the .NET SDK install script.

* Remove .NET SDK version from global.json file.

* Don't run the DownloadDotNetCoreSdk.ps1 script in the pipeline.

* Update build-mrt.yml

* Update DownloadDotNetCoreSdk.ps1

* Update global.json

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update global.json

* Update global.json

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Add 1.1.1 & 1.0.4 to bug template and remove outdated versions (#2627)

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-CI.yml

* Update Newtonsoft.Json explicit reference in Dev16 projects to work around vulnerability in older versions (#2662)

Co-authored-by: James Parsons <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Kyaw Thant <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: alexlamtest <[email protected]>
Co-authored-by: Jeff Genovy <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>
Co-authored-by: Ryan Shepherd <[email protected]>

* FI develop into Content Builder feature branch (#2717)

* update newtonsoft.json (#2688)

* Introduce Register Overload for assets (#2596)

* Introduce Register Overload for assets

* Address comments

* Add contractversion to register APi

* Address comments

* Add more examples of register API usage

* Process doc for develop branch (#2383)

* Add 1.1.2 tag to bug report

Co-authored-by: Hui Chen <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Sharath Manchala <[email protected]>
Co-authored-by: MikeHillberg <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>

* FI develop into notification feature branch (#2733)

* update newtonsoft.json (#2688)

* Introduce Register Overload for assets (#2596)

* Introduce Register Overload for assets

* Address comments

* Add contractversion to register APi

* Address comments

* Add more examples of register API usage

* Process doc for develop branch (#2383)

* Add 1.1.2 tag to bug report

* Properly ignore cleanup event if it can't be opened. (#2658)

If we can't open the cleanup event, ignore it.

Fixes ADO#38606299

* WindowsAppRuntimeInstaller.exe fails if newer version present

Discussion #2708: [WindowsAppRuntime installation error: The package could not be installed because a higher version of this package is already installed](#2708)

>Microsoft.WindowsAppRuntime.1.1_1000.516.2156.0_x64__8wekyb3d8bbwe Package deployment result : 0x80073d06 The package could not be installed because a higher version of this package is already installed. One or more install operations failed. Result: 0x80073d06

That's a bug - it should be OK, not an error.

If v1.1.3 is installed and you run the installer for v1.1.2 we call packageManager.AddPackageAsync(...v1.1.2...) which returns 0x80073d06 == `ERROR_INSTALL_PACKAGE_DOWNGRADE` which is technically an error but functionally it's OK. If you build with 1.1.2 we don't require the runtime packages exactly match 1.1.2, but rather that there needs to be a package equal-or-higher than 1.1.2 (i.e. `>=1.1.2` not `==1.1.2`). If 1.1.3 is installed then all is well.

Problem is we should be trapping `ERROR_INSTALL_PACKAGE_DOWNGRADE` and treating it as success. That's a bug on our part. 

https://task.ms/40411617

FYI: servicing-consider-1.1 = https://task.ms/40411679

* XCOPY command should be <COPY> to ensure execution (#2734)

* XCOPY command should be XCOPY.EXE to ensure execution

* Changed xcopy.exe to <Copy>

* Fix typo

* Put AccessControl files into transport package (#2751)

* Add projection DLL

* Put files into nuget package

* Remove noexcept from Bootstrapper API so it can be used from C (#2750)

* Remove noexcept from Bootstrapper API so it can be used from C

* Switch noexcept to macro-style optional support per feedback

* Update bug version to 1.1.3 (#2757)

* <Copy> vs XCOPY.EXE -- Unbreak WindowsAppSDK-Nuget-Native.C.props

Not-Build break 'build\native\WindowsAppSDK-Nuget-Native.C.props(32,13): error MSB4066: The attribute 'SourceFiles' in element is unrecognized.' -- Foundation builds but the aggregator doesn't. I suspect it's because of the command can't go in a , maybe something more complicated with the PostBuildEvent DependsOn a to do the copy...but I can't find any clear docs or net links clearly spelling it out so rather than fiddling while Rome burns I'm switching back to the original xcopy.exe solution to un-break the pipeline.

Will follow up with folks to understand why the PR's build didn't pick this up

* Updating reference to pick up license installation fix. (#2531) (#2764)

Co-authored-by: Ben Kuhn <[email protected]>

Co-authored-by: Hui Chen <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Sharath Manchala <[email protected]>
Co-authored-by: MikeHillberg <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Johan Laanstra <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>
Co-authored-by: Ryan Shepherd <[email protected]>
Co-authored-by: sachintaMSFT <[email protected]>
Co-authored-by: Ben Kuhn <[email protected]>

* Missed a few patches during previous merge

Co-authored-by: Kyaw Thant <[email protected]>
Co-authored-by: Will Thant <[email protected]>
Co-authored-by: Joshua Larkin <[email protected]>
Co-authored-by: Rohan Palaniappan <[email protected]>
Co-authored-by: Scott Jones <[email protected]>
Co-authored-by: sachintaMSFT <[email protected]>
Co-authored-by: Santosh Chintalapati <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>
Co-authored-by: alexlamtest <[email protected]>
Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Sharath Manchala <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: James Parsons <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: Jeff Genovy <[email protected]>
Co-authored-by: Ryan Shepherd <[email protected]>
Co-authored-by: Hui Chen <[email protected]>
Co-authored-by: MikeHillberg <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Johan Laanstra <[email protected]>
Co-authored-by: Ben Kuhn <[email protected]>
loneursid added a commit that referenced this issue Aug 4, 2022
* FI develop into WNP_ContentBuilder_Prev1 (#2656)

* Fix issue where WinUI C# and C++ item templates are not appearing in WinUI projects

* Making EM RS5+. Limiting the tracking capability to Windows11+ (Spec) (#2544)

* Updating spec

* Adressing comments

* More changes

Co-authored-by: Darren Hoehna <[email protected]>

* Create a pipeline to automate FIs from main to develop (#2610)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592 (#2608)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592

* Telemetry char/string. AppData DataStore-1.0.

* Retrieve the *Main* package's family name for AppData

* Add/Remove the test Main package (DataStore) just like we do the test Framework

* Detoured GetCurrentPackageInfo3() should route to the OS any PackageInfoType value it doesn't handle (#2623)

* Create tsaoptions.json

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Delete WindowsAppSDK-SourceAnalysis-job.yml

* Delete WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update ProjectReunion-CI.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update build-mrt.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Do a compiler options pass on all binaries contributing to WinAppSDK (#2629)

Tweak various compiler options for optimization (e.g. /GR-) and correctness/productivity (e.g. /W4).

Project-wide standardization via new \WindowsAppSDK.Build.Cpp.props. See for more details.

Corrected several inconsistencies across projects e.g. given Debug|Release + x86+x64+arm64 = 6 permutations, but some projects had an option set for only 5, or only 1. Most projects were mostly already setting most of these options so their changes were mostly removing the now-redundant project-specific setting and let the top-level project-wide standards handle it.

This now standardizes all C++ projects to...
* Compile (all): `/W4 /sdl /permissive- /std:c++17 /GR-` (except 2 projects that explicitly set `/std:c++20`)
* Compile (debug): `/Od`
* Compile (release): `/GS /GF /GL /Gy /Gw /Ob2 /Oi /Os /Oy`
* Link (debug) `/DEBUG:FULL /INCREMENTAL`
* Link (release): `/INCREMENTAL:NO /LTCG /OPT:ICF /OPT:REF`

https://task.ms/39994837 Foundation

https://task.ms/39994852 MRTCore

* Add standardized (project-wide) C++ compile and link options

* Remove ARM support (not supported, but some ARM-conditional fragments weren't removed)

* Removed <WarningLevel> from all projects. Fixed up warnings masked by projects who'd set Level3

* Added SDLCheck for all builds. Added Disable-Optimization for Debug builds. Remove properties in *vcxproj redundnat with standardized options

* Removed redundant <Optimization> from *vcxproj

* Fixed warnings. Removed unnecessary delayload

* Fixed some inconsistencies in project settings

* Fixed AccessControlTests weren't copying the Bootstrap dll to the test's OutDir and thus the test dll wouldn't load

* Fix some warnings in MRT. Had to disable read-only string pooling and strictstrings as workaround for some funky issues in MrtBaseUnitTests for now; filed bug for follow up to fix the errors

* Corrected some comments. Added the missing LTCG option

* Changed LTCG from fast to normal

* Updated FavorSizeOrSpeed to Size instead of Speed

* Move LinkIncremental=false for Release builds to the top-level project-wide standard

* Host LinkIncremental=true if Configuration=Debug to be project wide setting (projects were routinely doing this locally, but inconsistently)

* Fixed a comment

* Added a cautionary note about why Detours.vcxproj has seemingly redundant or contradictory options and to be wary of making any changes

* Removed options redundant with WindowsAppSDK.Build.Cpp.props

* Elevate GenerateDebugInformation=Full to project-wide and remove redundancies. Move dev\WindowsAppSDK.Build.Cpp.props content to project wide (not just \dev) and delete the now obsolete dev\WindowsAppSDK.Build.Cpp.props (really only amounted to /ZH:SHA_256).

* Incorporated feedback

* Overhaul NuGet versions to include "main" or "develop" (#2636)

* Some old MSTest.pfx references were lingering (and now breaking things) (#2638)

* Installation with System-Account doesn't work #2546 (#2565)

* Installation with System-Account doesn't work #2546 
Co-authored-by: Santosh Chintalapati <[email protected]>

* Fix the .NET SDK installer script used by MRT Core, and don't run the script anymore (#2640)

* Fix the .NET SDK install script.

* Remove .NET SDK version from global.json file.

* Don't run the DownloadDotNetCoreSdk.ps1 script in the pipeline.

* Update build-mrt.yml

* Update DownloadDotNetCoreSdk.ps1

* Update global.json

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update global.json

* Update global.json

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Add 1.1.1 & 1.0.4 to bug template and remove outdated versions (#2627)

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-CI.yml

Co-authored-by: James Parsons <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Kyaw Thant <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: alexlamtest <[email protected]>
Co-authored-by: Jeff Genovy <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>

* User/erlangl/fi develop into feature (#2660)

* Fix issue where WinUI C# and C++ item templates are not appearing in WinUI projects

* Making EM RS5+. Limiting the tracking capability to Windows11+ (Spec) (#2544)

* Updating spec

* Adressing comments

* More changes

Co-authored-by: Darren Hoehna <[email protected]>

* Create a pipeline to automate FIs from main to develop (#2610)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592 (#2608)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592

* Telemetry char/string. AppData DataStore-1.0.

* Retrieve the *Main* package's family name for AppData

* Add/Remove the test Main package (DataStore) just like we do the test Framework

* Detoured GetCurrentPackageInfo3() should route to the OS any PackageInfoType value it doesn't handle (#2623)

* Create tsaoptions.json

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Delete WindowsAppSDK-SourceAnalysis-job.yml

* Delete WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update ProjectReunion-CI.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update build-mrt.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Do a compiler options pass on all binaries contributing to WinAppSDK (#2629)

Tweak various compiler options for optimization (e.g. /GR-) and correctness/productivity (e.g. /W4).

Project-wide standardization via new \WindowsAppSDK.Build.Cpp.props. See for more details.

Corrected several inconsistencies across projects e.g. given Debug|Release + x86+x64+arm64 = 6 permutations, but some projects had an option set for only 5, or only 1. Most projects were mostly already setting most of these options so their changes were mostly removing the now-redundant project-specific setting and let the top-level project-wide standards handle it.

This now standardizes all C++ projects to...
* Compile (all): `/W4 /sdl /permissive- /std:c++17 /GR-` (except 2 projects that explicitly set `/std:c++20`)
* Compile (debug): `/Od`
* Compile (release): `/GS /GF /GL /Gy /Gw /Ob2 /Oi /Os /Oy`
* Link (debug) `/DEBUG:FULL /INCREMENTAL`
* Link (release): `/INCREMENTAL:NO /LTCG /OPT:ICF /OPT:REF`

https://task.ms/39994837 Foundation

https://task.ms/39994852 MRTCore

* Add standardized (project-wide) C++ compile and link options

* Remove ARM support (not supported, but some ARM-conditional fragments weren't removed)

* Removed <WarningLevel> from all projects. Fixed up warnings masked by projects who'd set Level3

* Added SDLCheck for all builds. Added Disable-Optimization for Debug builds. Remove properties in *vcxproj redundnat with standardized options

* Removed redundant <Optimization> from *vcxproj

* Fixed warnings. Removed unnecessary delayload

* Fixed some inconsistencies in project settings

* Fixed AccessControlTests weren't copying the Bootstrap dll to the test's OutDir and thus the test dll wouldn't load

* Fix some warnings in MRT. Had to disable read-only string pooling and strictstrings as workaround for some funky issues in MrtBaseUnitTests for now; filed bug for follow up to fix the errors

* Corrected some comments. Added the missing LTCG option

* Changed LTCG from fast to normal

* Updated FavorSizeOrSpeed to Size instead of Speed

* Move LinkIncremental=false for Release builds to the top-level project-wide standard

* Host LinkIncremental=true if Configuration=Debug to be project wide setting (projects were routinely doing this locally, but inconsistently)

* Fixed a comment

* Added a cautionary note about why Detours.vcxproj has seemingly redundant or contradictory options and to be wary of making any changes

* Removed options redundant with WindowsAppSDK.Build.Cpp.props

* Elevate GenerateDebugInformation=Full to project-wide and remove redundancies. Move dev\WindowsAppSDK.Build.Cpp.props content to project wide (not just \dev) and delete the now obsolete dev\WindowsAppSDK.Build.Cpp.props (really only amounted to /ZH:SHA_256).

* Incorporated feedback

* Overhaul NuGet versions to include "main" or "develop" (#2636)

* Some old MSTest.pfx references were lingering (and now breaking things) (#2638)

* Installation with System-Account doesn't work #2546 (#2565)

* Installation with System-Account doesn't work #2546 
Co-authored-by: Santosh Chintalapati <[email protected]>

* Fix the .NET SDK installer script used by MRT Core, and don't run the script anymore (#2640)

* Fix the .NET SDK install script.

* Remove .NET SDK version from global.json file.

* Don't run the DownloadDotNetCoreSdk.ps1 script in the pipeline.

* Update build-mrt.yml

* Update DownloadDotNetCoreSdk.ps1

* Update global.json

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update global.json

* Update global.json

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Add 1.1.1 & 1.0.4 to bug template and remove outdated versions (#2627)

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-CI.yml

* Update Newtonsoft.Json explicit reference in Dev16 projects to work around vulnerability in older versions (#2662)

Co-authored-by: James Parsons <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Kyaw Thant <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: alexlamtest <[email protected]>
Co-authored-by: Jeff Genovy <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>
Co-authored-by: Ryan Shepherd <[email protected]>

* FI develop into Content Builder feature branch (#2717)

* update newtonsoft.json (#2688)

* Introduce Register Overload for assets (#2596)

* Introduce Register Overload for assets

* Address comments

* Add contractversion to register APi

* Address comments

* Add more examples of register API usage

* Process doc for develop branch (#2383)

* Add 1.1.2 tag to bug report

Co-authored-by: Hui Chen <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Sharath Manchala <[email protected]>
Co-authored-by: MikeHillberg <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>

* FI develop into notification feature branch (#2733)

* update newtonsoft.json (#2688)

* Introduce Register Overload for assets (#2596)

* Introduce Register Overload for assets

* Address comments

* Add contractversion to register APi

* Address comments

* Add more examples of register API usage

* Process doc for develop branch (#2383)

* Add 1.1.2 tag to bug report

* Properly ignore cleanup event if it can't be opened. (#2658)

If we can't open the cleanup event, ignore it.

Fixes ADO#38606299

* WindowsAppRuntimeInstaller.exe fails if newer version present

Discussion #2708: [WindowsAppRuntime installation error: The package could not be installed because a higher version of this package is already installed](#2708)

>Microsoft.WindowsAppRuntime.1.1_1000.516.2156.0_x64__8wekyb3d8bbwe Package deployment result : 0x80073d06 The package could not be installed because a higher version of this package is already installed. One or more install operations failed. Result: 0x80073d06

That's a bug - it should be OK, not an error.

If v1.1.3 is installed and you run the installer for v1.1.2 we call packageManager.AddPackageAsync(...v1.1.2...) which returns 0x80073d06 == `ERROR_INSTALL_PACKAGE_DOWNGRADE` which is technically an error but functionally it's OK. If you build with 1.1.2 we don't require the runtime packages exactly match 1.1.2, but rather that there needs to be a package equal-or-higher than 1.1.2 (i.e. `>=1.1.2` not `==1.1.2`). If 1.1.3 is installed then all is well.

Problem is we should be trapping `ERROR_INSTALL_PACKAGE_DOWNGRADE` and treating it as success. That's a bug on our part. 

https://task.ms/40411617

FYI: servicing-consider-1.1 = https://task.ms/40411679

* XCOPY command should be <COPY> to ensure execution (#2734)

* XCOPY command should be XCOPY.EXE to ensure execution

* Changed xcopy.exe to <Copy>

* Fix typo

* Put AccessControl files into transport package (#2751)

* Add projection DLL

* Put files into nuget package

* Remove noexcept from Bootstrapper API so it can be used from C (#2750)

* Remove noexcept from Bootstrapper API so it can be used from C

* Switch noexcept to macro-style optional support per feedback

* Update bug version to 1.1.3 (#2757)

* <Copy> vs XCOPY.EXE -- Unbreak WindowsAppSDK-Nuget-Native.C.props

Not-Build break 'build\native\WindowsAppSDK-Nuget-Native.C.props(32,13): error MSB4066: The attribute 'SourceFiles' in element is unrecognized.' -- Foundation builds but the aggregator doesn't. I suspect it's because of the command can't go in a , maybe something more complicated with the PostBuildEvent DependsOn a to do the copy...but I can't find any clear docs or net links clearly spelling it out so rather than fiddling while Rome burns I'm switching back to the original xcopy.exe solution to un-break the pipeline.

Will follow up with folks to understand why the PR's build didn't pick this up

* Updating reference to pick up license installation fix. (#2531) (#2764)

Co-authored-by: Ben Kuhn <[email protected]>

Co-authored-by: Hui Chen <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Sharath Manchala <[email protected]>
Co-authored-by: MikeHillberg <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Johan Laanstra <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>
Co-authored-by: Ryan Shepherd <[email protected]>
Co-authored-by: sachintaMSFT <[email protected]>
Co-authored-by: Ben Kuhn <[email protected]>

* AppNotificationBuilder features (#2786)

* First iteration

* Fix formatting issues

* Remove all references to toast

* Add ProgressBar

* Remove getters and other nits

* Add XML outputs for all examples

* Update examples and fix missing png

* Add limitations

* Add ArgumentSerializer and rename APIs

* Fix some nits

* Fix audio ctors

* Add Deserializer functions and example

* Apply review changes

* Update AppNotificationBuilder-spec.md

* Initial commit

* Working on it

* Add AppNotificationContent

* Current impl

* Working on unit tests

* Added unit tests

* Add Audio tests

* Update APITests.cpp

* Remove spec from PR

* Rename AppNotification Builder API to match specs (#2766)

* Renaming to match specs

* Adding latest changes to specs

* Code cleanup

* Updating to reflect latest changes to the specs doc

Co-authored-by: Eric Langlois <[email protected]>

* Update the spec with BuildNotification

* Remove unused files

* Add copyright to all files

* Update AppNotificationBuilder.idl

Adding copyright notice

* Update pch.cpp

Adding copyright notice

* Update WindowsAppRuntime_DLL.vcxproj

Removing references to fmt lib

* Update packages.config

Removing reference to fmt

* Update AppNotificationBuilder.cpp

Removing fmt since we won't be using and to unblock the build pipelines

* Addressing comments

* Update error codes with messages

* Add helper file

* Add SetTimestamp impl

* Add AppNotificationAudioLooping

* Add IsSupported to attributes

Co-authored-by: eric langlois <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>

* AppNotificationContent Builder 1.2 spec (#2648)

* First iteration

* Fix formatting issues

* Remove all references to toast

* Add ProgressBar

* Remove getters and other nits

* Add XML outputs for all examples

* Update examples and fix missing png

* Add limitations

* Add ArgumentSerializer and rename APIs

* Fix some nits

* Fix audio ctors

* Add Deserializer functions and example

* Apply review changes

* Update AppNotificationBuilder-spec.md

* Update AppNotificationBuilder-spec.md

* Update AppNotificationBuilder-spec.md

* Update spec example with changes

* Rename selectionMenu to ComboBox

* Update AppNotificationBuilder-spec.md

* Incorporate feedback

* Update spec

* Address feedback

* Update spec

* Update AppNotificationBuilder-spec.md

* Address some more nits

* Update AppNotificationBuilder-spec.md

* Rename ButtonColor to AppNotificationButtonStyle

* Committing PR renames and fixes

* Address more spec comments

* Rename AppNotificationContent->AppNotificationBuilder

* Update AppNotificationBuilder-spec.md

* Add Tag/Group

* Update sample

Co-authored-by: Alexander Sklar <[email protected]>

* Update AppNotificationBuilder-spec.md

* Rename ImageCrop->AppNotificationImageCrop

* Fix spec samples

* Reduce number of comments in idl

* Add Is*Supported functions to limitations

* Update Audio loop param to enum

Co-authored-by: Alexander Sklar <[email protected]>

* AppNotificationBuilder - Code Improvements (#2801)

* Addressing nits from a previous PR

* Uniform naming for tests

* Addressing PR feedback

* IsWindows... is the standard method for checking Windows version

* nit

Co-authored-by: Eric Langlois <[email protected]>

* AppNotificationContent Builder Core Features - part II (#2760)

* First iteration

* Fix formatting issues

* Remove all references to toast

* Add ProgressBar

* Remove getters and other nits

* Add XML outputs for all examples

* Update examples and fix missing png

* Add limitations

* Add ArgumentSerializer and rename APIs

* Fix some nits

* Fix audio ctors

* Add Deserializer functions and example

* Apply review changes

* Update AppNotificationBuilder-spec.md

* Initial commit

* Working on it

* Add AppNotificationContent

* Current impl

* Working on unit tests

* Added unit tests

* Add Audio tests

* Update APITests.cpp

* Remove spec from PR

* Rename AppNotification Builder API to match specs (#2766)

* Renaming to match specs

* Adding latest changes to specs

* Code cleanup

* Updating to reflect latest changes to the specs doc

Co-authored-by: Eric Langlois <[email protected]>

* Update the spec with BuildNotification

* Remove unused files

* Add copyright to all files

* Update AppNotificationBuilder.idl

Adding copyright notice

* Update pch.cpp

Adding copyright notice

* Update WindowsAppRuntime_DLL.vcxproj

Removing references to fmt lib

* Update packages.config

Removing reference to fmt

* Update AppNotificationBuilder.cpp

Removing fmt since we won't be using and to unblock the build pipelines

* Addressing comments

* Update error codes with messages

* Add helper file

* Add SetTimestamp impl

* Add AppNotificationAudioLooping

* Add IsSupported to attributes

* AddTextBox

* AddTextBox with PlaceHolderText and Title

* consexpr all the things

* code cleanup

* AddComboBox

* Improving validation for selection items

* Input element limit is for textbox and comboBox combined

* formating

* struct isn't required unless we decide to do extra validation in the future

* PR feedback

* Check for non-empty IDs

Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>

* AppNotificationBuilder - ProgressBar (#2780)

* First iteration

* Fix formatting issues

* Remove all references to toast

* Add ProgressBar

* Remove getters and other nits

* Add XML outputs for all examples

* Update examples and fix missing png

* Add limitations

* Add ArgumentSerializer and rename APIs

* Fix some nits

* Fix audio ctors

* Add Deserializer functions and example

* Apply review changes

* Update AppNotificationBuilder-spec.md

* Initial commit

* Working on it

* Add AppNotificationContent

* Current impl

* Working on unit tests

* Added unit tests

* Add Audio tests

* Update APITests.cpp

* Remove spec from PR

* Rename AppNotification Builder API to match specs (#2766)

* Renaming to match specs

* Adding latest changes to specs

* Code cleanup

* Updating to reflect latest changes to the specs doc

Co-authored-by: Eric Langlois <[email protected]>

* Initial implementation

* Update the spec with BuildNotification

* Remove unused files

* Add copyright to all files

* Update AppNotificationBuilder.idl

Adding copyright notice

* Update pch.cpp

Adding copyright notice

* Update WindowsAppRuntime_DLL.vcxproj

Removing references to fmt lib

* Update packages.config

Removing reference to fmt

* Update AppNotificationBuilder.cpp

Removing fmt since we won't be using and to unblock the build pipelines

* Fixing build break

* Addressing comments

* Update error codes with messages

* Add helper file

* Add SetTimestamp impl

* Add AppNotificationAudioLooping

* Add IsSupported to attributes

* Don't mix binding and value states

* Code cleanup

* Using printf as it is the norm for the builder

* look proper

* spacing

* Reorder functions in idl to help github track changes properly

* Keeping all progressBar tests together

* PR feedback

Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>

* Encoding/Decoding AppNotificationBuilder arguments (#2805)

* Encode arguments

* Argument encode/decode

* Fix merge issues

* Add Decode unit test

* Use regex_replace instead

* Address nits

* Simplify encoding

* Added XML escape encodings, need to improve Decode efficiency

* Implement efficient decode

* Update APITests.cpp

* Add unit tests and encode all custom strings

Co-authored-by: eric langlois <[email protected]>

Co-authored-by: James Parsons <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Kyaw Thant <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: alexlamtest <[email protected]>
Co-authored-by: Jeff Genovy <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>
Co-authored-by: Ryan Shepherd <[email protected]>
Co-authored-by: Will Thant <[email protected]>
Co-authored-by: Hui Chen <[email protected]>
Co-authored-by: Sharath Manchala <[email protected]>
Co-authored-by: MikeHillberg <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Johan Laanstra <[email protected]>
Co-authored-by: sachintaMSFT <[email protected]>
Co-authored-by: Ben Kuhn <[email protected]>
Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Alexander Sklar <[email protected]>
Co-authored-by: Paul Purifoy <[email protected]>
loneursid added a commit that referenced this issue Aug 4, 2022
* FI develop into WNP_ContentBuilder_Prev1 (#2656)

* Fix issue where WinUI C# and C++ item templates are not appearing in WinUI projects

* Making EM RS5+. Limiting the tracking capability to Windows11+ (Spec) (#2544)

* Updating spec

* Adressing comments

* More changes

Co-authored-by: Darren Hoehna <[email protected]>

* Create a pipeline to automate FIs from main to develop (#2610)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592 (#2608)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592

* Telemetry char/string. AppData DataStore-1.0.

* Retrieve the *Main* package's family name for AppData

* Add/Remove the test Main package (DataStore) just like we do the test Framework

* Detoured GetCurrentPackageInfo3() should route to the OS any PackageInfoType value it doesn't handle (#2623)

* Create tsaoptions.json

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Delete WindowsAppSDK-SourceAnalysis-job.yml

* Delete WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update ProjectReunion-CI.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update build-mrt.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Do a compiler options pass on all binaries contributing to WinAppSDK (#2629)

Tweak various compiler options for optimization (e.g. /GR-) and correctness/productivity (e.g. /W4).

Project-wide standardization via new \WindowsAppSDK.Build.Cpp.props. See for more details.

Corrected several inconsistencies across projects e.g. given Debug|Release + x86+x64+arm64 = 6 permutations, but some projects had an option set for only 5, or only 1. Most projects were mostly already setting most of these options so their changes were mostly removing the now-redundant project-specific setting and let the top-level project-wide standards handle it.

This now standardizes all C++ projects to...
* Compile (all): `/W4 /sdl /permissive- /std:c++17 /GR-` (except 2 projects that explicitly set `/std:c++20`)
* Compile (debug): `/Od`
* Compile (release): `/GS /GF /GL /Gy /Gw /Ob2 /Oi /Os /Oy`
* Link (debug) `/DEBUG:FULL /INCREMENTAL`
* Link (release): `/INCREMENTAL:NO /LTCG /OPT:ICF /OPT:REF`

https://task.ms/39994837 Foundation

https://task.ms/39994852 MRTCore

* Add standardized (project-wide) C++ compile and link options

* Remove ARM support (not supported, but some ARM-conditional fragments weren't removed)

* Removed <WarningLevel> from all projects. Fixed up warnings masked by projects who'd set Level3

* Added SDLCheck for all builds. Added Disable-Optimization for Debug builds. Remove properties in *vcxproj redundnat with standardized options

* Removed redundant <Optimization> from *vcxproj

* Fixed warnings. Removed unnecessary delayload

* Fixed some inconsistencies in project settings

* Fixed AccessControlTests weren't copying the Bootstrap dll to the test's OutDir and thus the test dll wouldn't load

* Fix some warnings in MRT. Had to disable read-only string pooling and strictstrings as workaround for some funky issues in MrtBaseUnitTests for now; filed bug for follow up to fix the errors

* Corrected some comments. Added the missing LTCG option

* Changed LTCG from fast to normal

* Updated FavorSizeOrSpeed to Size instead of Speed

* Move LinkIncremental=false for Release builds to the top-level project-wide standard

* Host LinkIncremental=true if Configuration=Debug to be project wide setting (projects were routinely doing this locally, but inconsistently)

* Fixed a comment

* Added a cautionary note about why Detours.vcxproj has seemingly redundant or contradictory options and to be wary of making any changes

* Removed options redundant with WindowsAppSDK.Build.Cpp.props

* Elevate GenerateDebugInformation=Full to project-wide and remove redundancies. Move dev\WindowsAppSDK.Build.Cpp.props content to project wide (not just \dev) and delete the now obsolete dev\WindowsAppSDK.Build.Cpp.props (really only amounted to /ZH:SHA_256).

* Incorporated feedback

* Overhaul NuGet versions to include "main" or "develop" (#2636)

* Some old MSTest.pfx references were lingering (and now breaking things) (#2638)

* Installation with System-Account doesn't work #2546 (#2565)

* Installation with System-Account doesn't work #2546 
Co-authored-by: Santosh Chintalapati <[email protected]>

* Fix the .NET SDK installer script used by MRT Core, and don't run the script anymore (#2640)

* Fix the .NET SDK install script.

* Remove .NET SDK version from global.json file.

* Don't run the DownloadDotNetCoreSdk.ps1 script in the pipeline.

* Update build-mrt.yml

* Update DownloadDotNetCoreSdk.ps1

* Update global.json

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update global.json

* Update global.json

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Add 1.1.1 & 1.0.4 to bug template and remove outdated versions (#2627)

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-CI.yml

Co-authored-by: James Parsons <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Kyaw Thant <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: alexlamtest <[email protected]>
Co-authored-by: Jeff Genovy <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>

* User/erlangl/fi develop into feature (#2660)

* Fix issue where WinUI C# and C++ item templates are not appearing in WinUI projects

* Making EM RS5+. Limiting the tracking capability to Windows11+ (Spec) (#2544)

* Updating spec

* Adressing comments

* More changes

Co-authored-by: Darren Hoehna <[email protected]>

* Create a pipeline to automate FIs from main to develop (#2610)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592 (#2608)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592

* Telemetry char/string. AppData DataStore-1.0.

* Retrieve the *Main* package's family name for AppData

* Add/Remove the test Main package (DataStore) just like we do the test Framework

* Detoured GetCurrentPackageInfo3() should route to the OS any PackageInfoType value it doesn't handle (#2623)

* Create tsaoptions.json

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Delete WindowsAppSDK-SourceAnalysis-job.yml

* Delete WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update ProjectReunion-CI.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update build-mrt.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Do a compiler options pass on all binaries contributing to WinAppSDK (#2629)

Tweak various compiler options for optimization (e.g. /GR-) and correctness/productivity (e.g. /W4).

Project-wide standardization via new \WindowsAppSDK.Build.Cpp.props. See for more details.

Corrected several inconsistencies across projects e.g. given Debug|Release + x86+x64+arm64 = 6 permutations, but some projects had an option set for only 5, or only 1. Most projects were mostly already setting most of these options so their changes were mostly removing the now-redundant project-specific setting and let the top-level project-wide standards handle it.

This now standardizes all C++ projects to...
* Compile (all): `/W4 /sdl /permissive- /std:c++17 /GR-` (except 2 projects that explicitly set `/std:c++20`)
* Compile (debug): `/Od`
* Compile (release): `/GS /GF /GL /Gy /Gw /Ob2 /Oi /Os /Oy`
* Link (debug) `/DEBUG:FULL /INCREMENTAL`
* Link (release): `/INCREMENTAL:NO /LTCG /OPT:ICF /OPT:REF`

https://task.ms/39994837 Foundation

https://task.ms/39994852 MRTCore

* Add standardized (project-wide) C++ compile and link options

* Remove ARM support (not supported, but some ARM-conditional fragments weren't removed)

* Removed <WarningLevel> from all projects. Fixed up warnings masked by projects who'd set Level3

* Added SDLCheck for all builds. Added Disable-Optimization for Debug builds. Remove properties in *vcxproj redundnat with standardized options

* Removed redundant <Optimization> from *vcxproj

* Fixed warnings. Removed unnecessary delayload

* Fixed some inconsistencies in project settings

* Fixed AccessControlTests weren't copying the Bootstrap dll to the test's OutDir and thus the test dll wouldn't load

* Fix some warnings in MRT. Had to disable read-only string pooling and strictstrings as workaround for some funky issues in MrtBaseUnitTests for now; filed bug for follow up to fix the errors

* Corrected some comments. Added the missing LTCG option

* Changed LTCG from fast to normal

* Updated FavorSizeOrSpeed to Size instead of Speed

* Move LinkIncremental=false for Release builds to the top-level project-wide standard

* Host LinkIncremental=true if Configuration=Debug to be project wide setting (projects were routinely doing this locally, but inconsistently)

* Fixed a comment

* Added a cautionary note about why Detours.vcxproj has seemingly redundant or contradictory options and to be wary of making any changes

* Removed options redundant with WindowsAppSDK.Build.Cpp.props

* Elevate GenerateDebugInformation=Full to project-wide and remove redundancies. Move dev\WindowsAppSDK.Build.Cpp.props content to project wide (not just \dev) and delete the now obsolete dev\WindowsAppSDK.Build.Cpp.props (really only amounted to /ZH:SHA_256).

* Incorporated feedback

* Overhaul NuGet versions to include "main" or "develop" (#2636)

* Some old MSTest.pfx references were lingering (and now breaking things) (#2638)

* Installation with System-Account doesn't work #2546 (#2565)

* Installation with System-Account doesn't work #2546 
Co-authored-by: Santosh Chintalapati <[email protected]>

* Fix the .NET SDK installer script used by MRT Core, and don't run the script anymore (#2640)

* Fix the .NET SDK install script.

* Remove .NET SDK version from global.json file.

* Don't run the DownloadDotNetCoreSdk.ps1 script in the pipeline.

* Update build-mrt.yml

* Update DownloadDotNetCoreSdk.ps1

* Update global.json

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update global.json

* Update global.json

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Add 1.1.1 & 1.0.4 to bug template and remove outdated versions (#2627)

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-CI.yml

* Update Newtonsoft.Json explicit reference in Dev16 projects to work around vulnerability in older versions (#2662)

Co-authored-by: James Parsons <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Kyaw Thant <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: alexlamtest <[email protected]>
Co-authored-by: Jeff Genovy <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>
Co-authored-by: Ryan Shepherd <[email protected]>

* FI develop into Content Builder feature branch (#2717)

* update newtonsoft.json (#2688)

* Introduce Register Overload for assets (#2596)

* Introduce Register Overload for assets

* Address comments

* Add contractversion to register APi

* Address comments

* Add more examples of register API usage

* Process doc for develop branch (#2383)

* Add 1.1.2 tag to bug report

Co-authored-by: Hui Chen <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Sharath Manchala <[email protected]>
Co-authored-by: MikeHillberg <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>

* FI develop into notification feature branch (#2733)

* update newtonsoft.json (#2688)

* Introduce Register Overload for assets (#2596)

* Introduce Register Overload for assets

* Address comments

* Add contractversion to register APi

* Address comments

* Add more examples of register API usage

* Process doc for develop branch (#2383)

* Add 1.1.2 tag to bug report

* Properly ignore cleanup event if it can't be opened. (#2658)

If we can't open the cleanup event, ignore it.

Fixes ADO#38606299

* WindowsAppRuntimeInstaller.exe fails if newer version present

Discussion #2708: [WindowsAppRuntime installation error: The package could not be installed because a higher version of this package is already installed](#2708)

>Microsoft.WindowsAppRuntime.1.1_1000.516.2156.0_x64__8wekyb3d8bbwe Package deployment result : 0x80073d06 The package could not be installed because a higher version of this package is already installed. One or more install operations failed. Result: 0x80073d06

That's a bug - it should be OK, not an error.

If v1.1.3 is installed and you run the installer for v1.1.2 we call packageManager.AddPackageAsync(...v1.1.2...) which returns 0x80073d06 == `ERROR_INSTALL_PACKAGE_DOWNGRADE` which is technically an error but functionally it's OK. If you build with 1.1.2 we don't require the runtime packages exactly match 1.1.2, but rather that there needs to be a package equal-or-higher than 1.1.2 (i.e. `>=1.1.2` not `==1.1.2`). If 1.1.3 is installed then all is well.

Problem is we should be trapping `ERROR_INSTALL_PACKAGE_DOWNGRADE` and treating it as success. That's a bug on our part. 

https://task.ms/40411617

FYI: servicing-consider-1.1 = https://task.ms/40411679

* XCOPY command should be <COPY> to ensure execution (#2734)

* XCOPY command should be XCOPY.EXE to ensure execution

* Changed xcopy.exe to <Copy>

* Fix typo

* Put AccessControl files into transport package (#2751)

* Add projection DLL

* Put files into nuget package

* Remove noexcept from Bootstrapper API so it can be used from C (#2750)

* Remove noexcept from Bootstrapper API so it can be used from C

* Switch noexcept to macro-style optional support per feedback

* Update bug version to 1.1.3 (#2757)

* <Copy> vs XCOPY.EXE -- Unbreak WindowsAppSDK-Nuget-Native.C.props

Not-Build break 'build\native\WindowsAppSDK-Nuget-Native.C.props(32,13): error MSB4066: The attribute 'SourceFiles' in element is unrecognized.' -- Foundation builds but the aggregator doesn't. I suspect it's because of the command can't go in a , maybe something more complicated with the PostBuildEvent DependsOn a to do the copy...but I can't find any clear docs or net links clearly spelling it out so rather than fiddling while Rome burns I'm switching back to the original xcopy.exe solution to un-break the pipeline.

Will follow up with folks to understand why the PR's build didn't pick this up

* Updating reference to pick up license installation fix. (#2531) (#2764)

Co-authored-by: Ben Kuhn <[email protected]>

Co-authored-by: Hui Chen <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Sharath Manchala <[email protected]>
Co-authored-by: MikeHillberg <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Johan Laanstra <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>
Co-authored-by: Ryan Shepherd <[email protected]>
Co-authored-by: sachintaMSFT <[email protected]>
Co-authored-by: Ben Kuhn <[email protected]>

* AppNotificationBuilder features (#2786)

* First iteration

* Fix formatting issues

* Remove all references to toast

* Add ProgressBar

* Remove getters and other nits

* Add XML outputs for all examples

* Update examples and fix missing png

* Add limitations

* Add ArgumentSerializer and rename APIs

* Fix some nits

* Fix audio ctors

* Add Deserializer functions and example

* Apply review changes

* Update AppNotificationBuilder-spec.md

* Initial commit

* Working on it

* Add AppNotificationContent

* Current impl

* Working on unit tests

* Added unit tests

* Add Audio tests

* Update APITests.cpp

* Remove spec from PR

* Rename AppNotification Builder API to match specs (#2766)

* Renaming to match specs

* Adding latest changes to specs

* Code cleanup

* Updating to reflect latest changes to the specs doc

Co-authored-by: Eric Langlois <[email protected]>

* Update the spec with BuildNotification

* Remove unused files

* Add copyright to all files

* Update AppNotificationBuilder.idl

Adding copyright notice

* Update pch.cpp

Adding copyright notice

* Update WindowsAppRuntime_DLL.vcxproj

Removing references to fmt lib

* Update packages.config

Removing reference to fmt

* Update AppNotificationBuilder.cpp

Removing fmt since we won't be using and to unblock the build pipelines

* Addressing comments

* Update error codes with messages

* Add helper file

* Add SetTimestamp impl

* Add AppNotificationAudioLooping

* Add IsSupported to attributes

Co-authored-by: eric langlois <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>

* AppNotificationContent Builder 1.2 spec (#2648)

* First iteration

* Fix formatting issues

* Remove all references to toast

* Add ProgressBar

* Remove getters and other nits

* Add XML outputs for all examples

* Update examples and fix missing png

* Add limitations

* Add ArgumentSerializer and rename APIs

* Fix some nits

* Fix audio ctors

* Add Deserializer functions and example

* Apply review changes

* Update AppNotificationBuilder-spec.md

* Update AppNotificationBuilder-spec.md

* Update AppNotificationBuilder-spec.md

* Update spec example with changes

* Rename selectionMenu to ComboBox

* Update AppNotificationBuilder-spec.md

* Incorporate feedback

* Update spec

* Address feedback

* Update spec

* Update AppNotificationBuilder-spec.md

* Address some more nits

* Update AppNotificationBuilder-spec.md

* Rename ButtonColor to AppNotificationButtonStyle

* Committing PR renames and fixes

* Address more spec comments

* Rename AppNotificationContent->AppNotificationBuilder

* Update AppNotificationBuilder-spec.md

* Add Tag/Group

* Update sample

Co-authored-by: Alexander Sklar <[email protected]>

* Update AppNotificationBuilder-spec.md

* Rename ImageCrop->AppNotificationImageCrop

* Fix spec samples

* Reduce number of comments in idl

* Add Is*Supported functions to limitations

* Update Audio loop param to enum

Co-authored-by: Alexander Sklar <[email protected]>

* AppNotificationBuilder - Code Improvements (#2801)

* Addressing nits from a previous PR

* Uniform naming for tests

* Addressing PR feedback

* IsWindows... is the standard method for checking Windows version

* nit

Co-authored-by: Eric Langlois <[email protected]>

* AppNotificationContent Builder Core Features - part II (#2760)

* First iteration

* Fix formatting issues

* Remove all references to toast

* Add ProgressBar

* Remove getters and other nits

* Add XML outputs for all examples

* Update examples and fix missing png

* Add limitations

* Add ArgumentSerializer and rename APIs

* Fix some nits

* Fix audio ctors

* Add Deserializer functions and example

* Apply review changes

* Update AppNotificationBuilder-spec.md

* Initial commit

* Working on it

* Add AppNotificationContent

* Current impl

* Working on unit tests

* Added unit tests

* Add Audio tests

* Update APITests.cpp

* Remove spec from PR

* Rename AppNotification Builder API to match specs (#2766)

* Renaming to match specs

* Adding latest changes to specs

* Code cleanup

* Updating to reflect latest changes to the specs doc

Co-authored-by: Eric Langlois <[email protected]>

* Update the spec with BuildNotification

* Remove unused files

* Add copyright to all files

* Update AppNotificationBuilder.idl

Adding copyright notice

* Update pch.cpp

Adding copyright notice

* Update WindowsAppRuntime_DLL.vcxproj

Removing references to fmt lib

* Update packages.config

Removing reference to fmt

* Update AppNotificationBuilder.cpp

Removing fmt since we won't be using and to unblock the build pipelines

* Addressing comments

* Update error codes with messages

* Add helper file

* Add SetTimestamp impl

* Add AppNotificationAudioLooping

* Add IsSupported to attributes

* AddTextBox

* AddTextBox with PlaceHolderText and Title

* consexpr all the things

* code cleanup

* AddComboBox

* Improving validation for selection items

* Input element limit is for textbox and comboBox combined

* formating

* struct isn't required unless we decide to do extra validation in the future

* PR feedback

* Check for non-empty IDs

Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>

* Fixed timestamp parsing

* AppNotificationBuilder - ProgressBar (#2780)

* First iteration

* Fix formatting issues

* Remove all references to toast

* Add ProgressBar

* Remove getters and other nits

* Add XML outputs for all examples

* Update examples and fix missing png

* Add limitations

* Add ArgumentSerializer and rename APIs

* Fix some nits

* Fix audio ctors

* Add Deserializer functions and example

* Apply review changes

* Update AppNotificationBuilder-spec.md

* Initial commit

* Working on it

* Add AppNotificationContent

* Current impl

* Working on unit tests

* Added unit tests

* Add Audio tests

* Update APITests.cpp

* Remove spec from PR

* Rename AppNotification Builder API to match specs (#2766)

* Renaming to match specs

* Adding latest changes to specs

* Code cleanup

* Updating to reflect latest changes to the specs doc

Co-authored-by: Eric Langlois <[email protected]>

* Initial implementation

* Update the spec with BuildNotification

* Remove unused files

* Add copyright to all files

* Update AppNotificationBuilder.idl

Adding copyright notice

* Update pch.cpp

Adding copyright notice

* Update WindowsAppRuntime_DLL.vcxproj

Removing references to fmt lib

* Update packages.config

Removing reference to fmt

* Update AppNotificationBuilder.cpp

Removing fmt since we won't be using and to unblock the build pipelines

* Fixing build break

* Addressing comments

* Update error codes with messages

* Add helper file

* Add SetTimestamp impl

* Add AppNotificationAudioLooping

* Add IsSupported to attributes

* Don't mix binding and value states

* Code cleanup

* Using printf as it is the norm for the builder

* look proper

* spacing

* Reorder functions in idl to help github track changes properly

* Keeping all progressBar tests together

* PR feedback

Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>

* Address nits

* Fix build break in user/purifoypaul/TimestampFix (#2815)

* AppNotificationBuilder - ProgressBar (#2780)

* First iteration

* Fix formatting issues

* Remove all references to toast

* Add ProgressBar

* Remove getters and other nits

* Add XML outputs for all examples

* Update examples and fix missing png

* Add limitations

* Add ArgumentSerializer and rename APIs

* Fix some nits

* Fix audio ctors

* Add Deserializer functions and example

* Apply review changes

* Update AppNotificationBuilder-spec.md

* Initial commit

* Working on it

* Add AppNotificationContent

* Current impl

* Working on unit tests

* Added unit tests

* Add Audio tests

* Update APITests.cpp

* Remove spec from PR

* Rename AppNotification Builder API to match specs (#2766)

* Renaming to match specs

* Adding latest changes to specs

* Code cleanup

* Updating to reflect latest changes to the specs doc

Co-authored-by: Eric Langlois <[email protected]>

* Initial implementation

* Update the spec with BuildNotification

* Remove unused files

* Add copyright to all files

* Update AppNotificationBuilder.idl

Adding copyright notice

* Update pch.cpp

Adding copyright notice

* Update WindowsAppRuntime_DLL.vcxproj

Removing references to fmt lib

* Update packages.config

Removing reference to fmt

* Update AppNotificationBuilder.cpp

Removing fmt since we won't be using and to unblock the build pipelines

* Fixing build break

* Addressing comments

* Update error codes with messages

* Add helper file

* Add SetTimestamp impl

* Add AppNotificationAudioLooping

* Add IsSupported to attributes

* Don't mix binding and value states

* Code cleanup

* Using printf as it is the norm for the builder

* look proper

* spacing

* Reorder functions in idl to help github track changes properly

* Keeping all progressBar tests together

* PR feedback

Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>

* namespace issues

Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>

* Encoding/Decoding AppNotificationBuilder arguments (#2805)

* Encode arguments

* Argument encode/decode

* Fix merge issues

* Add Decode unit test

* Use regex_replace instead

* Address nits

* Simplify encoding

* Added XML escape encodings, need to improve Decode efficiency

* Implement efficient decode

* Update APITests.cpp

* Add unit tests and encode all custom strings

Co-authored-by: eric langlois <[email protected]>

Co-authored-by: eric langlois <[email protected]>
Co-authored-by: James Parsons <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Kyaw Thant <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: alexlamtest <[email protected]>
Co-authored-by: Jeff Genovy <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>
Co-authored-by: Ryan Shepherd <[email protected]>
Co-authored-by: Will Thant <[email protected]>
Co-authored-by: Hui Chen <[email protected]>
Co-authored-by: Sharath Manchala <[email protected]>
Co-authored-by: MikeHillberg <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Johan Laanstra <[email protected]>
Co-authored-by: sachintaMSFT <[email protected]>
Co-authored-by: Ben Kuhn <[email protected]>
Co-authored-by: Alexander Sklar <[email protected]>
EricJohnson327 pushed a commit that referenced this issue Aug 24, 2022
* FI develop into WNP_ContentBuilder_Prev1 (#2656)

* Fix issue where WinUI C# and C++ item templates are not appearing in WinUI projects

* Making EM RS5+. Limiting the tracking capability to Windows11+ (Spec) (#2544)

* Updating spec

* Adressing comments

* More changes

Co-authored-by: Darren Hoehna <[email protected]>

* Create a pipeline to automate FIs from main to develop (#2610)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592 (#2608)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592

* Telemetry char/string. AppData DataStore-1.0.

* Retrieve the *Main* package's family name for AppData

* Add/Remove the test Main package (DataStore) just like we do the test Framework

* Detoured GetCurrentPackageInfo3() should route to the OS any PackageInfoType value it doesn't handle (#2623)

* Create tsaoptions.json

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Delete WindowsAppSDK-SourceAnalysis-job.yml

* Delete WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update ProjectReunion-CI.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update build-mrt.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Do a compiler options pass on all binaries contributing to WinAppSDK (#2629)

Tweak various compiler options for optimization (e.g. /GR-) and correctness/productivity (e.g. /W4).

Project-wide standardization via new \WindowsAppSDK.Build.Cpp.props. See for more details.

Corrected several inconsistencies across projects e.g. given Debug|Release + x86+x64+arm64 = 6 permutations, but some projects had an option set for only 5, or only 1. Most projects were mostly already setting most of these options so their changes were mostly removing the now-redundant project-specific setting and let the top-level project-wide standards handle it.

This now standardizes all C++ projects to...
* Compile (all): `/W4 /sdl /permissive- /std:c++17 /GR-` (except 2 projects that explicitly set `/std:c++20`)
* Compile (debug): `/Od`
* Compile (release): `/GS /GF /GL /Gy /Gw /Ob2 /Oi /Os /Oy`
* Link (debug) `/DEBUG:FULL /INCREMENTAL`
* Link (release): `/INCREMENTAL:NO /LTCG /OPT:ICF /OPT:REF`

https://task.ms/39994837 Foundation

https://task.ms/39994852 MRTCore

* Add standardized (project-wide) C++ compile and link options

* Remove ARM support (not supported, but some ARM-conditional fragments weren't removed)

* Removed <WarningLevel> from all projects. Fixed up warnings masked by projects who'd set Level3

* Added SDLCheck for all builds. Added Disable-Optimization for Debug builds. Remove properties in *vcxproj redundnat with standardized options

* Removed redundant <Optimization> from *vcxproj

* Fixed warnings. Removed unnecessary delayload

* Fixed some inconsistencies in project settings

* Fixed AccessControlTests weren't copying the Bootstrap dll to the test's OutDir and thus the test dll wouldn't load

* Fix some warnings in MRT. Had to disable read-only string pooling and strictstrings as workaround for some funky issues in MrtBaseUnitTests for now; filed bug for follow up to fix the errors

* Corrected some comments. Added the missing LTCG option

* Changed LTCG from fast to normal

* Updated FavorSizeOrSpeed to Size instead of Speed

* Move LinkIncremental=false for Release builds to the top-level project-wide standard

* Host LinkIncremental=true if Configuration=Debug to be project wide setting (projects were routinely doing this locally, but inconsistently)

* Fixed a comment

* Added a cautionary note about why Detours.vcxproj has seemingly redundant or contradictory options and to be wary of making any changes

* Removed options redundant with WindowsAppSDK.Build.Cpp.props

* Elevate GenerateDebugInformation=Full to project-wide and remove redundancies. Move dev\WindowsAppSDK.Build.Cpp.props content to project wide (not just \dev) and delete the now obsolete dev\WindowsAppSDK.Build.Cpp.props (really only amounted to /ZH:SHA_256).

* Incorporated feedback

* Overhaul NuGet versions to include "main" or "develop" (#2636)

* Some old MSTest.pfx references were lingering (and now breaking things) (#2638)

* Installation with System-Account doesn't work #2546 (#2565)

* Installation with System-Account doesn't work #2546 
Co-authored-by: Santosh Chintalapati <[email protected]>

* Fix the .NET SDK installer script used by MRT Core, and don't run the script anymore (#2640)

* Fix the .NET SDK install script.

* Remove .NET SDK version from global.json file.

* Don't run the DownloadDotNetCoreSdk.ps1 script in the pipeline.

* Update build-mrt.yml

* Update DownloadDotNetCoreSdk.ps1

* Update global.json

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update global.json

* Update global.json

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Add 1.1.1 & 1.0.4 to bug template and remove outdated versions (#2627)

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-CI.yml

Co-authored-by: James Parsons <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Kyaw Thant <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: alexlamtest <[email protected]>
Co-authored-by: Jeff Genovy <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>

* User/erlangl/fi develop into feature (#2660)

* Fix issue where WinUI C# and C++ item templates are not appearing in WinUI projects

* Making EM RS5+. Limiting the tracking capability to Windows11+ (Spec) (#2544)

* Updating spec

* Adressing comments

* More changes

Co-authored-by: Darren Hoehna <[email protected]>

* Create a pipeline to automate FIs from main to develop (#2610)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592 (#2608)

* v1.1 SDK throws an access violation from MddBootstrapInitialize's logging code if no matching packages are installed #2592

* Telemetry char/string. AppData DataStore-1.0.

* Retrieve the *Main* package's family name for AppData

* Add/Remove the test Main package (DataStore) just like we do the test Framework

* Detoured GetCurrentPackageInfo3() should route to the OS any PackageInfoType value it doesn't handle (#2623)

* Create tsaoptions.json

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Delete WindowsAppSDK-SourceAnalysis-job.yml

* Delete WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-BinaryAnalysis-steps.yml

* Create WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update ProjectReunion-CI.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update build-mrt.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Do a compiler options pass on all binaries contributing to WinAppSDK (#2629)

Tweak various compiler options for optimization (e.g. /GR-) and correctness/productivity (e.g. /W4).

Project-wide standardization via new \WindowsAppSDK.Build.Cpp.props. See for more details.

Corrected several inconsistencies across projects e.g. given Debug|Release + x86+x64+arm64 = 6 permutations, but some projects had an option set for only 5, or only 1. Most projects were mostly already setting most of these options so their changes were mostly removing the now-redundant project-specific setting and let the top-level project-wide standards handle it.

This now standardizes all C++ projects to...
* Compile (all): `/W4 /sdl /permissive- /std:c++17 /GR-` (except 2 projects that explicitly set `/std:c++20`)
* Compile (debug): `/Od`
* Compile (release): `/GS /GF /GL /Gy /Gw /Ob2 /Oi /Os /Oy`
* Link (debug) `/DEBUG:FULL /INCREMENTAL`
* Link (release): `/INCREMENTAL:NO /LTCG /OPT:ICF /OPT:REF`

https://task.ms/39994837 Foundation

https://task.ms/39994852 MRTCore

* Add standardized (project-wide) C++ compile and link options

* Remove ARM support (not supported, but some ARM-conditional fragments weren't removed)

* Removed <WarningLevel> from all projects. Fixed up warnings masked by projects who'd set Level3

* Added SDLCheck for all builds. Added Disable-Optimization for Debug builds. Remove properties in *vcxproj redundnat with standardized options

* Removed redundant <Optimization> from *vcxproj

* Fixed warnings. Removed unnecessary delayload

* Fixed some inconsistencies in project settings

* Fixed AccessControlTests weren't copying the Bootstrap dll to the test's OutDir and thus the test dll wouldn't load

* Fix some warnings in MRT. Had to disable read-only string pooling and strictstrings as workaround for some funky issues in MrtBaseUnitTests for now; filed bug for follow up to fix the errors

* Corrected some comments. Added the missing LTCG option

* Changed LTCG from fast to normal

* Updated FavorSizeOrSpeed to Size instead of Speed

* Move LinkIncremental=false for Release builds to the top-level project-wide standard

* Host LinkIncremental=true if Configuration=Debug to be project wide setting (projects were routinely doing this locally, but inconsistently)

* Fixed a comment

* Added a cautionary note about why Detours.vcxproj has seemingly redundant or contradictory options and to be wary of making any changes

* Removed options redundant with WindowsAppSDK.Build.Cpp.props

* Elevate GenerateDebugInformation=Full to project-wide and remove redundancies. Move dev\WindowsAppSDK.Build.Cpp.props content to project wide (not just \dev) and delete the now obsolete dev\WindowsAppSDK.Build.Cpp.props (really only amounted to /ZH:SHA_256).

* Incorporated feedback

* Overhaul NuGet versions to include "main" or "develop" (#2636)

* Some old MSTest.pfx references were lingering (and now breaking things) (#2638)

* Installation with System-Account doesn't work #2546 (#2565)

* Installation with System-Account doesn't work #2546 
Co-authored-by: Santosh Chintalapati <[email protected]>

* Fix the .NET SDK installer script used by MRT Core, and don't run the script anymore (#2640)

* Fix the .NET SDK install script.

* Remove .NET SDK version from global.json file.

* Don't run the DownloadDotNetCoreSdk.ps1 script in the pipeline.

* Update build-mrt.yml

* Update DownloadDotNetCoreSdk.ps1

* Update global.json

* Update WindowsAppSDK-BinaryAnalysis-steps.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update global.json

* Update global.json

* Update build-mrt.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-BuildDevProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildProject-Steps.yml

* Update WindowsAppSDK-BuildSolution-Steps.yml

* Add 1.1.1 & 1.0.4 to bug template and remove outdated versions (#2627)

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-BuildFoundation.yml

* Update ProjectReunion-CI.yml

* Update WindowsAppSDK-SourceAnalysis-job.yml

* Update ProjectReunion-CI.yml

* Update Newtonsoft.Json explicit reference in Dev16 projects to work around vulnerability in older versions (#2662)

Co-authored-by: James Parsons <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Kyaw Thant <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: alexlamtest <[email protected]>
Co-authored-by: Jeff Genovy <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>
Co-authored-by: Ryan Shepherd <[email protected]>

* FI develop into Content Builder feature branch (#2717)

* update newtonsoft.json (#2688)

* Introduce Register Overload for assets (#2596)

* Introduce Register Overload for assets

* Address comments

* Add contractversion to register APi

* Address comments

* Add more examples of register API usage

* Process doc for develop branch (#2383)

* Add 1.1.2 tag to bug report

Co-authored-by: Hui Chen <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Sharath Manchala <[email protected]>
Co-authored-by: MikeHillberg <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>

* FI develop into notification feature branch (#2733)

* update newtonsoft.json (#2688)

* Introduce Register Overload for assets (#2596)

* Introduce Register Overload for assets

* Address comments

* Add contractversion to register APi

* Address comments

* Add more examples of register API usage

* Process doc for develop branch (#2383)

* Add 1.1.2 tag to bug report

* Properly ignore cleanup event if it can't be opened. (#2658)

If we can't open the cleanup event, ignore it.

Fixes ADO#38606299

* WindowsAppRuntimeInstaller.exe fails if newer version present

Discussion #2708: [WindowsAppRuntime installation error: The package could not be installed because a higher version of this package is already installed](#2708)

>Microsoft.WindowsAppRuntime.1.1_1000.516.2156.0_x64__8wekyb3d8bbwe Package deployment result : 0x80073d06 The package could not be installed because a higher version of this package is already installed. One or more install operations failed. Result: 0x80073d06

That's a bug - it should be OK, not an error.

If v1.1.3 is installed and you run the installer for v1.1.2 we call packageManager.AddPackageAsync(...v1.1.2...) which returns 0x80073d06 == `ERROR_INSTALL_PACKAGE_DOWNGRADE` which is technically an error but functionally it's OK. If you build with 1.1.2 we don't require the runtime packages exactly match 1.1.2, but rather that there needs to be a package equal-or-higher than 1.1.2 (i.e. `>=1.1.2` not `==1.1.2`). If 1.1.3 is installed then all is well.

Problem is we should be trapping `ERROR_INSTALL_PACKAGE_DOWNGRADE` and treating it as success. That's a bug on our part. 

https://task.ms/40411617

FYI: servicing-consider-1.1 = https://task.ms/40411679

* XCOPY command should be <COPY> to ensure execution (#2734)

* XCOPY command should be XCOPY.EXE to ensure execution

* Changed xcopy.exe to <Copy>

* Fix typo

* Put AccessControl files into transport package (#2751)

* Add projection DLL

* Put files into nuget package

* Remove noexcept from Bootstrapper API so it can be used from C (#2750)

* Remove noexcept from Bootstrapper API so it can be used from C

* Switch noexcept to macro-style optional support per feedback

* Update bug version to 1.1.3 (#2757)

* <Copy> vs XCOPY.EXE -- Unbreak WindowsAppSDK-Nuget-Native.C.props

Not-Build break 'build\native\WindowsAppSDK-Nuget-Native.C.props(32,13): error MSB4066: The attribute 'SourceFiles' in element is unrecognized.' -- Foundation builds but the aggregator doesn't. I suspect it's because of the command can't go in a , maybe something more complicated with the PostBuildEvent DependsOn a to do the copy...but I can't find any clear docs or net links clearly spelling it out so rather than fiddling while Rome burns I'm switching back to the original xcopy.exe solution to un-break the pipeline.

Will follow up with folks to understand why the PR's build didn't pick this up

* Updating reference to pick up license installation fix. (#2531) (#2764)

Co-authored-by: Ben Kuhn <[email protected]>

Co-authored-by: Hui Chen <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Sharath Manchala <[email protected]>
Co-authored-by: MikeHillberg <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Johan Laanstra <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>
Co-authored-by: Ryan Shepherd <[email protected]>
Co-authored-by: sachintaMSFT <[email protected]>
Co-authored-by: Ben Kuhn <[email protected]>

* AppNotificationBuilder features (#2786)

* First iteration

* Fix formatting issues

* Remove all references to toast

* Add ProgressBar

* Remove getters and other nits

* Add XML outputs for all examples

* Update examples and fix missing png

* Add limitations

* Add ArgumentSerializer and rename APIs

* Fix some nits

* Fix audio ctors

* Add Deserializer functions and example

* Apply review changes

* Update AppNotificationBuilder-spec.md

* Initial commit

* Working on it

* Add AppNotificationContent

* Current impl

* Working on unit tests

* Added unit tests

* Add Audio tests

* Update APITests.cpp

* Remove spec from PR

* Rename AppNotification Builder API to match specs (#2766)

* Renaming to match specs

* Adding latest changes to specs

* Code cleanup

* Updating to reflect latest changes to the specs doc

Co-authored-by: Eric Langlois <[email protected]>

* Update the spec with BuildNotification

* Remove unused files

* Add copyright to all files

* Update AppNotificationBuilder.idl

Adding copyright notice

* Update pch.cpp

Adding copyright notice

* Update WindowsAppRuntime_DLL.vcxproj

Removing references to fmt lib

* Update packages.config

Removing reference to fmt

* Update AppNotificationBuilder.cpp

Removing fmt since we won't be using and to unblock the build pipelines

* Addressing comments

* Update error codes with messages

* Add helper file

* Add SetTimestamp impl

* Add AppNotificationAudioLooping

* Add IsSupported to attributes

Co-authored-by: eric langlois <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>

* AppNotificationContent Builder 1.2 spec (#2648)

* First iteration

* Fix formatting issues

* Remove all references to toast

* Add ProgressBar

* Remove getters and other nits

* Add XML outputs for all examples

* Update examples and fix missing png

* Add limitations

* Add ArgumentSerializer and rename APIs

* Fix some nits

* Fix audio ctors

* Add Deserializer functions and example

* Apply review changes

* Update AppNotificationBuilder-spec.md

* Update AppNotificationBuilder-spec.md

* Update AppNotificationBuilder-spec.md

* Update spec example with changes

* Rename selectionMenu to ComboBox

* Update AppNotificationBuilder-spec.md

* Incorporate feedback

* Update spec

* Address feedback

* Update spec

* Update AppNotificationBuilder-spec.md

* Address some more nits

* Update AppNotificationBuilder-spec.md

* Rename ButtonColor to AppNotificationButtonStyle

* Committing PR renames and fixes

* Address more spec comments

* Rename AppNotificationContent->AppNotificationBuilder

* Update AppNotificationBuilder-spec.md

* Add Tag/Group

* Update sample

Co-authored-by: Alexander Sklar <[email protected]>

* Update AppNotificationBuilder-spec.md

* Rename ImageCrop->AppNotificationImageCrop

* Fix spec samples

* Reduce number of comments in idl

* Add Is*Supported functions to limitations

* Update Audio loop param to enum

Co-authored-by: Alexander Sklar <[email protected]>

* AppNotificationBuilder - Code Improvements (#2801)

* Addressing nits from a previous PR

* Uniform naming for tests

* Addressing PR feedback

* IsWindows... is the standard method for checking Windows version

* nit

Co-authored-by: Eric Langlois <[email protected]>

* AppNotificationContent Builder Core Features - part II (#2760)

* First iteration

* Fix formatting issues

* Remove all references to toast

* Add ProgressBar

* Remove getters and other nits

* Add XML outputs for all examples

* Update examples and fix missing png

* Add limitations

* Add ArgumentSerializer and rename APIs

* Fix some nits

* Fix audio ctors

* Add Deserializer functions and example

* Apply review changes

* Update AppNotificationBuilder-spec.md

* Initial commit

* Working on it

* Add AppNotificationContent

* Current impl

* Working on unit tests

* Added unit tests

* Add Audio tests

* Update APITests.cpp

* Remove spec from PR

* Rename AppNotification Builder API to match specs (#2766)

* Renaming to match specs

* Adding latest changes to specs

* Code cleanup

* Updating to reflect latest changes to the specs doc

Co-authored-by: Eric Langlois <[email protected]>

* Update the spec with BuildNotification

* Remove unused files

* Add copyright to all files

* Update AppNotificationBuilder.idl

Adding copyright notice

* Update pch.cpp

Adding copyright notice

* Update WindowsAppRuntime_DLL.vcxproj

Removing references to fmt lib

* Update packages.config

Removing reference to fmt

* Update AppNotificationBuilder.cpp

Removing fmt since we won't be using and to unblock the build pipelines

* Addressing comments

* Update error codes with messages

* Add helper file

* Add SetTimestamp impl

* Add AppNotificationAudioLooping

* Add IsSupported to attributes

* AddTextBox

* AddTextBox with PlaceHolderText and Title

* consexpr all the things

* code cleanup

* AddComboBox

* Improving validation for selection items

* Input element limit is for textbox and comboBox combined

* formating

* struct isn't required unless we decide to do extra validation in the future

* PR feedback

* Check for non-empty IDs

Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>

* nits

* new line to keep github happy

* AppNotificationBuilder - ProgressBar (#2780)

* First iteration

* Fix formatting issues

* Remove all references to toast

* Add ProgressBar

* Remove getters and other nits

* Add XML outputs for all examples

* Update examples and fix missing png

* Add limitations

* Add ArgumentSerializer and rename APIs

* Fix some nits

* Fix audio ctors

* Add Deserializer functions and example

* Apply review changes

* Update AppNotificationBuilder-spec.md

* Initial commit

* Working on it

* Add AppNotificationContent

* Current impl

* Working on unit tests

* Added unit tests

* Add Audio tests

* Update APITests.cpp

* Remove spec from PR

* Rename AppNotification Builder API to match specs (#2766)

* Renaming to match specs

* Adding latest changes to specs

* Code cleanup

* Updating to reflect latest changes to the specs doc

Co-authored-by: Eric Langlois <[email protected]>

* Initial implementation

* Update the spec with BuildNotification

* Remove unused files

* Add copyright to all files

* Update AppNotificationBuilder.idl

Adding copyright notice

* Update pch.cpp

Adding copyright notice

* Update WindowsAppRuntime_DLL.vcxproj

Removing references to fmt lib

* Update packages.config

Removing reference to fmt

* Update AppNotificationBuilder.cpp

Removing fmt since we won't be using and to unblock the build pipelines

* Fixing build break

* Addressing comments

* Update error codes with messages

* Add helper file

* Add SetTimestamp impl

* Add AppNotificationAudioLooping

* Add IsSupported to attributes

* Don't mix binding and value states

* Code cleanup

* Using printf as it is the norm for the builder

* look proper

* spacing

* Reorder functions in idl to help github track changes properly

* Keeping all progressBar tests together

* PR feedback

Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>

* Nits

* Wrong error type

* Nits

* Spacing

* Spacing

Co-authored-by: James Parsons <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: Darren Hoehna <[email protected]>
Co-authored-by: reunion-maestro-bot <[email protected]>
Co-authored-by: Kyaw Thant <[email protected]>
Co-authored-by: Howard Kapustein <[email protected]>
Co-authored-by: alexlamtest <[email protected]>
Co-authored-by: Jeff Genovy <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Eric Langlois <[email protected]>
Co-authored-by: Ryan Shepherd <[email protected]>
Co-authored-by: Will Thant <[email protected]>
Co-authored-by: Hui Chen <[email protected]>
Co-authored-by: Sharath Manchala <[email protected]>
Co-authored-by: MikeHillberg <[email protected]>
Co-authored-by: Gabby Bilka <[email protected]>
Co-authored-by: Johan Laanstra <[email protected]>
Co-authored-by: sachintaMSFT <[email protected]>
Co-authored-by: Ben Kuhn <[email protected]>
Co-authored-by: Paul Purifoy <[email protected]>
Co-authored-by: Alexander Sklar <[email protected]>
Co-authored-by: Paul Purifoy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment