Questions tagged by "console-application"


0
 bounty
1
answers
.NET - compile all DLL dependencies into one standalone portable EXE file for console or a desktop project in Visual Studio
10 years ago • lampego1@qrid
I have a small console project in Visual Studio 2010 and I want to build and publish console application as a standalone EXE file or package with a small number of files to be copy-paste deployed if possible. There is of course an .EXE file with a bunch of .DLL files in ProjDir/bin/Release but this folder contains multiple files(DLLs, config file, resource etc.), and I would prefer to have just one .EXE file if possible. If anyone knows a goo
1
 bounty
0
answers
C# console app throws System.TypeInitializationException at Program..cctor() at Program.Main(String[] args)
10 years ago • alex
I have a console .NET application, let's call it MyProject, which runs scheduled using Windows Task Scheduler. I've noticed a command window that shows the following output in the black cmd window: Unhandled Exception: System.TypeInitializationException: The type initializer for 'MyProject.Program' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object. at MyProject.Program..cctor() --
1 from 2