### Clone, Install Dependencies, and Build Project
Source: https://github.com/microsoft/powerplatform-build-tools/blob/main/CONTRIBUTING.md
Clones the repository, installs npm dependencies, and runs the build process using gulp. This is the standard workflow for setting up and building the project locally.
```bash
git clone https://github.com/microsoft/powerplatform-build-tools.git pp-build-tools
cd pp-build-tools
npm ci
gulp ci
```
--------------------------------
### Add Azure DevOps Extension
Source: https://github.com/microsoft/powerplatform-build-tools/blob/main/CONTRIBUTING.md
Installs the Azure DevOps extension for the Azure CLI. This is a prerequisite for interacting with Azure DevOps services.
```bash
az extension add --name azure-devops
```
--------------------------------
### Include Raw Assets in MAUI Project
Source: https://github.com/microsoft/powerplatform-build-tools/blob/main/examples/DataverseMauiApp/Resources/Raw/AboutAssets.txt
Add this to your `.csproj` file to include all files in the `Resources\Raw` directory and its subdirectories as MauiAssets. The `LogicalName` ensures files are accessible with their original relative paths.
```xml
```
--------------------------------
### Access Embedded Maui Asset in C#
Source: https://github.com/microsoft/powerplatform-build-tools/blob/main/examples/DataverseMauiApp/Resources/Raw/AboutAssets.txt
Reads the content of an embedded asset file named 'AboutAssets.txt' at runtime. Ensure the asset is included in your project using the `MauiAsset` build action.
```csharp
async Task LoadMauiAsset()
{
using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
using var reader = new StreamReader(stream);
var contents = reader.ReadToEnd();
}
```
--------------------------------
### Set Azure DevOps Read PAT Environment Variable
Source: https://github.com/microsoft/powerplatform-build-tools/blob/main/CONTRIBUTING.md
Sets a user-level environment variable for the Azure DevOps read Personal Access Token (PAT). This is a temporary measure for accessing packages.
```powershell
[Environment]::SetEnvironmentVariable('AZ_DevOps_Read_PAT', '', [EnvironmentVariableTarget]::User)
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.