Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKuschnik committed Dec 11, 2023
1 parent 21aacb2 commit 1fca090
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,26 @@ using (WmiConnection con = new WmiConnection(@"\\MACHINENAME\root\cimv2", opt))
}
```

## Native AOT deployment

WmiLight supports Native AOT deployment since [Version 5.0.0](https://github.com/MartinKuschnik/WmiLight/releases/tag/v5.0.0).

It's also possible to link WmiLight statically to have only one executable working without the `WmiLight.dll`. <br/>
To link WmiLight statically, add `<PublishWmiLightStaticallyLinked>true</PublishWmiLightStaticallyLinked>` to your project file.

```xml
<PropertyGroup>
<PublishAot>true</PublishAot>
<PublishWmiLightStaticallyLinked>true</PublishWmiLightStaticallyLinked>
</PropertyGroup>
```

## Other benefits:

* easy usage

* support for Native AOT deployment

* no distinction between local and remote queries

* Debugger Preview
Expand Down

0 comments on commit 1fca090

Please sign in to comment.