<div dir="ltr"><p style="margin:0px 0px 18px;padding:0px;border:0px;font-size:13px;vertical-align:baseline;line-height:18px;color:rgb(51,51,51);font-family:Tahoma,Arial,Helvetica,sans-serif;background-color:rgb(247,247,247)">I am experimenting with libvirt, and my favorite IDE is visual studio so I looked for an easy method to build the libvirt library on windows and found that the state of cross-platform libraries like Mingw are outdated or difficult to use correctly for developers who want to start coding immediatly with libvirt. I know there is a way, but assembling the right libraries and commands was just too much. So, I found that the libvirt dll’s are actually a part of most distros of linux and can be downloaded and extracted. I just needed to find out what dlls were needed, then search the repos for those files.</p><p style="margin:0px 0px 18px;padding:0px;border:0px;font-size:13px;vertical-align:baseline;line-height:18px;color:rgb(51,51,51);font-family:Tahoma,Arial,Helvetica,sans-serif;background-color:rgb(247,247,247)">After the search, I have begun work on a powershell script to get the latest libvirt builds from fedora, download and extract them. After that, you can go to town building libraries against the libvirt api. Check out the script here: <a href="https://github.com/smasherprog/Libvirt_Windows_Dll">https://github.com/smasherprog/Libvirt_Windows_Dll</a></p><p style="margin:0px 0px 18px;padding:0px;border:0px;font-size:13px;vertical-align:baseline;line-height:18px;color:rgb(51,51,51);font-family:Tahoma,Arial,Helvetica,sans-serif;background-color:rgb(247,247,247)">Anyone who links against the libvirt library would be creating a management tool of some sort so a language like C# so after I create this tool, I will write some code to generate the C# code files for the DLLImport calls. The Libvirt header thousands of lines long so I will write some code to extract the calls/structs and generate the PInvoke calls for everything at once and place it into a .cs file so developers can start dewveloping in libvirt fast and easy.</p><p style="margin:0px 0px 18px;padding:0px;border:0px;font-size:13px;vertical-align:baseline;line-height:18px;color:rgb(51,51,51);font-family:Tahoma,Arial,Helvetica,sans-serif;background-color:rgb(247,247,247)"><br></p><p style="margin:0px 0px 18px;padding:0px;border:0px;font-size:13px;vertical-align:baseline;line-height:18px;color:rgb(51,51,51);font-family:Tahoma,Arial,Helvetica,sans-serif;background-color:rgb(247,247,247)">Scott Lee</p></div>