Skip to content

Commit e19d659

Browse files
committed
Reoder section on dynamic resources to better align with other readmes
1 parent 0925538 commit e19d659

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/ThisAssembly.Resources/readme.md

+11-9
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,14 @@ Optionally, you can specify the `Kind` metadata for a specific `EmbeddedResource
3737
treated as a text file:
3838

3939
```xml
40+
<ItemGroup>
4041
<EmbeddedResource Include="query.kql" Kind="Text" />
42+
</ItemGroup>
4143
```
4244

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

46-
## Customizing the generated code
47-
48-
The following MSBuild properties can be used to customize the generated code:
49-
50-
| Property | Description |
51-
|-------------------------|------------------------------------------------------------------------------------------------------|
52-
| ThisAssemblyNamespace | Sets the namespace of the generated `ThisAssembly` root class. If not set, it will be in the global namespace. |
53-
| ThisAssemblyVisibility | Sets the visibility modifier of the generated `ThisAssembly` root class. If not set, it will be internal. |
54-
5548
## Adding dynamic resources
5649

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

61+
## Customizing the generated code
62+
63+
The following MSBuild properties can be used to customize the generated code:
64+
65+
| Property | Description |
66+
|-------------------------|------------------------------------------------------------------------------------------------------|
67+
| ThisAssemblyNamespace | Sets the namespace of the generated `ThisAssembly` root class. If not set, it will be in the global namespace. |
68+
| ThisAssemblyVisibility | Sets the visibility modifier of the generated `ThisAssembly` root class. If not set, it will be internal. |
69+
6870
<!-- #resources -->
6971
<!-- include https://github.com/devlooped/sponsors/raw/main/footer.md -->
7072
<!-- exclude -->

0 commit comments

Comments
 (0)