About 4,680,000 results
Open links in new tab
  1. Does an ASP.NET Core 8 application use a StartUp.cs file?

    Dec 14, 2023 · In ASP.NET Core (which includes .NET 8), the Startup.cs class is still a central part of the application's configuration, but it's not the only way to set up your application.

  2. c# - .NET 6 - Inject service into program.cs - Stack Overflow

    Apr 15, 2022 · I know how to do dependency injection in the Startup.cs in .NET 5 (or before), but how do I do the same with the top-level Program.cs in .NET 6? .NET 5: for example, I can …

  3. c# - Why am I getting error CS0246: The type or namespace name …

    I am using Snarl C# API to send notifications to snarl. Now I have saved the content of above url in a file named SnarlNetwork.cs and the content of my test.cs file are: using …

  4. AppSettings for AzureFunction on .NET 8 (Isolated)

    Mar 7, 2024 · Context I have an existing Linux Azure Function running on .Net 6 (In-process) v4. I have a lot of configuration coming from appsettings.json. Most of these configurations are …

  5. c# - The annotation for nullable reference types should only be …

    I have a console app to try out the C# 8 null reference types. Switched the project to build with lang ver C# 8. Then the following code results in a warning. class Program { static void Main(s...

  6. How do I add a cs file to an existing C# project?

    May 23, 2009 · A while back I wrote a little program in Microsoft Visual C# 2008 Express Edition. In it included a file called "ProblemReport.cs" with it's own form and ProblemReport class. I'm …

  7. c# - run single *.cs script from command line - Stack Overflow

    May 30, 2016 · Is there at last a easy way to execute c# script file from command line? I saw that discussion on github and according to this thread i think dotnet run Test.cs should do the job. …

  8. Visual Studio Code run individual .cs files - Stack Overflow

    Mar 27, 2018 · Is there a way we can run individual .cs files in Visual Studio Code. I have followed this link and runs fine but then I added Program2.cs and try to run using "dotnet run …

  9. .NET 8 Azure Function.ConfigureFunctionsWebApplication () and ...

    Apr 30, 2024 · You still can use .ConfigureFunctionsWorkerDefaults() in program.cs file refer Start-up and configuration. You need to call .ConfigureFunctionsWebApplication() for …

  10. c# - Azure Functions - .NET 8 isolated - Stack Overflow

    Feb 16, 2024 · When writing Azure Functions in C#, I find it very useful that I am able to output some selected messages to a logger, and that those messages show up in the …