Category : .net-core

Goal: Connecting to an SMB share using .net core, program has to be platform independent (no winapi calls etc). My research on SO: Tons of topics on SO cover this, but none of them have worked for me, either because they use winapi or because the code samples they show simply dont work. My attempts: ..

Read more

I have a application where we need to implement the windows authentication to pull the logged in windows user and check if that user is exist in application’s user’s list. Can we add a custom authentication handler with windows authentication? That can validate the Identity within the application database. Thanks in advance for all your ..

Read more

I have utilised the Colorful Console nuget: <PackageReference Include="Colorful.Console" Version="1.2.15" /> With the intention of printing non-ASCII characters to a console app in Powershell: using Console = Colorful.Console; … Console.Write("•", Color.Gray); But this does not display anything in powershell or the VSCode Terminal. Am I missing something or is powershell simply not able to display ..

Read more

I try to modify the IL of the System.String.Concat method through the ICorProfilerCallback interface, and add my own tracking code before the method is executed。 I modified the IL of other methods and added the tracking code without any problems. After the compilation passed, it can be run. …. if (!isStatic) { reWriterWrapper.LoadNull();// Ldnull reWriterWrapper.StLocal(indexMethodTrace); ..

Read more

According to this documentation, FreeVirtualMemory Number of kilobytes of virtual memory currently unused and available. For example, this can be calculated by adding the amount of free RAM to the amount of free paging space (that is, adding the FreePhysicalMemory and FreeSpaceInPagingFiles properties). But with this code snippet: ObjectQuery winQuery = new ObjectQuery("SELECT * FROM ..

Read more

Is there any registry key or any other way to determine whether a windows machine has the .NET Core Desktop Runtime installed? I can see the registry is getting the following key when I install the .net core runtime HKEY_LOCAL_MACHINESOFTWAREWOW6432NodedotnetSetupInstalledVersionsx64sharedfxMicrosoft.NETCore.App<version> This key is not specific to .NET Core Desktop Runtime what I want to know ..

Read more