console-application

Error-Attempt by method 'X.set_DbConnection(System.Data.Common.DbConnection)' to access method 'Y.get_Settings()' failed

丶灬走出姿态 提交于 2019-11-27 08:57:22
I created a console app and use EntityFramework 6.2 (for connection with MS SQL), MySql.Data 8.0.11 and MySql.Data.Entity 6.10.7 (for connection with MySQL). In this application I want to create a job like an SQL job but I don't want to use quertz.net. I have error: "Attempt by method 'MySql.Data.Entity.EFMySqlCommand.set_DbConnection(System.Data.Common.DbConnection)' to access method 'MySql.Data.MySqlClient.MySqlConnection.get_Settings()' failed." MySql.Data.Entity 6.10.7 isn't compatible with MySql.Data 8.0.11. Oracle renamed the package to MySql.Data.EntityFramework for v8.x. You need to

Setting the Cursor Position in a Win32 Console Application

两盒软妹~` 提交于 2019-11-27 08:39:54
How can I set the cursor position in a Win32 Console application? Preferably, I would like to avoid making a handle and using the Windows Console Functions. (I spent all morning running down that dark alley; it creates more problems than it solves.) I seem to recall doing this relatively simply when I was in college using stdio, but I can't find any examples of how to do it now. Any thoughts or suggestions would be greatly appreciated. Thanks. Additional Details Here is what I am now trying to do: COORD pos = {x, y}; HANDLE hConsole_c = CreateConsoleScreenBuffer( GENERIC_READ | GENERIC_WRITE,

Compile to stand alone exe for C# app in Visual Studio 2010

ぐ巨炮叔叔 提交于 2019-11-27 08:35:16
Similar to this question Compile to a stand-alone executable (.exe) in Visual Studio But nothing there works for me. I've written an app that is very simple in C#. I want this to compile to a stand alone exe file, but I can't seem to find the proper settings to do this. Everything compiles into a publish folder and there is only the setup/install files. Thanks! You just compile it. In the bin\Release (or bin\Debug) folder, the .exe will be in there. If you're asking how to make an executable which does not rely on the .NET framework at all, then that's a lot harder and you'll need to purchase

VSTS Online Building Setup Projects?

那年仲夏 提交于 2019-11-27 07:47:23
问题 I have a .NET Console app with a setup project I am trying to port to VSTS Online (visualstudio.com) to make use of the source control and well as adding automated build/deploy. I've got the code uploaded just fine and it builds great, but am struggling with getting it to produce a MSI. I've tried introducing a command line task after the solution build to run devenv.com but I can't quite get that to work. Any thoughts on getting a setup project to build its MSI? Thanks! EDIT: Here's the

Open a new console with every new Thread in C#?

时光怂恿深爱的人放手 提交于 2019-11-27 07:44:49
问题 I want to have a new console open whenever I create a new thread so that the output will be organized. My application is fully console based. Would this be possible if so how? Regards! 回答1: A process can be associated with only one console http://msdn.microsoft.com/en-us/library/windows/desktop/ms681944(v=vs.85).aspx 回答2: It's not difficult to work around this limitation. The code that you want to run as a separate thread with its own console window, simply code that as a separate console

ClickOnce File Association

谁都会走 提交于 2019-11-27 07:43:13
问题 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 Deployment Support Library) and not the actual program. How can I get the association to be the actual program and not the installer? I've included the fileAssociation node from the app.manifest below. Please let me know if you have any tips on this. Thanks. <fileAssociation xmlns="urn:schemas-microsoft

How to write to the console in a GUI application

巧了我就是萌 提交于 2019-11-27 06:55:18
问题 Background: We develop win32 applications, and use the "Thompson Toolkit" on windows to give us a unix-like shell that we use as our command-line. We have a GUI program (with a WinMain and message loop) that we want to write to the console, but printf and so on don't work, even when we launch the program from the console. How can we write to the console from a GUI program? We need to print text there so that an automated build system can display error messages and so on. Thanks. 回答1: In short

How do you keep the console from closing after the program is done in C? [duplicate]

谁说我不能喝 提交于 2019-11-27 06:45:37
问题 Possible Duplicate: What is the Best Practice for Combating the Console Closing Issue? How do you keep the console from closing after the program is done in C? When I try to search for it I find lots of stuff about C++ and other languages, but nothing for C. Also, even for C++ there doesn't seem to be a definitive answer. So could someone please let me know what the simplest way (doesn't need to be super elegant) way to keep the console open after a C program is done running? 回答1: run the

.Net Console Application that Doesn't Bring up a Console

青春壹個敷衍的年華 提交于 2019-11-27 06:35:13
问题 I have a console application I'm using to run scheduled jobs through windows scheduler. All the communication to/from the application is in email, event logging, database logs. Is there any way I can suppress the console window from coming up? 回答1: Sure. Build it as a winforms app and never show your form. Just be careful, because then it's not really a console app anymore, and there are some environments where you won't be able to use it. 回答2: Borrowed from MSDN (link text): using System