473,799 Members | 2,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

doest C# always have to be compiled or is there a way to run C# on the fly?

I want to know if there is a way it's possible to run
csharp code from a .txt file without having to recompile
it.

thx in advance
Jul 15 '08 #1
4 1144
On Jul 15, 9:10*am, "Richard" <richard...@hot mail.comwrote:
I want to know if there is a way it's possible to run
csharp code from a .txt file without having to recompile
it.
C# always has to be compiled, but there are classes available to let
you compile extra code into an assembly while your program is running.
See Snippy for a simple example of this: http://csharpindepth.com/Downloads..aspx

Jon
Jul 15 '08 #2
TAB
Hi

Try this one, Mini C# Lab. Very nice to have for just checking something.

http://www.codeplex.com/minicsharpla...eleaseId=15109

"Richard" <ri********@hot mail.comskrev i meddelandet
news:#w******** ******@TK2MSFTN GP03.phx.gbl...
I want to know if there is a way it's possible to run
csharp code from a .txt file without having to recompile
it.

thx in advance
Jul 15 '08 #3
Richard wrote:
I want to know if there is a way it's possible to run
csharp code from a .txt file without having to recompile
it.
In practice C# is a compiled language.

In theory it is possible to write a C# interpreter and
a few attempts can be found via Google:

http://www.codeproject.com/KB/cs/csi.aspx
http://www.devhood.com/tools/tool_de...px?tool_id=641

In the real word you will pick another language for
interpretation.

Arne
Jul 16 '08 #4
TAB wrote:
"Richard" <ri********@hot mail.comskrev i meddelandet
news:#w******** ******@TK2MSFTN GP03.phx.gbl...
>I want to know if there is a way it's possible to run
csharp code from a .txt file without having to recompile
it.
Try this one, Mini C# Lab. Very nice to have for just checking something.

http://www.codeplex.com/minicsharpla...eleaseId=15109
http://www.codeplex.com/minicsharplab shows "build succeeded" in the
screen dump so I will assume that it compile !

Arne
Jul 16 '08 #5

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

Similar topics

3
1419
by: r.manders | last post by:
In visual Studio .Net when I start a program in the debugger, it always starts building all included project files. This only happens since a few weeks, before that it just started the program, unless a file in one of the projects was editted. Now it always builds (not rebuild) even when nothing has changed. Why is that ? is there some options that can be set ? Is this the result of some windows update ? Because my solution includes a...
3
1781
by: Dai Hao | last post by:
Hi all, I have a solution that includes several projects, and one of them depends on all others. When I compile it in Visual Studio, it always recompile all the other projects even though I havn't modified them at all. This is annoying coz whenever I make a small change, I have to wait for the whole solution to be compiled. Can anybody suggest why and any way to solve it? p.s. whenever I press F5 for debug, VS will recompile the...
1
4127
by: Arpan | last post by:
I am a newbie ASP.NET programmer. While going through the MSDN ASP.NET tutorial, I came across the following sentence: All ASP.NET code is compiled rather than interpreted which allows early binding, strong typing & just-in-time (JIT) compiling to native code. What do "compiled rather than interpreted" & "early binding" mean? Also since ASP.NET code is compiled & not interpreted, what are the benefits of "compiled" code over "interpreted"...
8
1984
by: Dave | last post by:
Does anyone have any idea why my 2005 solution is choosing to rebuild, everytime i execute any project within its space? There's nothing overly strange with the project assemblies within, a few class libraries, a couple of console apps, one custom setup project and one windows installer project. i've never seen this behavior before, and i've checked all the projects' settings that i can think of.
0
9550
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10269
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10248
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10032
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7573
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5469
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4148
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2942
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.