I am producing a NuGet from several projects in a solution. One of the projects are required during the development process in the main project. (When I say main I mean the project which I run the nuget with IncludeReferencedProjects options) I do not want this project included in the nuget. However developmentDependency attribute is for packages only, not for DLLs from the solution. Is there a way to exclude this DLL from the NuGet?
A solution might be restructuring the solution and having no code in the main project, It only contains references to the projects which are needed in the NuGet.