Skip to content

Commit

Permalink
added outputpath back
Browse files Browse the repository at this point in the history
  • Loading branch information
rajamatt committed May 10, 2024
1 parent 39d3ba7 commit 3d034ad
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions doc/material-dsp.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,19 @@ This package will be automatically present in the project after [creating a new

It is possible to configure the import process. The _UnoDspImportColors_ item found in the _csproj_ file has a number of attributes we can set:

| Attribute | Description | Default Value |
|----------------|---------------------------------|-------------------------|
| `Include` | Style files to input | |
| `Generator`* | Type of generator to use | `Xaml` |
| `OutputPath` | Path to use for the output | Input file directory |
| Attribute | Description | Default Value |
|------------------|---------------------------------|-------------------------|
| `Include` | Style files to input | |
| `Generator`* | Type of generator to use | `Xaml` |
| `OutputPath`** | Path to use for the output | Input file directory |

\* The possible values for `Generator` are `Xaml` or `Csharp`.

\** If `Include` is a glob (eg: *.json), `OutputPath` should be a directory.

```xml
<ItemGroup>
<UnoDspImportColors Include="Styles\*.json" Generator="csharp" OutputPath="json_file.g.cs" />
<UnoDspImportColors Include="Styles\*.json" Generator="Csharp" OutputPath="Styles\Theme\" />
</ItemGroup>
```

Expand Down

0 comments on commit 3d034ad

Please sign in to comment.