When running my C# application i randomly get the following error (currently only on WindowsXP, not reproduceable by us - only at one customer machine)...
Cannot execute a program. The command being executed was…
I got this strange error saying that the 'Command Line Compiler has stopped working' when I try to build the solution.
The solution is 2 projects and a web MVC 4 Application.
As I have no idea what it is, I'll depend on your inputs to know what…
I have an InvalidProgram exception with the message
Common Language Runtime Detected an Invalid Program
This happen in an application that we didn't change in the last 3 month.
The only change is that we have change our build server (reinstall…
While csc /t:library strconcat.cs with using System.Collections.Generic; I get an error
strconcat.cs(9,17): error CS0305: Using the generic type
'System.Collections.Generic.List' requires '1' type arguments
mscorlib.dll: (Location of…
I have a strange requirement, I have been asked to code a certain validation script in VBScript because its in plain text. But I am more comfortable in c#. So is there anyway to schedule it in Task Scheduler such that the compiler will compile the…
I am wondering if there is simple way to ensure that: when a C# project is compiled, the Csc.exe launched inherits the parent processor affinity settings; or perhaps a way that I can supply this.
I have been trying to accomplish this by launching a…
In Visual C++ 2010, I can see the parameters which are passed to cl.exe:
That's very useful because sometimes you forget to check this or that option, add some directory here and there, etc and seeing all the commands at once make this easy to…
I can't understand why If I compile the same source with Visual Studio 2008 (MSBuild) and then with csc (or NANT) at command line I can't obtain exacly the same binary file (the same assembly).
The command line is the same that is invoked by visual…
I always use Visual Studio to do this, and yet even MSDN repeatedly refers to command line approaches in compilation and deployment scenarios.
This guy wants to do only command line, and is lauded for being hardcore, but I fail to see the point of…
Is there any way to set default options passed to csc.exe? In particular, I'm interested in supressing copyright messages. For example, for cl.exe and ml.exe I have
CL = /nologo
ML = /nologo
I am trying to build a C# program that converts a different language into C# code. I have the program working fine, converting the code and writing it to a .cs file. I want to have this file automatically be compiled, and run, however I cannot…
I have a C# solution and some referenced dll-s. Even though when compiling in visual studio(vs2010) it appears as it succeeded, when using the C# compiler it fails: missing dll apparently..
csc /t:library /out:test.dll test.cs
test.cs(22,10):…
I have a class library I use for an assembly. It is comprised of three classes - classes A and B provide supporting types and methods for class C. After an assembly is built from that library, I need to register it with the GAC; currently I use…
I've been experimenting with the Remotesoft Linker and Mini Deployment tools to create a single native executable (that doesn't need the framework installed) from my managed code. One of the configurable features it has is if csc.exe is available…
As everyone knows, Visual Studio supports the IntelliSense function. But in this article, what I wonder is the principle of the IntelliSense implementation.
According to what I know, msbuild.exe is used in Visual Studio to build, and msbuild.exe…