Your IP : 192.168.165.1


Current Path : C:/Windows/Microsoft.NET/Framework/v4.0.30319/
Upload File :
Current File : C:/Windows/Microsoft.NET/Framework/v4.0.30319/Workflow.VisualBasic.Targets

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <UsingTask TaskName="System.Workflow.ComponentModel.Compiler.CompileWorkflowTask" AssemblyName="System.Workflow.ComponentModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  <UsingTask TaskName="System.Workflow.ComponentModel.Compiler.CreateWorkflowManifestResourceNameForVB" AssemblyName="System.Workflow.ComponentModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  <UsingTask TaskName="System.Workflow.ComponentModel.Compiler.CompileWorkflowCleanupTask" AssemblyName="System.Workflow.ComponentModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  <PropertyGroup>
    <WinWFTempFiles>
    </WinWFTempFiles>
    <KeepWinWFTempFiles>
    </KeepWinWFTempFiles>
  </PropertyGroup>
  <PropertyGroup>
    <CoreCompileDependsOn>$(CoreCompileDependsOn);WorkflowCompilation</CoreCompileDependsOn>
    <CoreBuildDependsOn>$(CoreBuildDependsOn);WorkflowCompilationCleanup</CoreBuildDependsOn>
  </PropertyGroup>

  <PropertyGroup>
    <CreateManifestResourceNamesDependsOn>
      $(CreateManifestResourceNamesDependsOn);PrepareWorkflowResources
    </CreateManifestResourceNamesDependsOn>
    <CreateCustomManifestResourceNamesDependsOn>
      $(CreateCustomManifestResourceNamesDependsOn);CreateWorkflowManifestResourceNames
    </CreateCustomManifestResourceNamesDependsOn>
    <CreateWorkflowManifestResourceNamesDependsOn></CreateWorkflowManifestResourceNamesDependsOn>
  </PropertyGroup>

  <Target Name="PrepareWorkflowResources"
          DependsOnTargets="$(CreateWorkflowManifestResourceNamesDependsOn)">

    <ItemGroup>
      <WFNonResxWithNoCulture Include="@(EmbeddedResource)"
        Condition="'%(EmbeddedResource.Extension)'=='.layout' and '%(EmbeddedResource.WithCulture)'=='false'"/>

      <WFNonResxWithNoCulture Include="@(EmbeddedResource)"
        Condition="'%(EmbeddedResource.Extension)'=='.rules' and '%(EmbeddedResource.WithCulture)'=='false'"/>

      <WFNonResxWithCulture Include="@(EmbeddedResource)"
        Condition="'%(EmbeddedResource.Extension)'=='.layout' and '%(EmbeddedResource.WithCulture)'=='true'"/>

      <WFNonResxWithCulture Include="@(EmbeddedResource)"
        Condition="'%(EmbeddedResource.Extension)'=='.rules' and '%(EmbeddedResource.WithCulture)'=='true'"/>
      <EmbeddedResource Remove="@(WFNonResxWithNoCulture)" />
      <EmbeddedResource Remove="@(WFNonResxWithCulture)" />
    </ItemGroup>

  </Target>
  <Target Name="CreateWorkflowManifestResourceNames"
          DependsOnTargets="$(CreateWorkflowManifestResourceNamesDependsOn)">

    <!-- Create WF specific resource names for non-culture non-resx files. -->

    <CreateWorkflowManifestResourceNameForVB  
      Condition="'@(WFNonResxWithNoCulture)'!=''"
      ResourceFiles="@(WFNonResxWithNoCulture)"
      RootNamespace="$(RootNamespace)">

      <Output TaskParameter="ResourceFilesWithManifestResourceNames" ItemName="EmbeddedResource"></Output>
    </CreateWorkflowManifestResourceNameForVB>

    <CreateWorkflowManifestResourceNameForVB  
      Condition="'@(WFNonResxWithCulture)'!=''"
      ResourceFiles="@(WFNonResxWithCulture)"
      RootNamespace="$(RootNamespace)">

      <Output TaskParameter="ResourceFilesWithManifestResourceNames" ItemName="EmbeddedResource"></Output>
    </CreateWorkflowManifestResourceNameForVB>

  </Target>

  <PropertyGroup>
    <WorkflowCompilationDependsOn>CreateWorkflowManifestResourceNames</WorkflowCompilationDependsOn>
  </PropertyGroup>

  <!--Note: The inputs and outputs of the "WorkflowCompilation" target match those of 
            "Compile" target in CSharp.Targets/VisualBasic.Targets 
            except that "WorkflowCompilation" have @(Content) also as the input 
            because .xoml files are represented as content items in the 
            project files.
            The inputs/outputs are evaluated at build time to determine if 
            the target's tasks need to be executed. -->
  <Target Name="WorkflowCompilation" 
          Inputs="$(MSBuildAllProjects);
          @(Compile);
          @(Content);
          @(EmbeddedResource);
          $(ApplicationIcon);
          $(AssemblyOriginatorKeyFile);
          @(ManifestNonResxWithNoCultureOnDisk);
          @(ReferencePath);
          $(TargetFrameworkMoniker);
          @(CompiledLicenseFile)" 
          Outputs="$(DocFile);
          @(IntermediateAssembly); 
          $(NonExistentFile)"
    DependsOnTargets="$(WorkflowCompilationDependsOn)">

    <ItemGroup>      
      <WFCompilationResourcesWithNoCulture Include="@(EmbeddedResource)" 
        Condition="'%(EmbeddedResource.Type)'!='resx' and '%(EmbeddedResource.WithCulture)'=='false'"/>
      <WFCompilationResourcesWithNoCulture Include="$(IntermediateOutputPath)%(EmbeddedResource.ManifestResourceName).resources"
        Condition="'%(EmbeddedResource.Type)'=='resx' and '%(EmbeddedResource.WithCulture)'=='false'"/>

      <WFCompilationResourcesWithUnknownCulture Include="@(EmbeddedResource)"
        Condition="'%(EmbeddedResource.Type)'!='resx' and '%(EmbeddedResource.WithCulture)'==''"/>
      <WFCompilationResourcesWithUnknownCulture Include="$(IntermediateOutputPath)%(EmbeddedResource.ManifestResourceName).resources"
        Condition="'%(EmbeddedResource.Type)'=='resx' and '%(EmbeddedResource.WithCulture)'==''"/>
      <WFCompilationResourcesWithNoCulture Include="@(WFCompilationResourcesWithUnknownCulture)"
        Condition="'@(WFCompilationResourcesWithNoCulture)'=='' and '@(WFCompilationResourcesWithUnknownCulture)'!=''"/>
    </ItemGroup>

    <ItemGroup>
       <WFCompilationOptions Include="define" Condition="'$(DefineConstants)' != ''">
          <value>$(DefineConstants)</value>
          <delimiter>:</delimiter>
       </WFCompilationOptions>
       <WFCompilationOptions Include="optioninfer" Condition="'$(OptionInfer)' == 'On'">
          <value>+</value>
       </WFCompilationOptions>
       <WFCompilationOptions Include="optioninfer" Condition="'$(OptionInfer)' == 'Off'">
          <value>-</value>
       </WFCompilationOptions>
       <WFCompilationOptions Include="optionexplicit" Condition="'$(OptionExplicit)' == 'On'">
          <value>+</value>
       </WFCompilationOptions>
       <WFCompilationOptions Include="optionexplicit" Condition="'$(OptionExplicit)' == 'Off'">
          <value>-</value>
       </WFCompilationOptions>
       <WFCompilationOptions Include="optionstrict" Condition="'$(OptionStrict)' == 'On'">
          <value>+</value>
       </WFCompilationOptions>
       <WFCompilationOptions Include="optionstrict" Condition="'$(OptionStrict)' == 'Off'">
          <value>-</value>
       </WFCompilationOptions>
       <WFCompilationOptions Include="optioncompare" Condition="'$(OptionStrict)' == 'Binary'">
          <value>binary</value>
          <delimiter>:</delimiter>
       </WFCompilationOptions>
       <WFCompilationOptions Include="optioncompare" Condition="'$(OptionStrict)' == 'Text'">
          <value>text</value>
          <delimiter>:</delimiter>
       </WFCompilationOptions>
       <WFCompilationOptions Include="nowarn" Condition="'$(NoWarn)' != ''">
          <value>$(NoWarn)</value>
          <delimiter>:</delimiter>
       </WFCompilationOptions>
    </ItemGroup>      

    <CompileWorkflowTask 
      Imports="@(Import)"
      RootNamespace="$(RootNamespace)"
      AssemblyName="$(AssemblyName)"
      ProjectDirectory="$(MSBuildProjectDirectory)" 
      ProjectExtension="$(MSBuildProjectExtension)" 
      ResourceFiles="@(WFCompilationResourcesWithNoCulture);@(CompiledLicenseFile)"
      ReferenceFiles="@(ReferencePath)" 
      SourceCodeFiles="@(Compile)" 
      WorkflowMarkupFiles="@(Content)"
      CompilationOptions="@(WFCompilationOptions)"
      DelaySign="$(DelaySign)"
      TargetFramework="$(TargetFrameworkMoniker)"
      KeyContainer="$(KeyContainerName)"
      KeyFile="$(KeyOriginatorFile)"
	  BuildingProject="$(BuildingProject)">
      <Output TaskParameter="OutputFiles" ItemName="Compile" />
      <Output TaskParameter="TemporaryFiles" ItemName="WinWFTempFiles" />
      <Output TaskParameter="KeepTemporaryFiles" ItemName="KeepWinWFTempFiles" />
    </CompileWorkflowTask>
  </Target>
  
  <Target Name="WorkflowCompilationCleanup">
    <CompileWorkflowCleanupTask 
        TemporaryFiles="@(WinWFTempFiles)" />
  </Target>
</Project>