title: How to exclude a dependency from nuget package in Visual studio
body: <p>I have a solution that consume a nuget that have all DTO classes(DataObjects). </p>
  
  <p>When developing I want to create new DTO's. To avoid to have to add the DTO to the external project DataObjects and recompile and republish the nuget just to have access to the new DTO in my project, I have created a project(DevObjects) that have the same namespace.
  I just pop a new DTO class into DevObjects and continue developing.
  When I'm done with that particular job I move the DTO to the DataObjects recompile and publish the nuget.</p>
  
  <p>This works fine except that when I publish the the library that I was working on as a nuget, it list DevObjects as a dependency even thou it is not referenced in code.</p>
  
  <p>How can I exclude DevObjects from the library nuget?</p>
  
  <p>The only workaround I can think of is to publish a dummy nuget of DevObjects just to make nuget happy, but it does not feel like a palatable solution. </p>