473,508 Members | 2,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to compile c# code dynamically?

Hi Frends,

I have a "a.aspx.cs" and "b.aspx.cs", can i compile b.aspx.cs from a.aspx.cs?

Thanks in advance

Best Regards,
Senthil kumar Ramachandran

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>bJOOPwmxPkqACl03wxL7Tg==</Id>
Nov 16 '05 #1
1 1603
Take a look at:
http://www.codeproject.com/dotnet/CodeFromCode.asp

It's in VB.NET, but you should be able to translate it pretty easily.

In particular, look at the ProcessExpression method, the part commented as
"Compiling the source file to an assembly DLL (IL code)."

Then the very next section shows how to call something from the compiled
code.

--
Adam Clauss
ca*****@tamu.edu

"Senthil Kumar via .NET 247" <an*******@dotnet247.com> wrote in message
news:uV**************@tk2msftngp13.phx.gbl...
Hi Frends,

I have a "a.aspx.cs" and "b.aspx.cs", can i compile b.aspx.cs from
a.aspx.cs?

Thanks in advance

Best Regards,
Senthil kumar Ramachandran

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>bJOOPwmxPkqACl03wxL7Tg==</Id>

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1779
by: Scott Brady Drummonds | last post by:
Hi, everyone, I'm working on a software project that contains some C++ code that I would like to be common to two separate projects. Ideally, I'd like to have each of these separate projects...
17
3100
by: newbiecpp | last post by:
I have hard time to understand run-time environment. Let assume that I have a program that has a simple variable alpha. When this variable is statically allocated, the compiler can use the...
22
4868
by: Qopit | last post by:
Hi there, I'm pretty new to Python and am trying to figure out how to get "will this code compile?"-like code checking. To me this is a pretty basic language/environment requirement, especially...
4
2760
by: John F | last post by:
Currently I'm working on a C# app for a large organization (700 users nationwide). This App is still under development. I have setup code in my App to pull C# source code from a database and...
2
2343
by: sarojanand | last post by:
Hi, I have created a project (abc) in my wwwroot folder on my system. From visual studio, i am able to run and view this page. Now I have deployed on wwwroot folder and for this I have edited...
2
1153
by: Nak | last post by:
Hi there, I have implemented pre-compile variable evaluation in my application to create a "Demo" version of my application with limited functionality. I would like to use this easy method...
7
2012
by: dc | last post by:
Can anybody think of a situation where virtual function's address resolution/ something related to virtual is done at compile time
2
2406
mikejfe
by: mikejfe | last post by:
Hi all. I've written a program that dynamically allocates memory for a 3dim array, reads a file into that array, does some stuff to the data in the array and then outputs the array to a file. I...
0
1121
by: tomerdr | last post by:
How can i dynamically compile a file with a custom tool like MSDataSetGenerator or other custom tool? Thanks in advance
0
7224
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
7323
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,...
1
7038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5049
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
4706
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...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.