Most voted "console-application" questions
21 questions
Sort by count of
-
3
votes2
answers146
viewsError concatenating string from path
In this program right at the beginning has a function that creates a folder in the user’s documents to save some information Giving a research I came to the conclusion that it should stay like this:…
-
2
votes0
answers57
viewsHow to select options in java console application?
There is the possibility for the user to select menu options by navigating with the arrow keys up and down, then pressing enter? public static void menu() { print("=====MENU====="); print("|Novo…
-
2
votes1
answer177
viewsHow to put a char variable in a string through the keys { }?
I’m doing an old-fashioned game, where there’s a function that prints it, and another that contains the 9 playable positions, I simplified the code so it doesn’t get too big and I just put a…
-
2
votes0
answers69
viewsRunning console application (C#) on another Windows machine
I am developing a console application, where I read a file . txt and perform some routines of INSERT my database. The application running on my machine works normal, but when running my . exe on…
-
1
votes2
answers576
viewsFunction or Method to Restart an Application on the C#console
Is there any available function or method to Restart the application on the C console#? static void decision() { Console.WriteLine("\n Press the home key to recalculate. . .",…
c# visual-studio code-review main console-applicationasked 5 years, 6 months ago Gabriel Castilho 11 -
1
votes1
answer103
viewsWhy does the model return null after using Automapper?
To model Endereco returns null after mapping (Automapper), why ? Example: using AutoMapper; using System; using System.Collections.Generic; using System.Linq; using System.Text; using…
-
1
votes1
answer89
viewsHow do I get value from an internal object in a Json file?
I would like to know how to access an object inside the json, follow the code: { "data": [ { "id": "or_asdasdasdasd", "code": "5d6f4sa56df", "amount": 800, "currency": "BRL", "closed": true,…
-
0
votes1
answer44
viewsHow to connect two Applications in the same instance of Localdb
I have a problem when connecting with the same instance of localDb in another application in the same solution. Detailing the project, I have an ASP . NET MVC5 application in the solution and also…
-
0
votes1
answer82
viewsUpdate data with Entity Framework
I have a problem that when I have this code below: public static String GravarNoBDFildes(List<Fildes> dados) { try { Console.WriteLine("Começando o processamento"); var inseridos = new…
-
0
votes2
answers137
viewsProblem sending data from a console application to Webservice
I have a console application that receives data from a mobile device, I am trying to send this data to a web service to process the data and fill them in the database. I’m trying this way: public…
-
0
votes0
answers16
viewsClickonce for Dotnetcore
Good morning. We have a Console Application project in Dotnetcore 3.0. We need to generate an installer along the lines of Dotnetframework’s Clickonce. In addition to generating the installer, it…
-
0
votes2
answers67
viewsHow to use Log4net Adonetappender only at Error level
I have a console application and use log4net to display the application logs, however I would like to save only the error logs in the database. I saw that you have the configuration of…
-
0
votes1
answer54
viewsC# How do published app use settings I changed in the app.config?
I have an app like Netframework Console, and I have the app.config in it. My app needs to use the tags from app config. that I change frequently to generate some text files, that is to say I have…
-
0
votes0
answers32
views: 'The input string was not in a correct format. '
Hello, I am developing a program that collects data entered by the console in c#, however, I come across this problem when I enter a value other than’s' here char entry = (char)Console.Read();…
-
0
votes1
answer111
viewsHow to access a global application.json variable in . NET Core c#
I am new with programming and I’m having difficulty accessing a Token that is as variable in the file application.json. It is a console application, the goal is only to use the token of the global…
-
0
votes3
answers307
viewsHow to save parts of a json in variable?
I’m new with programming and have a project in Console Application, which returns the call of an API the Json of it. I would like to know which command I can only get a part of json with. For…
-
0
votes1
answer38
viewsRepeated hunch
Hey, here’s my problem. I’m developing an application in c# (console) to learn c# and I’m having a problem that I can’t solve. First I draw the numbers that will be drawn: Random rnd = new Random();…
-
-1
votes1
answer472
viewsRead fields in CSV format with C#
Boas, I am currently developing an app (console app) to read data from a file in CSV format using C#. Right now I’m able to run all the fields without any kind of problem and show all the data.…
-
-1
votes1
answer54
viewsWhat Process.Getcurrentprocess(). Kill(); does?
I’m making a program, in it I have to stop the execution of a screen with a condition. I found a way to do it here on the Internet, but I don’t want to just copy, I want to understand! Follows the…
-
-1
votes1
answer97
viewsC# Click and drag or use mouse scroll (Postmessage/Sendmessage)
I’m creating a console application, I need to scroll a certain part of the window from positions (x=350 y=240) to (x=350 y=120) (vertical scrolling), tried in several ways but could not. I also…
-
-2
votes1
answer34
viewsArchitecture to complete
I’m creating an RPG to play on the Javascript console. I created a conditional within a function that, if chosen, the whole program for ,but is not happening. Can someone give me an idea of a…