-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathWorkflow.VisualBasic.Targets
177 lines (156 loc) · 8.48 KB
/
Workflow.VisualBasic.Targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask TaskName="System.Workflow.ComponentModel.Compiler.CompileWorkflowTask" AssemblyName="System.Workflow.ComponentModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<UsingTask TaskName="System.Workflow.ComponentModel.Compiler.CreateWorkflowManifestResourceNameForVB" AssemblyName="System.Workflow.ComponentModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<UsingTask TaskName="System.Workflow.ComponentModel.Compiler.CompileWorkflowCleanupTask" AssemblyName="System.Workflow.ComponentModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<PropertyGroup>
<WinWFTempFiles>
</WinWFTempFiles>
<KeepWinWFTempFiles>
</KeepWinWFTempFiles>
</PropertyGroup>
<PropertyGroup>
<CoreCompileDependsOn>$(CoreCompileDependsOn);WorkflowCompilation</CoreCompileDependsOn>
<CoreBuildDependsOn>$(CoreBuildDependsOn);WorkflowCompilationCleanup</CoreBuildDependsOn>
</PropertyGroup>
<PropertyGroup>
<CreateCustomManifestResourceNamesDependsOn>
$(CreateCustomManifestResourceNamesDependsOn);CreateWorkflowManifestResourceNames
</CreateCustomManifestResourceNamesDependsOn>
<CreateWorkflowManifestResourceNamesDependsOn></CreateWorkflowManifestResourceNamesDependsOn>
</PropertyGroup>
<Target Name="CreateWorkflowManifestResourceNames"
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'"/>
</ItemGroup>
<!-- Create WF specific resource names for non-culture non-resx files. -->
<CreateWorkflowManifestResourceNameForVB
Condition="'@(WFNonResxWithNoCulture)'!=''"
ResourceFiles="@(WFNonResxWithNoCulture)"
RootNamespace="$(RootNamespace)">
<Output TaskParameter="ResourceFilesWithManifestResourceNames" ItemName="_WFNonResxWithWFManifestNameWithNoCulture"></Output>
</CreateWorkflowManifestResourceNameForVB>
<CreateWorkflowManifestResourceNameForVB
Condition="'@(WFNonResxWithCulture)'!=''"
ResourceFiles="@(WFNonResxWithCulture)"
RootNamespace="$(RootNamespace)">
<Output TaskParameter="ResourceFilesWithManifestResourceNames" ItemName="_WFNonResxWithWFManifestNameWithCulture"></Output>
</CreateWorkflowManifestResourceNameForVB>
<ItemGroup>
<EmbeddedResource Remove="@(_WFNonResxWithWFManifestNameWithNoCulture)" />
<EmbeddedResource Remove="@(_WFNonResxWithWFManifestNameWithCulture)" />
<EmbeddedResource Include="@(_WFNonResxWithWFManifestNameWithNoCulture)">
<Type>Non-Resx</Type>
<WithCulture>false</WithCulture>
</EmbeddedResource>
<EmbeddedResource Include="@(_WFNonResxWithWFManifestNameWithCulture)">
<Type>Non-Resx</Type>
<WithCulture>true</WithCulture>
</EmbeddedResource>
</ItemGroup>
</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);
@(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)"
KeyContainer="$(KeyContainerName)"
KeyFile="$(KeyOriginatorFile)">
<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>