Code Monkey home page Code Monkey logo

Comments (9)

natan-abolafya avatar natan-abolafya commented on June 3, 2024 1

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.

natan-abolafya avatar natan-abolafya commented on June 3, 2024 1

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.

MartinKuschnik avatar MartinKuschnik commented on June 3, 2024

Hey,

ich have changed the license to MIT. Have fun with it.

What kind of project do you are using WmiLight?

from wmilight.

natan-abolafya avatar natan-abolafya commented on June 3, 2024

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.

MartinKuschnik avatar MartinKuschnik commented on June 3, 2024

WmiLight uses also COM :-(

from wmilight.

natan-abolafya avatar natan-abolafya commented on June 3, 2024

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.

MartinKuschnik avatar MartinKuschnik commented on June 3, 2024

Ok, meaning you would like to shink the size of your application by using the trimming function during build?

from wmilight.

MartinKuschnik avatar MartinKuschnik commented on June 3, 2024

Partial trim woks if this is an option.

<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<TrimMode>partial</TrimMode>

from wmilight.

MartinKuschnik avatar MartinKuschnik commented on June 3, 2024

Ok, very nice.

Have fun!

from wmilight.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.