Home > Mobile >  Where is Visual Studio Build Action stored?
Where is Visual Studio Build Action stored?

Time:03-29

I'm writing a parser to pull data from various programs. Some of the programs have "Build Action" set to "None" and I want to skip them. I was guessing that this property would be in the .csproj, .btproj file, but I don't see it there. So my question is where is it stored?

I'm specifically dealing with BizTalk orchestrations, but I think the same concept would apply to C# and C# project files as well. I'm using Visual Studio 2015 to be compatible with BizTalk 2016.

enter image description here

CodePudding user response:

It seems to create a "None" XML element in the .btproj file as shown below. I was expecting to be an attribute or element value, not an xml element itself.

  <ItemGroup>
    <None Include="Orchestrations\PublishPIHistoricalData_v2.odx">
      <SubType>Task</SubType>
      <TypeName>PublishPIHistoricalData_v2</TypeName>
      <Namespace>ABC.Integration.BizTalk.ProcessDataHistorian.Orchestrations</Namespace>
    </None>

whereas a compiled orchestration will look like this:

 <ItemGroup>
    <XLang Include="Orchestrations\PublishPIDataODS.odx">
      <SubType>Task</SubType>
      <TypeName>PublishPIData_ODS</TypeName>
      <Namespace>ABC.Integration.BizTalk.ProcessDataHistorian.Orchestrations</Namespace>
    </XLang>
  • Related