1 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
\r
4 TaskName="Microsoft.Build.Tasks.CreateBooManifestResourceName"
\r
5 AssemblyFile="Boo.Microsoft.Build.Tasks.dll" />
\r
8 TaskName="Boo.Microsoft.Build.Tasks.Booc"
\r
9 AssemblyFile="Boo.Microsoft.Build.Tasks.dll"/>
\r
12 <MSBuildAllProjects Condition="'$(BoocToolPath)' != ''">
\r
13 $(MSBuildAllProjects);$(BoocToolPath)\Boo.Microsoft.Build.targets
\r
14 </MSBuildAllProjects>
\r
15 <MSBuildAllProjects Condition="'$(BoocToolPath)' == ''">
\r
16 $(MSBuildAllProjects);$(MSBuildBinPath)\Boo.Microsoft.Build.targets
\r
17 </MSBuildAllProjects>
\r
18 <DefaultLanguageSourceExtension>.boo</DefaultLanguageSourceExtension>
\r
19 <Language>Boo</Language>
\r
23 The CreateManifestResourceNames target create the manifest resource names
\r
24 from the .RESX files.
\r
27 @(ResxWithNoCulture) - The names the non-culture .RESX files.
\r
28 @(ResxWithCulture) - The names the culture .RESX files.
\r
29 @(NonResxWithNoCulture) - The names of the non-culture non-RESX
\r
30 files (like bitmaps, etc).
\r
32 @(NonResxWithCulture) - The names of the culture non-RESX
\r
33 files (like bitmaps, etc).
\r
36 @(ManifestResourceWithNoCultureName) - The corresponding manifest
\r
37 resource name (.RESOURCE)
\r
39 @(ManifestResourceWithCultureName) - The corresponding manifest
\r
40 resource name (.RESOURCE)
\r
42 @(ManifestNonResxWithNoCulture) - The corresponding manifest
\r
45 @(ManifestNonResxWithCulture) - The corresponding manifest
\r
48 For Boo applications the transformation is like:
\r
50 Resources1.resx => RootNamespace.Resources1 => Build into main assembly
\r
52 SubFolder\Resources1.resx =>
\r
53 RootNamespace.SubFolder.Resources1 =>
\r
54 Build into main assembly
\r
56 Resources1.fr.resx =>
\r
57 RootNamespace.Resources1.fr =>
\r
58 Build into satellite assembly
\r
60 Resources1.notaculture.resx =>
\r
61 RootNamespace.Resources1.notaculture =>
\r
62 Build into main assembly
\r
64 For other project systems, this transformation may be different.
\r
68 <CreateManifestResourceNamesDependsOn>
\r
69 </CreateManifestResourceNamesDependsOn>
\r
73 Name="CreateManifestResourceNames"
\r
75 @(ResxWithNoCulture)
\r
77 @(NonResxWithNoCulture)
\r
78 @(NonResxWithCulture)'!=''"
\r
80 DependsOnTargets="$(CreateManifestResourceNamesDependsOn)"
\r
83 <!-- Create the target resource names for non-culture resx files -->
\r
84 <CreateBooManifestResourceName
\r
85 Condition="'@(ResxWithNoCulture)'!=''"
\r
86 ResourceFiles="@(ResxWithNoCulture)"
\r
87 RootNamespace="$(RootNamespace)">
\r
90 TaskParameter="ManifestResourceNames"
\r
91 ItemName="ManifestResourceWithNoCultureName"/>
\r
93 </CreateBooManifestResourceName>
\r
95 <!-- Create the target resource names for culture resx files. -->
\r
96 <CreateBooManifestResourceName
\r
97 Condition="'@(ResxWithCulture)'!=''"
\r
98 ResourceFiles="@(ResxWithCulture)"
\r
99 RootNamespace="$(RootNamespace)">
\r
102 TaskParameter="ManifestResourceNames"
\r
103 ItemName="ManifestResourceWithCultureName"/>
\r
105 </CreateBooManifestResourceName>
\r
107 <!-- Create the target resource names for non-culture non-resx files. -->
\r
108 <CreateBooManifestResourceName
\r
109 Condition="'@(NonResxWithNoCulture)'!=''"
\r
110 ResourceFiles="@(NonResxWithNoCulture)"
\r
111 RootNamespace="$(RootNamespace)">
\r
114 TaskParameter="ManifestResourceNames"
\r
115 ItemName="ManifestNonResxWithNoCulture"/>
\r
117 </CreateBooManifestResourceName>
\r
119 <!-- Create the target resource names for culture non-resx files. -->
\r
120 <CreateBooManifestResourceName
\r
121 Condition="'@(NonResxWithCulture)'!=''"
\r
122 ResourceFiles="@(NonResxWithCulture)"
\r
123 RootNamespace="$(RootNamespace)">
\r
126 TaskParameter="ManifestResourceNames"
\r
127 ItemName="ManifestNonResxWithCulture"/>
\r
129 </CreateBooManifestResourceName>
\r
135 "None" is not technically a valid DebugType, so we can't pass it
\r
136 in as such to the compiler. So here, we modify the properties so
\r
139 <DebugSymbols Condition="'$(DebugType)' == 'none'">false</DebugSymbols>
\r
140 <DebugType Condition="'$(DebugType)' == 'none'"></DebugType>
\r
142 <!-- Provide a facility to override UseHostCompilerIfAvailable-->
\r
143 <UseHostCompilerIfAvailable
\r
144 Condition="'$(UseHostCompilerIfAvailable)' == ''">
\r
146 </UseHostCompilerIfAvailable>
\r
152 Include="$(DocumentationFile)"
\r
153 Condition="'$(DocumentationFile)'!=''">
\r
155 <InProject>false</InProject>
\r
160 <CoreCompileDependsOn>
\r
161 _ComputeNonExistentFileProperty
\r
162 </CoreCompileDependsOn>
\r
165 <PropertyGroup Condition=" '$(BoocToolPath)' != '' ">
\r
166 <ReferencePath>$(ReferencePath);$(BoocToolPath)</ReferencePath>
\r
168 <PropertyGroup Condition=" '$(BoocToolPath)' == '' ">
\r
169 <ReferencePath>$(ReferencePath);$(BooBinPath)</ReferencePath>
\r
174 Inputs="$(MSBuildAllProjects);
\r
176 @(ManifestResourceWithNoCulture);
\r
177 $(ApplicationIcon);
\r
178 $(AssemblyOriginatorKeyFile);
\r
179 @(ManifestNonResxWithNoCultureOnDisk);
\r
181 @(CompiledLicenseFile)"
\r
182 Outputs="@(DocFileItem);
\r
183 @(IntermediateAssembly);
\r
184 $(NonExistentFile)"
\r
185 DependsOnTargets="$(CoreCompileDependsOn)"
\r
189 OutputAssembly="@(IntermediateAssembly)"
\r
190 References="@(ReferencePath)"
\r
191 Resources= "@(ManifestResourceWithNoCulture);
\r
192 @(ManifestNonResxWithNoCultureOnDisk);
\r
193 @(CompiledLicenseFile)"
\r
194 ResponseFiles="$(CompilerResponseFile)"
\r
195 Sources="@(Compile)"
\r
196 TargetType="$(OutputType)"
\r
197 ToolPath="$(BoocToolPath)"
\r
198 Pipeline="$(Pipeline)"
\r
199 WhiteSpaceAgnostic="$(WhiteSpaceAgnostic)"
\r
201 Verbosity="$(BoocVerbosity)"
\r
202 Culture="$(AssemblyCulture)"
\r
203 SourceDirectory="$(SourceDirectory)"
\r
204 KeyFile="$(AssemblyOriginatorKeyFile)"
\r
205 KeyContainer="$(AssemblyKeyContainerName)"
\r
206 EmitDebugInformation="$(DebugSymbols)"
\r
207 DelaySign="$(DelaySign)"
\r
208 NoStandardLib="$(NoStdLib)"
\r
212 Condition=" '$(BoocToolPath)' == '' "
\r
213 SkipUnchangedFiles="true"
\r
214 SourceFiles="$(BooBinPath)\Boo.Lang.dll"
\r
215 DestinationFolder="$(OutputPath)"/>
\r
218 Condition=" '$(BoocToolPath)' != '' "
\r
219 SkipUnchangedFiles="true"
\r
220 SourceFiles="$(BoocToolPath)\Boo.Lang.dll"
\r
221 DestinationFolder="$(OutputPath)"/>
\r
224 <Import Project="$(MSBuildBinPath)\Microsoft.Common.targets" />
\r