console-application Questions

32

Solved

I'm on Mac, working on Android development from the terminal. I have successfully created the HelloWorld project and now I'm trying to run it from the command line in the Android emulator. Which co...

3

Solved

I want to give an option of selecting the files from anywhere in the pc. Currently I am giving the path explicitly like this: FileInfo existingFile = new FileInfo(@"C:\Users\User_name\Download...

2

Solved

The GenericHost/DefaultHost/WebHost ecosystem changes rapidly, and seems lacking for a combination of requirements. I am using .NET 8.0. Using stable packages as of Jan 2024, what does a console ap...
Aplasia asked 15/1, 2024 at 0:19

1

Solved

I am creating integration tests for a .NET 6.0 C# console application. Is there a way to test it in the same way ASP.NET Core uses WebApplicationFactory to host and test the app? I would like to be...
Nickinickie asked 27/10, 2023 at 5:59

6

Solved

I have a Win32 application written in C that can have its console output via printf() redirected to a log file. It would be nice if I could have my app detect if it had been started with or without...
Truax asked 18/1, 2010 at 17:9

14

Solved

Is there any way I can make an executable .jar that will open up the command line when double clicked? I'm making a text-based adventure game. As of right now it is just a maze with rooms. Eventua...
Digestif asked 9/10, 2011 at 15:4

2

Solved

According to the docs for .NET Core 5, there's a method SetBasePath and it's widely used in a bunch of blogs (example 1, example 2, example 3 etc.). There's no notion of it being a weird gotcha or ...
Novation asked 24/1, 2021 at 16:26

6

Solved

How can a line in the console be cleared in C#? I know how to place the cursor at the beginning of a line: Console.SetCursorPosition(0, Console.CursorTop);
Freewheel asked 14/3, 2013 at 22:35

8

I have converted .NET Framework 3.5 TestAPP to .NET 6 TestAPP and worked well. i have an Automation project(C++ project) which was using .NET Framework 3.5 TestAPP.dll to run the tests, but right n...
Trinitroglycerin asked 22/2, 2022 at 7:57

2

guys. I try to add logging to my console app with DI (.NET Core 3.1) and seems that IoC container works fine for that, injects logger dependency to my classes, but LogXXX method doesn't log to outp...
Angie asked 14/3, 2020 at 23:0

3

EDIT: Passing down the configuration from an ASP.NET controller is not going to work if it is running in a console application. Background: - The DLL will be shipped with different applications, ...
Foetid asked 30/10, 2019 at 17:39

5

Solved

I'm writing a simple console application (80x24) in Java. Is there a gotoxy(x,y) equivalent for the console?
Geosynclinal asked 16/6, 2009 at 13:1

9

Solved

I have a console application written in C# that is scheduled to run every 15 minutes or so using the built-in Windows Task Scheduler. Every time it runs, the black console box pops up for the dura...
Fireside asked 21/4, 2010 at 20:24

12

Solved

I have a .NET Core 1.0.0 console application and two environments. I need to be able to use appSettings.dev.json and appSettings.test.json based on environment variables I set at run time. This see...
Deedeeann asked 19/9, 2016 at 12:46

9

Solved

I have a .NET Core console application and have run dotnet publish. However, I can't figure out how to run the application from the command line. Any hints?
Weiler asked 25/8, 2016 at 22:16

20

As in the title. How can I clear console in C++?
Particiaparticipant asked 26/6, 2011 at 19:45

2

I have just installed the new version of Visual Studio Community Edition (version 17.6.2). Now, I have a project with a Console application project in NET7. Usually I can run this console applicati...

7

Solved

The thing is, I really don't want the console window to show up, but the solution should be running. My point here is, I want to keep the application running in the background, without any wi...
Noway asked 4/10, 2010 at 8:24

9

Solved

How do I find out what directory my console app is running in with C#?
Carrissa asked 18/9, 2008 at 21:43

3

Solved

Been getting a app that serves up data to a VBA application. Now at point trying to get configuration files (appsettings.json & appsettings.Development.Json). Right now it's a .net6.0 console a...
Stanstance asked 13/1, 2022 at 0:56

8

I have installed Node.js in Windows 8 PC and installed the Node.js plugin for Visual Studio 2012. I executed a basic program from Visual Studio 2012 which just prints a string on console console.lo...

1

I am running a C# windows console application and passing in a couple of arguments via Task Scheduler. It runs all day loading flat file data created by other applications into SQL server. The prog...
Vicissitude asked 3/5, 2018 at 20:33

2

Solved

I'm porting an console application to .NET Core, and I'm trying to replace this line: AppDomain.CurrentDomain.UnhandledException += UnhandledException; After reading this, it seems there is no b...
Israelisraeli asked 26/4, 2017 at 16:17

8

I'm using Console.ReadLineto read the input of the user. However, I want to hide/exclude the inputted text on the console screen while typing. For example, when the user writes "a", it writes "a" t...
Maiga asked 2/5, 2014 at 17:43

3

Solved

I have a console application that I'm deploying using ClickOnce. Once the user installs the program the associations are set but the associated program is the installer(ClickOnce Application Deploy...
Sedulity asked 18/11, 2009 at 23:24

© 2022 - 2025 — McMap. All rights reserved.