An open API service indexing awesome lists of open source software.

https://github.com/sergio0694/win2dsample

A simple and minimal Win2D sample in an unpackaged Win32 app
https://github.com/sergio0694/win2dsample

Last synced: 6 months ago
JSON representation

A simple and minimal Win2D sample in an unpackaged Win32 app

Awesome Lists containing this project

README

          

This repo includes a simple and minimal Win2D sample in an unpackaged Win32 app.

### How to build ⚙️

From a Developer Power Shell for VS 2022:

```ps
msbuild src\Win2DRenderer.csproj -t:restore,publish /p:Configuration=Release /p:Platform=x64 /p:PublishSingleFile=True /p:SelfContained=True /p:PublishTrimmed=True /p:RuntimeIdentifier=win10-x64
```

This will create a self-contained build.

To publish with NativeAOT, use:

```ps
$env:ENABLE_PUBLISH_AOT='true';
msbuild src\Win2DRenderer.csproj -t:restore,publish /p:Configuration=Release /p:Platform=x64 /p:RuntimeIdentifier=win10-x64
```

Optionally, you can change the executable to skip the console, by also defining:

```ps
$env:HIDE_CONSOLE='true';
```