Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/275.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# cmd vs visualstudio_C#_Visual Studio_Cmd_Data Access Layer - Fatal编程技术网

C# cmd vs visualstudio

C# cmd vs visualstudio,c#,visual-studio,cmd,data-access-layer,C#,Visual Studio,Cmd,Data Access Layer,我目前正在用c编写windows应用程序,目前遇到了一个问题。 我开始在notepad++中创建windows应用程序,因为我无法使用VS。我正在使用cmd编译代码。我要补充的是,我有一个*.dll文件,该文件由应用程序使用。 现在我尝试将代码移动到VS。我创建了新的解决方案,并使用添加现有项来包含代码文件。我还添加了对*.dal文件的引用。我还在MainForm.cs文件中添加了使用namespace station。现在我遇到了问题,因为当我尝试整理代码时,我遇到了错误: The type

我目前正在用c编写windows应用程序,目前遇到了一个问题。 我开始在notepad++中创建windows应用程序,因为我无法使用VS。我正在使用cmd编译代码。我要补充的是,我有一个*.dll文件,该文件由应用程序使用。 现在我尝试将代码移动到VS。我创建了新的解决方案,并使用添加现有项来包含代码文件。我还添加了对*.dal文件的引用。我还在MainForm.cs文件中添加了使用namespace station。现在我遇到了问题,因为当我尝试整理代码时,我遇到了错误:

 The type or namespace name 'DataAccessLayer' could not be found
 (are you missing a using directive or an assembly reference?)
我想知道我哪里弄错了?

原帖


在项目属性中,将Dotnet framework从2.0、3.0或3.5更改为4,编译并运行

您是否已添加对外部DLL的引用?听起来好像您没有引用您提到的DLL。在“解决方案资源管理器”选项卡中,找到“引用”,右键单击并选择“添加”,然后将dll添加到引用列表中。