Size: 1375
Comment:
|
Size: 1582
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 41: | Line 41: |
{{{#!highlight csharp using System.Configuration; //..... string valuex = ConfigurationManager.AppSettings["keyx"]; System.Console.WriteLine(valuex); }}} Copy src/app.config to AppX.exe.config. |
CSharp
CSharp is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, procedural, generic, object-oriented (class-based), and component-oriented programming disciplines. It was developed by Microsoft within its .NET initiative and later approved as a standard by Ecma (ECMA-334) and ISO (ISO/IEC 23270:2006). C# is one of the programming languages designed for the Common Language Infrastructure. From Wikipedia
Compile code based on csc (CSharp compiler)
Look for the compiler in c:\windows\Microsoft.NET\Framework\<version>\csc.exe
Hello world sample code:
Compile HelloWorld.cs:
csc /t:exe /out:HelloWorld.exe HelloWorld.cs
Build batch file example .NET 4.0
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /t:library /out:libx.dll src\_Default.cs src\DALSql.cs src\Global.cs
app.config sample
Copy src/app.config to AppX.exe.config.