blob: 4b69ba6eade539728fb7f0998775d0fef15fadfa (
plain)
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
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ResGenCommand Condition="'$(ResGenCommand)'=='' and '$(OsEnvironment)'=='Windows_NT'">$(SDK40ToolsPath)ResGen.exe</ResGenCommand>
<ResGenCommand Condition="'$(ResGenCommand)'=='' and '$(OsEnvironment)'=='Unix'">resgen</ResGenCommand>
<PrepareResourcesDependsOn>GenerateSplitStringResources;$(PrepareResourcesDependsOn)</PrepareResourcesDependsOn>
</PropertyGroup>
<Target Name="GenerateSplitStringResources"
Inputs="$(MSBuildThisFileFullPath);$(MSBuildProjectFile);$(BclSourcesRoot)\mscorlib.txt"
Outputs="@(SplitTextStringResource->'$(IntermediateOutputPath)%(Filename).resources')">
<ItemGroup Condition="'$(OsEnvironment)'=='Windows_NT'">
<Internal_ResGenDefines Remove="" />
<Internal_ResGenDefines Include="INCLUDE_DEBUG" />
<Internal_ResGenDefines Include="INCLUDE_RUNTIME" />
<Internal_ResGenDefines Include="%(SplitTextStringResource.ResGenDefines)" />
</ItemGroup>
<Exec Command=""$(ResGenCommand)" "%(SplitTextStringResource.Identity)" "$(IntermediateOutputPath)%(SplitTextStringResource.Filename).resources" @(Internal_ResGenDefines->'/D:%(Identity)', ' ')" />
<ItemGroup>
<EmbeddedResource Include="@(SplitTextStringResource->'$(IntermediateOutputPath)%(Filename).resources')">
<WithCulture>false</WithCulture>
<ManifestResourceName>%(Filename)</ManifestResourceName>
</EmbeddedResource>
<Clean Include="$(IntermediateOutputPath)%(SplitTextStringResource.Filename).resources" />
</ItemGroup>
<ItemGroup>
<Internal_ResGenDefines Remove="" />
</ItemGroup>
</Target>
</Project>
|