[問題] 有關 C# 程式碼 compile 時的錯誤
Dear ALL:
小弟在 compile 一個 C# 的 project 時,
出現了一段錯誤
錯誤 1 型別 'Settings.Settings' 中沒有型別名稱
'Settings' Program.cs 15 46 Settings
以下為程式碼(Program.cs)
---------------------------------------------
namespace Settings
{
using System;
using System.Windows.Forms;
internal static class Program
{
[STAThread]
private static void Main(string[] args)
{
if (args.Length == 0)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Settings.Settings());
^^^^^^^^^^他跟我說這邊有誤
}
else
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
WebSettings mainForm = new WebSettings {
Acc = args[0]
};
Application.Run(mainForm);
}
}
}
}
---------------------------------------------
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.192.149.134
→
03/29 20:21, , 1F
03/29 20:21, 1F
→
03/29 20:21, , 2F
03/29 20:21, 2F
推
04/04 00:00, , 3F
04/04 00:00, 3F
→
04/04 00:01, , 4F
04/04 00:01, 4F
→
04/04 00:01, , 5F
04/04 00:01, 5F
→
04/04 00:02, , 6F
04/04 00:02, 6F
C_Sharp 近期熱門文章
PTT數位生活區 即時熱門文章
52
80