Open ch53k opened 7 years ago
nuget pack model.csproj -outputDirectory c:\source\nugetTest -Properties Configuration=Release -version 17.0.19 -Verbosity Detailed **-exclude **/database/*.*
Is there a reason for the **
before -exclude
?
No, I was trying to bold that section of the command to accentuate the difference. Unfortunatly because of the other *s it wouldn't. I thought I had removed all of the extra **, I must of missed those 2.
nuget pack model.csproj -outputDirectory c:\source\nugetTest -Properties Configuration=Release -version 17.0.19 -Verbosity Detailed -exclude **/database/*.*
NuGet product used: Nuget.exe CLI and VSTS Nuget Task NuGet version: 4.1.0.2450
I have a project I'm trying to pack up, I generate a bunch of CS files using TT templates for database model definitions. These generated CS files get compiled into the final DLL so the TT files are not needed in the Nuget package. The project structure is simple with a single folder "Database" that contains some TT files and their corresponding CS files. But when I try to exclude the TT files using the files tag in in my nuspec file those files are always included, but if I excluding them with the -exlcude command they are excluded. I've included a sample project, along with the commands and output.
My nuspec files is defined as follows: `<?xml version="1.0"?>