Questions tagged [csc]

Csc.exe is the command-line compiler for C# from Microsoft.

Csc.exe is the command-line compiler for C# from Microsoft.

301 questions
0
votes
3 answers

Run CSC.exe from command line using Batch File

I am using the following batch script code to compile c# code but what I see is a black window (csc.exe) flashes and I can not see the exe file created. start /wait C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe /out:aa.exe Program.cs start…
Akshay J
  • 5,362
  • 13
  • 68
  • 105
0
votes
0 answers

Compiling c# code with csc

I have developed some code in C# with VS2010 and now I want to compile it but unfortunately I can't do so in Windows 7 and I have to do it in Windows Server 2008 because the code is accessing libraries not existing in Windows 7. Anyways, I tried all…
esa
  • 87
  • 3
  • 9
0
votes
1 answer

Reference errors after installing VS2012RC

We use dmake for our build machines and VS2010 for building locally. Everything worked fine, then I installed VS2012 RC (ultimate). It's building ok in Visual Studio, although I get a bunch of these warnings: There was a mismatch between the…
JoeB
  • 2,743
  • 6
  • 38
  • 51
0
votes
2 answers

compile ms office interop app from commandline

how do I successfully compile this code from the commandline, using csc.exe, in terms of which dll's I should reference. I would like this to work with Office 2007 as well as Office 2003. I am use .Net Framework SDK 2.0. I get this compilation…
Jeremy A
-1
votes
1 answer

Why does C# compile this stack overflow error?

class ReferenceTest { public static string Status { get { return Status; } } public static void Main() { System.Console.WriteLine(Status); } } Is there any reason not to capture this loop at…
needfulthing
  • 1,056
  • 11
  • 21
-1
votes
2 answers

Get compiletime constants in C#

In C# you can define compile-time constants that may be checked to configure compilation #define MY_CONST #if MY_CONST ... #else ... #endif But I can't find a way to see which constants are defined at current line. I need something…
JL0PD
  • 3,698
  • 2
  • 15
  • 23
-1
votes
2 answers

Simple Python Nest For Loop Exhausts Memory

I have a list of quadruples which is read from a CSV file, with element of the form t =(id, e1, e2, label). The list should contain for every t, the tuple: (someID, e2,e1, 3-label). If not, I need to add to the list. I have written the following…
chikitin
  • 762
  • 6
  • 28
-1
votes
2 answers

Filezilla + hostgator transfer failed rosyln

I am using Hostgator as a hosting service and using FileZilla software to upload my files. I have my published application which was built in Asp.Net MVC C#. When I trasnfer my published code through FileZilla it transferred my all code except…
Mahavirsinh Padhiyar
  • 1,299
  • 11
  • 33
-1
votes
3 answers

Is there really a valid code-path where this function won't return a value?

I have the below function that iterates over a list of workers, invoking their DoStuff() method. If the first worker fails, I try the next one until I'm out of workers. If they all fail, I re-throw the last exception. // workers is an…
Craig
  • 1,890
  • 1
  • 26
  • 44
-1
votes
1 answer

Is this ASM langage?

So i have a csc file (cell script container)from de game GTAV on PS3. I opened it in XSC toolbox (xsc/csc editor) and that's what i have : :Label9 enter 0 0 2 0 PushIM 0 setstatics 244 PushIM 0 setstatics 246 NOP Call 00000015 ret 0…
M4DM4N
  • 3
  • 1
  • 3
-1
votes
1 answer

How to get input from website to .NET console application

Is there anyway to obtain values from asp.net website and send it .net console application. Program hits to Console.ReadLine() and I need it to collect input from asp.net website one way or another.
Jon Koivula
  • 899
  • 1
  • 11
  • 24
-1
votes
1 answer

How to Create a DLL of .csproj file

csc /target:library /out:MyMaths.dll ClassLibraryFunction.csproj I am using this code to generate a DLL in VS.Cmd compiler for a whole solution. However, I am getting a compile error, and the DLL is not being generated.
pratik godha
  • 73
  • 1
  • 8
-2
votes
1 answer

Program does not contain a suitable 'Main' method for entry point

I accidentally deleted the auto generated main entry point of my project. The problem is that I did not realised that and saved the changes and exit de program. Now I have the same error even if I create a new class and a new Main method. The error…
SamSon
  • 39
  • 4
-2
votes
1 answer

Unused assemblies worries when dealing with other non-microsoft compilers

If i reference unused assembly using the /r flag in the command prompt the csc will ignore it. so what if i reference unused assemblies via the IDE will it show the same behavior ? and what if i am using other c# compilers other than Microsoft's csc…
a7madx7
  • 840
  • 1
  • 8
  • 18
-3
votes
3 answers

I am unable to build a dll file using the command line without main method

My goal is to build a dll from the command line since I do not have visual studio installed. So far, I have created a class file named AuthenticatedProxy.cs and went to the command line and ran the following…
Dip
  • 343
  • 7
  • 22
1 2 3
20
21