First of all, let me start by saying that Nuget is amazing. I love it. That being said, there is one thing about it that I just discovered is really really annoying.
We have an internal structure that we use for almost all of our projects. So, I recently created a Visual Studio project template for it, along with VSIX .. had a few problems on the way due to Nuget .. he did not create a new project from the template when the template referred to the framework. since the infrastructure used Nuget, and it could not find the nuget folders in the new project created from the template. Thus, the solution was to remove nuget from the framework project and use only Nuget for other projects (nothing but a framework). Ok, great .. this solves the problem!
However, now with every open Nuget project, it automatically adds these 2 lines to the .csproj framework:
<RestorePackages>true</RestorePackages>
and
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
This is disappointing, because now we need to either completely abandon the use of Nuget, or continue to remove these lines from our .csproj file of our framework every time we want to rebuild the template.
Is there a way to show Nuget to ignore one project in a solution? In my case, ignore the draft framework ...
source share