Viewing posts tagged DotNet

Introducing Wifi Sitter

The following is simply a copy of the from my latest project found here, I hope you find it useful.

C# Remote WMI Query

Simple remote wmi query method.

Strange F# Error on Mono/Xamarin

While dipping my toes into F# some time ago, I ran into a compile-time error that I couldn't explain or find a solution for: "Error FS0010: Unexpected keyword 'open' in implementation file (FS0010)". I was just building the Hello World app that comes with MonoDevelop out of the box. After some tooling around on StackOverflow and coming up short, the only thing I could think was, "Maybe it's a Mono bug, it's not in their issue tracker so I should just compile everything from source to be sure." Long story short, that was not the problem so don't waste your time; Mono 3.10+ is more than adequate. The issue was because I had a hyphen in my project name and the AssemblyInfo.fs file was improperly formatted because of it.

.Net is Open Source. Why do I care?

If you're a .Net developer and an Open Source enthusiast, these past couple of weeks have been really exciting for you. .Net CLR and core libraries have been relicensed under the MIT license, and they've announced a forthcoming .Net CoreRT that will be truly cross platform: Windows, Linux, OSX. All these projects have been moved under the .Net Foundation with a patent promise and code hosted on Github. This is real Open Source, not just an Open Source component that you can only run on a closed platform; you can run commercially supported .Net on a fully open stack. That is awesome!

DFS links with C#/.Net Native Interop

I've been writing some software to manage DFS links from .Net and historically I've parsed the output of dfsutil.exe to get my information but this can be unreliable, so what to do? Win32 to the rescue with .Net native interop. This has been a painful process since I do not know C and have limited experience with the Win32 api so I hope this can help people. The code will return a List<struct> representing the information i want out of the DFS query: link name, array of target UNCs. Here's the gist.