Witam, mam taki kod:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Environment;
using System.Windows.Forms;
namespace Checkerek
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
Jak widać, dodaję sobie System.Environment, jest to aplikacja Windows Forms. Nie kompiluje się to wyrzuca błąd:
Warning 1 Load of property 'RootNamespace' failed. The string for the root namespace must be a valid identifier. .NET Framework Checker
Error 2 A using namespace directive can only be applied to namespaces; 'System.Environment' is a type not a namespace C:\Users\SAMSUNG\AppData\Local\Temporary Projects.NET Framework Checker\Program.cs 4 7 .NET Framework Checker
Nie za bardzo wiem o co chodzi :(
Pomożecie mi?
Nagłówek 1 | Nagłówek 2 |
---|---|
Kolumna 1 | Kolumna 2 |