Comments (9)
Apparently, I have tested this wrong before. WmiLight seems to be using COM also as the calls seem to be failing with
WMI failed while retrieving device ID. Built-in COM has been disabled via a feature switch. See https://aka.ms/dotnet-illink/com for more information.
now.
from wmilight.
On .NET 6, I was already using <TrimMode>CopyUsed</TrimMode>
with System.Management library and it was working. But I wanted to use the Link
mode, which I'm guessing means Full
on .NET 7; and that was crashing.
I've enabled COM with WmiLight now and the full trim mode, it's working better than System.Management which is great. So I guess that's what the commenter meant.
from wmilight.
Hey,
ich have changed the license to MIT. Have fun with it.
What kind of project do you are using WmiLight?
from wmilight.
Fantastic! Thank you.
It's an enterprise level desktop application where we gather a couple of information about Windows such as Windows version and device Id. We don't depend on WMI that much but we need that information in the way WMI reports.
Our goal wasn't to fix the memory leak you mentioned in the readme, but rather move away from COM.
from wmilight.
WmiLight uses also COM :-(
from wmilight.
It's possible that this comment meant that trimming works better even when COM is enabled on the project. I will try that next.
from wmilight.
Ok, meaning you would like to shink the size of your application by using the trimming function during build?
from wmilight.
Partial trim woks if this is an option.
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<TrimMode>partial</TrimMode>
from wmilight.
Ok, very nice.
Have fun!
from wmilight.
Related Issues (12)
- Enumeration Options HOT 4
- Example of .NET Memory Leak Needed HOT 17
- UseIntegratedWindowsAuthentication for remote connections HOT 2
- Missing assembly version and strong name signature HOT 6
- System.InvalidProgramException HOT 1
- WmiLight integral types inconsistent with System.Management types HOT 9
- Lot of dll in ouput dir HOT 1
- Implement ComWrappers API for AOT/Trim compatibility HOT 6
- not working with native aot: Common Language Runtime detected an invalid program HOT 26
- NativeAOT publish fails to statically link WmiLight when it is packaged in a dependent library HOT 11
- System.TypeLoadException when PublishTrimmed = true and PublishAot = false HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wmilight.