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

https://github.com/usausa/embedded-build-property

🐰Source generator for build options.
https://github.com/usausa/embedded-build-property

codegenerator source-generator source-generators sourcegenerator

Last synced: 25 days ago
JSON representation

🐰Source generator for build options.

Awesome Lists containing this project

README

          

# BunnyTail.EmbeddedBuildProperty

[![NuGet](https://img.shields.io/nuget/v/BunnyTail.EmbeddedBuildProperty.svg)](https://www.nuget.org/packages/BunnyTail.EmbeddedBuildProperty)

## What is this?

Generate consts class to get build options.

## Usage

### Project

```xml

Development



Flavor=string:$(EmbeddedFlavor),
SecretKey=string:$(EmbeddedSecretKey)


```

### Source

```cs
Console.WriteLine($"Flavor: {EmbeddedProperty.Flavor}");
Console.WriteLine($"SecretKey: {EmbeddedProperty.SecretKey}");
```

### Build

```
dotnet build Example.csproj /p:Flavor=Production /p:SecretKey=xxxx
```