Skip to content

Commit 9412fd8

Browse files
committed
+Mᐁ includes
1 parent cb79b24 commit 9412fd8

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

readme.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -219,19 +219,10 @@ packaging experience possible:
219219
<!-- include src/ThisAssembly.Metadata/readme.md#metadata -->
220220
<!-- #metadata -->
221221
This package provides a static `ThisAssembly.Metadata` class with public
222-
constants exposing each `[System.Reflection.AssemblyMetadata(..)]` defined for
223-
the project.
222+
constants exposing each `[System.Reflection.AssemblyMetadata(..)]` defined in
223+
the project file as [supported by the .NET SDK](https://learn.microsoft.com/en-us/dotnet/standard/assembly/set-attributes-project-file#set-arbitrary-attributes).
224224

225-
![](https://raw.githubusercontent.com/devlooped/ThisAssembly/main/img/ThisAssembly.Metadata.png)
226-
227-
For an attribute declared (i.e. in *AssemblyInfo.cs*) like:
228-
229-
```csharp
230-
[assembly: System.Reflection.AssemblyMetadataAttribute("Foo", "Bar")]
231-
```
232-
233-
A corresponding `ThisAssembly.Metadata.Foo` constant with the value `Bar` is provided.
234-
The metadata attribute can alternatively be declared using MSBuild syntax in the project
225+
The metadata attribute is declared using MSBuild syntax in the project
235226
(for .NET 5.0+ projects that have built-in support for `@(AssemblyMetadata)` items):
236227

237228
```xml
@@ -240,6 +231,11 @@ The metadata attribute can alternatively be declared using MSBuild syntax in the
240231
</ItemGroup>
241232
```
242233

234+
And a corresponding `ThisAssembly.Metadata.Foo` constant with the value `Bar` is provided
235+
for this example.
236+
237+
![](https://raw.githubusercontent.com/devlooped/ThisAssembly/main/img/ThisAssembly.Metadata.png)
238+
243239
<!-- #metadata -->
244240
<!-- src/ThisAssembly.Metadata/readme.md#metadata -->
245241

0 commit comments

Comments
 (0)