Reputation: 3678
I have tried multiple combinations in the Contents section, but still, the everytime obj folder is copied to my build.
Here's my source directory structure
I have used following combinations for my Contents
section:
1. **\!(obj|V1Server.vshost.exe|V1Server.vshost.exe.config|.pdb|.xml|.cache|.cs|.csproj|.CopyComplete|.ico|.resx|.resources|.txt) bin\$(BuildConfiguration) bin\App.config
2.obj\!(*)
3.!(obj)
4.!(obj)\
What is wrong with my pattern matching syntax?
Upvotes: 3
Views: 8835
Reputation: 38116
You just need to need below two lines to exclude obj folder in contents
option:
**
!src\V1TCPIPService\obj\**
Upvotes: 4