Skip to content

Commit

Permalink
Reoder section on dynamic resources to better align with other readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Nov 26, 2024
1 parent 0925538 commit e19d659
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/ThisAssembly.Resources/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,14 @@ Optionally, you can specify the `Kind` metadata for a specific `EmbeddedResource
treated as a text file:

```xml
<ItemGroup>
<EmbeddedResource Include="query.kql" Kind="Text" />
</ItemGroup>
```

You can also add a `Comment` item metadata attribute, which will be used as the `<summary>` XML
doc for the generated member.

## Customizing the generated code

The following MSBuild properties can be used to customize the generated code:

| Property | Description |
|-------------------------|------------------------------------------------------------------------------------------------------|
| ThisAssemblyNamespace | Sets the namespace of the generated `ThisAssembly` root class. If not set, it will be in the global namespace. |
| ThisAssemblyVisibility | Sets the visibility modifier of the generated `ThisAssembly` root class. If not set, it will be internal. |

## Adding dynamic resources

You can also provide additional embedded resources dynamically, by running a target before
Expand All @@ -65,6 +58,15 @@ You can also provide additional embedded resources dynamically, by running a tar
</Target>
```

## Customizing the generated code

The following MSBuild properties can be used to customize the generated code:

| Property | Description |
|-------------------------|------------------------------------------------------------------------------------------------------|
| ThisAssemblyNamespace | Sets the namespace of the generated `ThisAssembly` root class. If not set, it will be in the global namespace. |
| ThisAssemblyVisibility | Sets the visibility modifier of the generated `ThisAssembly` root class. If not set, it will be internal. |

<!-- #resources -->
<!-- include https://github.com/devlooped/sponsors/raw/main/footer.md -->
<!-- exclude -->

0 comments on commit e19d659

Please sign in to comment.