4

After moving and renaming some files within a database project in VS 2010, I was comparing the dbproj file before and after my changes. I noticed that in some cases, the element "SubType" changed from "NotInBuild" to "Code", as follows.

from this:

<Build Include="...\somefolderpath\filename.proc.sql">
  <SubType>NotInBuild</SubType>
</Build>

to this:

<Build Include="...\somefolderpath\filename.proc.sql">
  <SubType>Code</SubType>
</Build>

I don't know what I did to cause this change or what the implications are, since I don't know what the SubType element even means. The SubType of NotInBuild is especially confusing since the solution does actually show that the object is in the build as indicated by its "Build" parent element shown above, also visible when looking at Properties in VS.

Does anyone know what this means and/or what it does? And specifically, what the values "Code" or "NotInBuild" would mean? My suspicion is that it is meaningless in a database project, but I would feel better knowing for sure.

JohnnyM
  • 28,758
  • 10
  • 38
  • 37

1 Answers1

1

The Visual Studio .NET uses the SubType for Form, Component, Designer, UserControl, etc., and may be used to easily to assign the right icon to a form file without having to parse the file. This may be related to the files you have open in the saved solution state.

You may also refer ProjectSubType Element and Designer Added then removed by Visual Studio on load/unload

Community
  • 1
  • 1
Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331