Search code examples
c#visual-studiocmddata-access-layer

cmd vs Visual Studio


I am currently working on windows application in c# and currently I met one problem. I started to creating the windows application in notepad++ because I not able to use VS. I am using cmd to compile the code. I will add that I have one *.dll file, which is used by the application. Now I am trying to move my code to VS. I created new solution and I used add existing item to include my code files. I also added reference to the *.dal file. I also added using namespace statment in my MainForm.cs file. Now I get problem because when I am tryind go tompile the code I got error:

 The type or namespace name 'DataAccessLayer' could not be found
 (are you missing a using directive or an assembly reference?)

I am wondering where I made mistake?


Solution

  • Original post here.

    In the project properties, change the Dotnet framework from 2.0,3.0 or 3.5 to 4, compile and run!enter image description here