title: Deleting detected dependencies in vdproj file in C# setup project?
body: <p>I have a visual studio setup project that I am using for on one of my project. I shows me lot of dependencies that I don't want included in my MSI, so I excluded them (from VS UI). But for some reason when I use the command line msbuild it VS2010 still looks for the excluded dependencies. Then I decided to open the vdproj file in the text editor and then manually delete all the dependencies. So now my local msbuild problem is solved but when I build using the TFS build it reinjects all the dependencies into the MSI. </p>
  
  <p>Ex:</p>
  
  <pre><code>"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_EE52F4998F1347C63BF8AE8E07278827"
          {
          "AssemblyRegister" = "3:1"
          "AssemblyIsInGAC" = "11:FALSE"
          "AssemblyAsmDisplayName" = "8:myproject.Test, Version=3.3.0.0, Culture=neutral, processorArchitecture=MSIL"
              "ScatterAssemblies"
              {
                  "_EE52F4998F1347C63BF8AE8E07278827"
                  {
                  "Name" = "8:Test.testmsi.DLL"
                  "Attributes" = "3:512"
                  }
              }
          "SourcePath" = "8:test.testmsi.SR.DLL"
          "TargetName" = "8:"
          "Tag" = "8:"
          "Folder" = "8:_289AAB175D4E4DA9B94AC6756E51F3F9"
          "Condition" = "8:"
          "Transitive" = "11:FALSE"
          "Vital" = "11:TRUE"
          "ReadOnly" = "11:FALSE"
          "Hidden" = "11:FALSE"
          "System" = "11:FALSE"
          "Permanent" = "11:FALSE"
          "SharedLegacy" = "11:FALSE"
          "PackageAs" = "3:1"
          "Register" = "3:1"
          "Exclude" = "11:TRUE"
          "IsDependency" = "11:TRUE"
          "IsolateTo" = "8:"
          }
  </code></pre>
  
  <p>So  basically what I did was delete all these section of the file which has </p>
  
  <pre><code> "Exclude" = "11:TRUE"
   "IsDependency" = "11:TRUE"
  </code></pre>
  
  <p>Is there any thing else I need to remove from the file so that TFS does not inject other stuff in the MSI?</p>
  
  <p>Thanks </p>