Home > front end >  Visual studio pack NuGet without building folder
Visual studio pack NuGet without building folder

Time:05-06

I have a working visual studio 2019 project with a simple nuget package, where if I right click 'ClassLibrary2' and click 'pack' it packages my project into a NuGet package

enter image description here

I want to package this folder NxTestware, when I include the folder in my project and try to pack again, it results in errors that come from inside the source folder, like it is trying to build the contents of that folder

enter image description here

Is there some way in visual studio I can tell it that when I click 'pack', do not build the contents of the NxTestware folder?

CodePudding user response:

After trying I can't reproduce your issue on my side, please check your project's csproj file, and refer to this document: How to: Exclude files from the build.

  • Related