Dispose stream correctly in a method when it returns the stream?
I have this code in a method:
Configuration not loaded from environment variables
I have some values for the application configuration in appsettings.json file and some values in environment variables. I expect the configuration key values to be populated with the values from the environment variable, but it is just empty. Can you please help me?
How to Structure Project
Just learning .NET and compared to other stacks, the project structure is very confusing to me.
How to deal with long cache keys
I have a caching method that generates long cache keys by concatenating a string list of price codes.
How to deal with long cache keys
I have a caching method that generates long cache keys by concatenating a string list of price codes.
Unable to open cmd and have it execute a psexec function with button and computer name text box in visual studio
As the title says im making an app to help with Help Desk tasks. One of which being PSexec’ing into a remote machine. Im using visual studio and have the button linked up as well as a text box for computer name input. Right now it will open CMD but under the Debug folder in visual studio and will not execute the Argument in my Process. lost on what is wrong.
mlContext.Data.CreateEnumerable uses the init property?
Note: I’m new to C# so I might have misunderstood something about object initializers.
Upgrading dotnet in Visual Studio 2022 Community version
I have installed newer versions of dotnet on my Windows 11 system running Visual Studio Community 2022, but when I try to update one of my Windows Application projects from the Projects -> Options dialog the only ones that show up in the Target Framework drop down are .NET Framework 4.7.2 and 4.8. In the same drop down there is an option to install other frameworks and I have tried that. I have loaded both 6.0 and 8.0. They show up under C:Program Filesdotnet, but do not seem to be available to my project. So, is VS Community limited in some way? I tried update the .csproj file using Notepad, but VS did not like that.
Why can the inliner forget the no-optimize attribute?
I was reading on what’s new in .NET 9 and stumbled over the CrypographicOperations type which has a method called ZeroMemory
used to ensure that zeroing memory is not optimized away.
(https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-9/overview#net-libraries)
Why can the inliner forget the no-optimize attribute?
I was reading on what’s new in .NET 9 and stumbled over the CrypographicOperations type which has a method called ZeroMemory
used to ensure that zeroing memory is not optimized away.
(https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-9/overview#net-libraries)