This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // See https://aka.ms/new-console-template for more information | |
| using System; | |
| using System.Runtime.CompilerServices; | |
| public readonly ref struct OptionalRef<T> where T : unmanaged | |
| { | |
| private readonly ref T _reference; | |
| public unsafe OptionalRef(ref T value) { _reference = ref value; } | |
| public unsafe OptionalRef(T* ptr) { _reference = ref *ptr; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .Synopsis | |
| Takes an appxrecipe file and creates a powershell script that contains the contents of that MSIX | |
| and knows how to deploy it. | |
| .Description | |
| Provide the path to the appxrecipe file | |
| .Example | |
| PackDevApp.ps1 -AppxRecipe <myapp.appxrecipe> [-OutputFile <outputfile.ps1>] |