Ok, so I am using C# for the first time and am using Visual Studio. I edited the MainPage.xaml.cs
with my simple code and Visual Studio raised an error that The name 'Console' does not exist in the current context
. Here is an image of the same:
The code of the file is given below, but I can't understand what's wrong here...
// The `using` statements were pre-given in the original (default) code
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
namespace App1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Please help me out...