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
1 answer

How do I compile a .dll by hand using csc.exe that has a Fakes Assembly reference?

Here's my file/folder structure: \ | --RealLibrary\ | | | --RealClass.cs | --SandboxFakesByHand\ | --Fakes\ | | | --RealLibrary.fakes | --Consumer.cs The contents of RealClass.cs using System; using…
Jesus is Lord
  • 14,971
  • 11
  • 66
  • 97
0
votes
1 answer

Compiling VS 2012 project programmatically?

I have this class library project sitting in a solution. My need is to be able to embed resources (all files from 'Resources' folder) into DatabaseResources.resx and compile it all into an assembly, on the fly. I tried CSC and was able to compile…
Arpit Khandelwal
  • 1,743
  • 3
  • 23
  • 34
0
votes
1 answer

How to sign an assembly in .NET 1.1

So, for some horrible reason I need to compile a very old .NET 1.1 project. Compiling it is pretty easy, but I also need it to produce signed assemblies. I noticed that .NET 1.1 csc.exe is missing the /keyfile argument. How do I sign my assembly…
Earlz
  • 62,085
  • 98
  • 303
  • 499
0
votes
1 answer

CSC with C# Command For MySQL

I am still learning c# and have been following a tutorial where I use Visual Studio to connect MySQL. I want to compile the file using csc on the command line this time and error cs0246 came out6 where its ays "The type or namespace name…
SamIAm
  • 2,241
  • 6
  • 32
  • 51
0
votes
4 answers

Image in inputtext with border in css

IF you see the below picture you can see that the input text consists of image as background.But I want to keep a line in between the text and image.Either by applying image border...or any other trick.Im unable to found exact example or tutorial…
Ramz
  • 658
  • 1
  • 7
  • 19
0
votes
1 answer

CSC java Receipt

I need to make a receipt formatted as best i can like a normal receipt. With a name and address, time and date all at the top. (all of which need to be user input.) main code //Removed Imports class ReceiptCode { public static void…
0
votes
1 answer

Validating user's input while using a while loop

My issue is that I'm trying to validate my input by making sure that the while loop only takes a number more than 10. If not, they have to try again. But the issue I'm having is that the loop keeps repeating itself if I close the while…
0
votes
1 answer

CSC Command Parameters Useage for C# Build Time

ParseXSD.cs using System; using System.Collections; using System.Xml; using System.Xml.Schema; class XmlSchemaTraverseExample { static void Main() { // Add the customer schema to a new XmlSchemaSet and compile it. // Any…
Nano HE
  • 9,109
  • 31
  • 97
  • 137
0
votes
3 answers

Passing a string array in a main method

I have homework where I have to write a small program that asks for a number and returns the month assigned to that number. So far I have written two different classes, one to prompt the user for int, and the other with the arrays of month. Now my…
user2831805
0
votes
0 answers

Run from the command line in visual studio

I'm trying to execute a program using run from the command line ,my program takes 4 arguments and it connect to a web service . so i execute this simple command csc Program.cs I'm getting this error : error cs0234 The type or namespace Srd doesn't…
Amira
  • 3,184
  • 13
  • 60
  • 95
0
votes
1 answer

Create a netmodule library using many dlls

I have a problem generating a netmodule archive, I have these files: class1.cs library1.dll library2.dll library3.dll class1.cs uses library1.dll and library2.dll uses library2.dll and library3.dll, I try using this command: C:\Microsoft Visual…
Respino
  • 11
  • 2
0
votes
1 answer

Make element stick to the right on Mobile screens

First time run across this issue. I have an element that is positioned to the right of the screen, like that .element { position:absolute; right:0 } Everything works as expected on desktop, but starting to fail apart on small screen…
jonny pixel
  • 259
  • 6
  • 13
0
votes
1 answer

Nant wont recognize namespace.Properties

I'm trying to use nant to build a solution for a c# project however I am having an issue specifying resources in my build file. I get the error code: CS0234: The type or namespace name 'Properties' does not exists in the namespace 'Darkside'. How…
Shabbir Hussain
  • 2,600
  • 2
  • 17
  • 25
0
votes
0 answers

C#: When performing XSLT: The process cannot access the file

I'm implementing XSLT using C#. In my working directory, I have data.xml file.xsl, and I want to apply the XSLT defined by file.xsl on data.xml, in order to get data.html xslt.cs: using System; using System.Xml.Xsl; class XSLT__ { static void…
Mugen
  • 8,301
  • 10
  • 62
  • 140
0
votes
1 answer

CSC task in Msbuild aborts with namespace errors

I have attempted the following: