1
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4
TaskName="Microsoft.Build.Tasks.CreateBooManifestResourceName"
5
AssemblyFile="Boo.Microsoft.Build.Tasks.dll" />
8
TaskName="Boo.Microsoft.Build.Tasks.Booc"
9
AssemblyFile="Boo.Microsoft.Build.Tasks.dll"/>
12
TaskName="Boo.Microsoft.Build.Tasks.ExecBoo"
13
AssemblyFile="Boo.Microsoft.Build.Tasks.dll"/>
16
<MSBuildAllProjects Condition="'$(BooBinPath)' != ''">
17
$(MSBuildAllProjects);$(BooBinPath)\Boo.Microsoft.Build.targets
19
<MSBuildAllProjects Condition="'$(BooBinPath)' == ''">
20
$(MSBuildAllProjects);$(MSBuildBinPath)\Boo.Microsoft.Build.targets
22
<DefaultLanguageSourceExtension>.boo</DefaultLanguageSourceExtension>
23
<Language>Boo</Language>
27
The CreateManifestResourceNames target create the manifest resource names
31
@(ResxWithNoCulture) - The names the non-culture .RESX files.
32
@(ResxWithCulture) - The names the culture .RESX files.
33
@(NonResxWithNoCulture) - The names of the non-culture non-RESX
34
files (like bitmaps, etc).
36
@(NonResxWithCulture) - The names of the culture non-RESX
37
files (like bitmaps, etc).
40
@(ManifestResourceWithNoCultureName) - The corresponding manifest
41
resource name (.RESOURCE)
43
@(ManifestResourceWithCultureName) - The corresponding manifest
44
resource name (.RESOURCE)
46
@(ManifestNonResxWithNoCulture) - The corresponding manifest
49
@(ManifestNonResxWithCulture) - The corresponding manifest
52
For Boo applications the transformation is like:
54
Resources1.resx => RootNamespace.Resources1 => Build into main assembly
56
SubFolder\Resources1.resx =>
57
RootNamespace.SubFolder.Resources1 =>
58
Build into main assembly
61
RootNamespace.Resources1.fr =>
62
Build into satellite assembly
64
Resources1.notaculture.resx =>
65
RootNamespace.Resources1.notaculture =>
66
Build into main assembly
68
For other project systems, this transformation may be different.
72
<CreateManifestResourceNamesDependsOn>
73
</CreateManifestResourceNamesDependsOn>
77
Name="CreateManifestResourceNames"
78
DependsOnTargets="$(CreateManifestResourceNamesDependsOn)"
80
<CallTarget Targets="CreateManifestResourceNames_35" Condition="'$(MSBuildToolsVersion)' == '3.5'"/>
81
<CallTarget Targets="CreateManifestResourceNames_20" Condition="'$(MSBuildToolsVersion)' != '3.5'"/>
85
Name="CreateManifestResourceNames_20"
89
@(NonResxWithNoCulture)
90
@(NonResxWithCulture)'!=''"
92
<!-- Create the target resource names for non-culture resx files -->
93
<CreateBooManifestResourceName
94
Condition="'@(ResxWithNoCulture)'!=''"
95
ResourceFiles="@(ResxWithNoCulture)"
96
RootNamespace="$(RootNamespace)">
99
TaskParameter="ManifestResourceNames"
100
ItemName="ManifestResourceWithNoCultureName"/>
102
</CreateBooManifestResourceName>
104
<!-- Create the target resource names for culture resx files. -->
105
<CreateBooManifestResourceName
106
Condition="'@(ResxWithCulture)'!=''"
107
ResourceFiles="@(ResxWithCulture)"
108
RootNamespace="$(RootNamespace)">
111
TaskParameter="ManifestResourceNames"
112
ItemName="ManifestResourceWithCultureName"/>
114
</CreateBooManifestResourceName>
116
<!-- Create the target resource names for non-culture non-resx files. -->
117
<CreateBooManifestResourceName
118
Condition="'@(NonResxWithNoCulture)'!=''"
119
ResourceFiles="@(NonResxWithNoCulture)"
120
RootNamespace="$(RootNamespace)">
123
TaskParameter="ManifestResourceNames"
124
ItemName="ManifestNonResxWithNoCulture"/>
126
</CreateBooManifestResourceName>
128
<!-- Create the target resource names for culture non-resx files. -->
129
<CreateBooManifestResourceName
130
Condition="'@(NonResxWithCulture)'!=''"
131
ResourceFiles="@(NonResxWithCulture)"
132
RootNamespace="$(RootNamespace)">
135
TaskParameter="ManifestResourceNames"
136
ItemName="ManifestNonResxWithCulture"/>
138
</CreateBooManifestResourceName>
142
Name="CreateManifestResourceNames_35"
143
Condition="'@(EmbeddedResource)' != ''"
146
<_Temporary Remove="@(_Temporary)" />
149
<CreateBooManifestResourceName
150
ResourceFiles="@(EmbeddedResource)"
151
RootNamespace="$(RootNamespace)"
152
Condition="'%(EmbeddedResource.ManifestResourceName)' == ''">
154
<Output TaskParameter="ResourceFilesWithManifestResourceNames" ItemName="_Temporary" />
156
</CreateBooManifestResourceName>
159
<EmbeddedResource Remove="@(EmbeddedResource)" Condition="'%(EmbeddedResource.ManifestResourceName)' == ''"/>
160
<EmbeddedResource Include="@(_Temporary)" />
161
<_Temporary Remove="@(_Temporary)" />
169
"None" is not technically a valid DebugType, so we can't pass it
170
in as such to the compiler. So here, we modify the properties so
173
<DebugSymbols Condition="'$(DebugType)' == 'none'">false</DebugSymbols>
174
<DebugType Condition="'$(DebugType)' == 'none'"></DebugType>
176
<!-- Provide a facility to override UseHostCompilerIfAvailable-->
177
<UseHostCompilerIfAvailable
178
Condition="'$(UseHostCompilerIfAvailable)' == ''">
180
</UseHostCompilerIfAvailable>
186
Include="$(DocumentationFile)"
187
Condition="'$(DocumentationFile)'!=''">
189
<InProject>false</InProject>
194
<CoreCompileDependsOn>
195
_ComputeNonExistentFileProperty
196
</CoreCompileDependsOn>
199
<PropertyGroup Condition=" '$(BoocToolPath)' != '' ">
200
<ReferencePath>$(ReferencePath);$(BoocToolPath)</ReferencePath>
202
<PropertyGroup Condition=" '$(BoocToolPath)' == '' ">
203
<ReferencePath>$(ReferencePath);$(BooBinPath)</ReferencePath>
208
Inputs="$(MSBuildAllProjects);
210
@(ManifestResourceWithNoCulture);
212
$(AssemblyOriginatorKeyFile);
213
@(ManifestNonResxWithNoCultureOnDisk);
215
@(CompiledLicenseFile)"
216
Outputs="@(IntermediateAssembly)"
217
DependsOnTargets="$(CoreCompileDependsOn)"
219
<Warning Text="This version of Boo does not support compiling for .NET $(TargetFrameworkVersion); the project will be compiled for .NET 4.0 instead." Condition=" '$(TargetFrameworkVersion)' != 'v4.0' "/>
222
AllowUnsafeBlocks="$(AllowUnsafeBlocks)"
223
CheckForOverflowUnderflow="$(CheckForOverflowUnderflow)"
224
Culture="$(AssemblyCulture)"
225
DefineSymbols="$(DefineConstants)"
226
DelaySign="$(DelaySign)"
227
DisabledWarnings="$(NoWarn)"
229
EmitDebugInformation="$(DebugSymbols)"
230
GenerateFullPaths="$(GenerateFullPaths)"
231
KeyContainer="$(AssemblyKeyContainerName)"
232
KeyFile="$(AssemblyOriginatorKeyFile)"
233
NoConfig="$(NoConfig)"
234
NoStandardLib="$(NoStdLib)"
235
OptionalWarnings="$(OptionalWarnings)"
236
OutputAssembly="@(IntermediateAssembly)"
237
Pipeline="$(Pipeline)"
238
Platform="$(PlatformTarget)"
239
References="@(ReferencePath)"
240
Resources="@(ManifestResourceWithNoCulture);
241
@(ManifestNonResxWithNoCultureOnDisk);
242
@(CompiledLicenseFile)"
243
ResponseFiles="$(CompilerResponseFile)"
244
SourceDirectory="$(SourceDirectory)"
247
TargetType="$(OutputType)"
248
ToolPath="$(BoocToolPath)"
249
TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
250
Utf8Output="$(Utf8Output)"
251
Verbosity="$(BoocVerbosity)"
252
WarningsAsErrors="$(WarningsAsErrors)"
253
WhiteSpaceAgnostic="$(WhiteSpaceAgnostic)"
257
Condition=" ('$(BoocToolPath)' == '') and ('$(CopyBooLangToOutput)' != 'false') "
258
SkipUnchangedFiles="true"
259
SourceFiles="$(BooBinPath)\Boo.Lang.dll"
260
DestinationFolder="$(OutputPath)"/>
263
Condition=" ('$(BoocToolPath)' != '') and ('$(CopyBooLangToOutput)' != 'false') "
264
SkipUnchangedFiles="true"
265
SourceFiles="$(BoocToolPath)\Boo.Lang.dll"
266
DestinationFolder="$(OutputPath)"/>
269
<Import Project="$(MSBuildBinPath)\Microsoft.Common.targets" />