1 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <PrepareResourcesDependsOn>GenerateSplitStringResources;$(PrepareResourcesDependsOn)</PrepareResourcesDependsOn>
7 <PreprocessFileTaskAsssemblyPath Condition="'$(PreprocessFileTaskAsssemblyPath)' == ''">$(BuildToolsTaskDir)Microsoft.DotNet.Build.Tasks.dll</PreprocessFileTaskAsssemblyPath>
10 <UsingTask TaskName="PreprocessFile" AssemblyFile="$(PreprocessFileTaskAsssemblyPath)" />
12 <Target Name="GenerateSplitStringResources"
13 Inputs="@(SplitTextStringResource)"
14 Outputs="@(SplitTextStringResource->'$(IntermediateOutputPath)%(Filename).txt')">
17 <Internal_ResGenDefines Remove="@(Internal_ResGenDefines)" />
18 <Internal_ResGenDefines Include="INCLUDE_DEBUG" />
19 <Internal_ResGenDefines Include="INCLUDE_RUNTIME" />
20 <Internal_ResGenDefines Include="%(SplitTextStringResource.ResGenDefines)" />
23 <PreprocessFile SourceFile="%(SplitTextStringResource.Identity)" OutputFile="$(IntermediateOutputPath)%(SplitTextStringResource.Filename).txt" Defines="@(Internal_ResGenDefines)" />
25 <GenerateResource Sources="$(IntermediateOutputPath)%(SplitTextStringResource.Filename).txt"
26 OutputResources="$(IntermediateOutputPath)%(SplitTextStringResource.Filename).resources"
27 ExecuteAsTool="false" />
30 <EmbeddedResource Include="@(SplitTextStringResource->'$(IntermediateOutputPath)%(Filename).resources')">
31 <WithCulture>false</WithCulture>
32 <ManifestResourceName>%(Filename)</ManifestResourceName>
34 <Clean Include="$(IntermediateOutputPath)%(SplitTextStringResource.Filename).txt" />
35 <Clean Include="$(IntermediateOutputPath)%(SplitTextStringResource.Filename).resources" />
39 <Internal_ResGenDefines Remove="@(Internal_ResGenDefines)" />