.
.
Visual C#
Windows
.Net 4.5
WPF Application
WpfApplication1
|
MessageBox.Show("My first WPF Application!");
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
// Output text to the screen.
Console.WriteLine("Beginning Visual C# 2012!");
Console.ReadKey();
}
}
}
|
Visual C#,
Windows,
.NET 4.5,
Console Application,
ConsoleApplication1
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
// Output text to the screen.
Console.WriteLine("Beginning Visual C# 2012!");
Console.ReadKey();
}
}
}
|
Note:
If you select “Start without debugging”, you will not get the Locals and Call Stack window.
|
Extracted from “Beginning Visual C# 2012 Programming”, available online fromhttp://www.amazon.com/Beginning-Visual-C-2012-Programming/dp/1118314417
|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
}
|
WARNING:
Before you unzip the compressed file and import the Solution to Visual Studio, make sure that there is no other existing solutions sharing the same name.
Otherwise you may accidentally overwrite the existing Solution files and folders.
|