1
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
<!-- Extend the original -->
4
<Import Project="$(MSBuildBinPath)\Originals\Microsoft.Common.targets" />
6
<!-- Use .NET 1.x ResGen tool -->
8
Run resgen on the given resx files.
10
This task checks timestamps internally for the .resx files as well as any linked files that are
11
referenced in the .resx file against the .resources file, so it does not need to specify Inputs
12
or Outputs in the Target.
15
@(ResxWithNoCulture) - The names the non-culture .RESX files.
16
@(ResxWithCulture) - The names the culture .RESX files.
17
@(ManifestResourceWithNoCultureName) - The corresponding manifest resource name (.RESOURCE)
18
@(ManifestResourceWithCultureName) - The corresponding manifest resource name (.RESOURCE)
21
@(ManifestResourceWithNoCulture) - The path to the corresponding .RESOURCE files
22
@(ManifestResourceWithCulture) - The path to the corresponding .RESOURCE files
25
<ResGenDependsOn>ResolveAssemblyReferences</ResGenDependsOn>
26
<UseSourcePath Condition="'$(UseSourcePath)'==''">true</UseSourcePath>
28
<!-- Default to local version -->
29
<ResGenToolPath>$(MSBuildBinPath)\ResGen</ResGenToolPath>
33
Condition="'@(ResxWithNoCulture)@(ResxWithCulture)'!=''"
34
DependsOnTargets="$(ResGenDependsOn)"
37
<Message Text="(in) The names the non-culture .RESX files: '@(ResxWithNoCulture)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/>
38
<Message Text="(in) The names the culture .RESX files: '@(ResxWithCulture)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/>
39
<Message Text="(in) Manifest-named resx files files with no culture: '@(ManifestResourceWithNoCultureName)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/>
40
<Message Text="(in) Manifest-named resx files with culture: '@(ManifestResourceWithCultureName)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/>
43
Sources="@(ResxWithNoCulture)"
44
Condition=" '@(ResxWithNoCulture)' != '' "
45
StateFile="$(IntermediateOutputPath)ResGen.cache"
46
OutputResources="@(ManifestResourceWithNoCultureName->'$(IntermediateOutputPath)%(Identity).resources')"
47
ToolPath="$(ResGenToolPath)">
50
TaskParameter="OutputResources"
51
ItemName="ManifestResourceWithNoCulture"/>
54
<!-- NOTE: Not supported in ResGen 1.0
55
UseSourcePath="$(UseSourcePath)"
56
References="@(ReferencePath)"
60
Sources="@(ResxWithCulture)"
61
Condition=" '@(ResxWithCulture)' != '' "
62
References="@(ReferencePath)"
63
UseSourcePath="$(UseSourcePath)"
64
OutputResources="@(ManifestResourceWithCultureName->'$(IntermediateOutputPath)%(Identity).resources')"
65
ToolPath="$(ResGenToolPath)">
68
TaskParameter="OutputResources"
69
ItemName="ManifestResourceWithCulture"/>
72
<Message Text="(out) The path to the corresponding non-culture .RESOURCE files: '@(ManifestResourceWithNoCulture)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/>
73
<Message Text="(out) The path to the corresponding culture .RESOURCE files: '@(ManifestResourceWithCulture)'" Condition="'$(MSBuildTargetsVerbose)'=='true'"/>
78
Get the Frameworks and Platform SDK paths.
81
<GetFrameworkPathsDependsOn></GetFrameworkPathsDependsOn>
82
<TargetFrameworkDirectory>$(MSBuildBinPath)</TargetFrameworkDirectory>
85
Name="GetFrameworkPaths"
86
DependsOnTargets="$(GetFrameworkPathsDependsOn)"
89
<!-- Get the path to the target .NET framework directory. -->
92
<Output TaskParameter="Path" PropertyName="TargetFrameworkDirectory"/>
95
<!-- Get the path to the target .NET framework SDK directory. -->
97
<Output TaskParameter="Path" PropertyName="TargetFrameworkSDKDirectory"/>
98
</GetFrameworkSDKPath>
103
<!-- In Beta 2 this should be added -->
104
<Import Project="$(MSBuildProjectDirectory)\Custom.targets" Condition="Exists('$(MSBuildProjectDirectory)\Custom.targets')" />