title: Can I remove App.config and packages.config from my projects?
body: <p>I'm following the book EF Code First by Lerman, and one of the things you do in the book is create a class library project in which you define a class that will inherit from DbContext. For this, you need to install Entity Framework. When you do this, two files will be added: App.config and packages.config.</p>
  
  <p>Then you add a console project, and use your brand new context class in a using statement. You'll encounter quite some errors, because the Console Project does not have a reference to EntityFramework.dll and EntityFramework.SqlServer.dll, and also because I'm not using SQL Server Express, but a full version.</p>
  
  <p>Now there are two options. The first is to also install entity framework in the console project. The other option is to reference the two .dll's, by adding a reference and adding them from the recent tab.</p>
  
  <p>The first option will again add the App.config and packages.config files, but this time to the console project.</p>
  
  <p>The second option does not. But trying to run the application will throw an exception, since it is looking for a connection string, and it can't find any. The solution I found is to copy the App.config that's in the class library project over to the console project, and put in a connectionString section in the copied App.config.</p>
  
  <p>But this raises the question:</p>
  
  <p>Which of these files can I remove? I seem to be able to remove the packages.config and App.config from the DataAccess project without any troubles. The console project seems to need the App.config.</p>