Rename CppUnpackagedAppNotifications to CppAppNotifications#247
Rename CppUnpackagedAppNotifications to CppAppNotifications#247sharath2727 wants to merge 2 commits intomainfrom
Conversation
| Verify your new scenario builds (without warnings), that it works as expected and has been implemented for all flavors of the sample (C++/C#, Packaged/Unpackaged, etc.). | ||
| Go to the [WindowsAppSDK-Samples](https://github.com/microsoft/WindowsAppSDK-Samples) GitHub and follow the Contributing Guidelines (at the bottom of the readme) and submit ytour code changes for peer review. | ||
|
|
||
| 6. **Converting the Unpackaged Sample to Packaged Sample** - |
There was a problem hiding this comment.
This should be in it's own section.
| Sample can be converted to Packaged by following the guidance: https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/single-project-msix?tabs=cpp | ||
| - **For a C++ Sample** - Set the below properties: | ||
| 1. Open the vcxproj and set the AppxPackage property to true and WindowsPackageType to MSIX | ||
| 3. Copy the provided sample Package.appxmanifest file under App/Resources/ to the unpackaged app solution. Note the provided manifest is only for reference modify the parameters as per the documentation: |
There was a problem hiding this comment.
Probably want to mention that they'll need to open it outside of VisualStudio: either in VSCode or some other code editor
| 1. Open the vcxproj and set the AppxPackage property to true and WindowsPackageType to MSIX | ||
| 3. Copy the provided sample Package.appxmanifest file under App/Resources/ to the unpackaged app solution. Note the provided manifest is only for reference modify the parameters as per the documentation: | ||
| https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/notifications/app-notifications/app-notifications-quickstart?tabs=cs | ||
|
|
There was a problem hiding this comment.
After copying the package manifest, users will have to add it to their project in visualstudio (add existing item))
There was a problem hiding this comment.
and got this error when building the sample:
1>D:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(823,5): error : The BaseOutputPath/OutputPath property is not set for project 'CppUnpackagedAppNotifications.vcxproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='x64'. This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform.
| - **For a C++ Sample** - Set the below properties: | ||
| 1. Open the vcxproj and set the AppxPackage property to true and WindowsPackageType to MSIX | ||
| 3. Copy the provided sample Package.appxmanifest file under App/Resources/ to the unpackaged app solution. Note the provided manifest is only for reference modify the parameters as per the documentation: | ||
| https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/notifications/app-notifications/app-notifications-quickstart?tabs=cs |
There was a problem hiding this comment.
We should provide a file that works out of the box for the sample, which the provided file seems to do.
I wouldn't point them to resources they don;t need at this point. The instructions provided should just provide the simplest / minimal steps to get a packaged sample running.
Description
Provide support for creating Packaged App Notifications Sample
Target Release
1.2
Checklist