UserCredential credential; using (var stream = new FileStream("client_secrets.json", FileMode.Open, FileAccess.Read)) { credential = await
I have some separated solutions in my hard disk. And I have configured my Visual Studio 2022 like this: But one of them (the oldest one) does not follow the co
How to detect usb activity using C#? I want to use it to trigger a function. In my case the device was detected as USB composite device.
I have a wsdl : https://www.lb.lt/webservices/ExchangeRates/ExchangeRates.asmx?WSDL I want to extract all methods and defined types of methods GET,POST etc. Is
I have tried to simplify this problem as much as possible and cannot find a solution or fix. I have followed the second approach ("Add metadata class") in this
How can I lunch the build-in calendar app using c#, I can't find the process name and the PID(process ID)
I have a cube1, cube2, cube3 etc... variables and i want to use something like that: for (int i = 1; i < 100; i++) { Location "cube + i
I have a C# solution containing many projects (DLL and EXE projects) and decided to centralize the Output folder so that Visual Studio builds all projects to on
I have a Movie class. It has a Genres property of type List<string>. I use this exact EF Core Value Conversion to store it in the database as a comma-sepa
So I created a mesh (parallelogram) in code in Unity and i have a prefab of this object with mesh renderer, I tried to apply material 1 to this renderer 2 and i
The syntax for iterating over a dictionary with a foreach loop is: foreach (KeyValuePair<key, value> item in dictionary) Inside the foreach loop the key
Multi select option list image I Use a multi select option list and create a save button. write a query like that is INSERT and UPDATE same action occur on sing
I'm trying to process the most recent Blocks with a BlockProcessor in Nethereum. I think by default it is waiting for 12 block confirmations before processing t
My code is built in NET Framework 4.7.2, it uses two .dlls siticone.dll + windowsinput.dll. How do I let my code be used by others and include these .dlls. I am
I am currently in the process of building a .NET Web API which is gonna be consumed in another project for a dashboard. Currently, first endpoint return total n
Trying to connect to AWS IOT device from C# by using M2MQTT library : public void connect() { const string IotEndpoint = "a3cnel9bxxxxx-at
I have a 2D brick breaker style game in Unity where you get to choose the angle of your shot before each turn with the mouse. I'd like to show an accurate traje
I wrote the following code. Instead of sending "LHR" I want to send it in 3 sentence each character each time. IWebDriver driver; driver = new C
I think I'm close, but just can't get the syntax. What am I missing for the Moq on this ? https://dotnetfiddle.net/1RItB5 Method to test public async Task<T&
When I'm trying to add the JSON file via.AddJsonFile(), it throws a: System.IO.FileNotFoundException: 'The configuration file 'appsettings.json' was not found