473,408 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

C# compiler option - path to file?

17
Hi.

I wonder if there is any option to specify the input file path with csc.exe, like -file <file path> or -path <file path>?

I've googled it, and I found a topic at MSDN about "C# Compiler options", but it didn't have any information about -options, only /options. In my program, I'm going to execute csc.exe with the path to a file as an argument, but it doesn't work with:

Expand|Select|Wrap|Line Numbers
  1. public void compile()
  2.         {
  3.             Process compile = new Process();
  4.             string Startinfo = "\"" + compileDir + language[compLanguage] + "\"";
  5.             compile.StartInfo.FileName = Startinfo;
  6.             compile.StartInfo.Arguments = path;
  7.             compile.Start();
  8.         }
I want to execute csc.exe as you would've done from a shortcut, and not from the Command Prompt window.

Any ideas?

Thanks in advance,
Saser
Jul 13 '09 #1
2 2972
Plater
7,872 Expert 4TB
Don't you just say:
Expand|Select|Wrap|Line Numbers
  1. csc.exe c:\someFolder\SomeProjectFolder\SomeFileToCompile.cs
  2.  
Jul 13 '09 #2
Saser
17
Didn't work to me.

Anyways, quitted working on this project for a time, just finished another program that helps me to not sit at the computer too long. ;)

Thanks anyway
Saser
Jul 23 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Adam | last post by:
I'm just starting to try and learn my first comp language. However, I'm so new to this I don't even know how to get the compiler to work that came with my Jamso's C++ book. I've read the readme...
4
by: Christopher M. Lusardi | last post by:
Hello, Can I run the subject line program using CC instead of cc? I attempted to use the "-c" option and it told me things were undefined. Isn't this CC option the same as the cc -c option? ...
9
by: happy | last post by:
I need to download Command line C compiler ASAP ? Where can I find the latest and moden one ?
5
by: Hari | last post by:
Guys please help me to solve this strange problem what Iam getting as follows.. Trying to instantiate a global instance of a template class as follows :- when i build this code with debug and...
5
by: rawCoder | last post by:
Hi All, In Visual Basic .NET , your function definition might requirre you to return a value but (accidently/intentionally) you dont put any 'return value' in the function. In this case VB...
9
by: Ritesh Raj Sarraf | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I'm using optparse module to parse all options and arguments. My program uses mostly "option arguments" hence my len(args) value is always...
4
by: Sean | last post by:
I recently downloaded the 5.5 command line tool. I hav installed the freecommandLinetools.exe file. But im unable to configure the compiler to run. I cant interpret the instructions in the...
5
by: =?Utf-8?B?Q2hyaXM=?= | last post by:
Hi, I need to store lots of product images. I was thinking of storing the paths in the database but overtime it may become cumbersome as I'll be dealing with lots of images. I would need to...
27
by: Dave | last post by:
I'm having a hard time tying to build gcc 4.3.1 on Solaris using the GNU compilers. I then decided to try to use Sun's compiler. The Sun Studio 12 compiler reports the following code, which is in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.