~nunit-core/nunitv2/2.5

« back to all changes in this revision

Viewing changes to tools/MutantBuild/Microsoft.Common.targets

  • Committer: jcansdale
  • Date: 2004-10-09 13:02:14 UTC
  • Revision ID: vcs-imports@canonical.com-20041009130214-5liblibdfltxqlwa
Tool for building VS2003 projects with MSBuild.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 
2
 
 
3
    <!-- Extend the original -->
 
4
    <Import Project="$(MSBuildBinPath)\Originals\Microsoft.Common.targets" />
 
5
    
 
6
    <!-- Use .NET 1.x ResGen tool -->
 
7
    <!--
 
8
    Run resgen on the given resx files.
 
9
 
 
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.
 
13
 
 
14
        [IN]
 
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)
 
19
 
 
20
        [OUT]
 
21
        @(ManifestResourceWithNoCulture) - The path to the corresponding .RESOURCE  files
 
22
        @(ManifestResourceWithCulture) - The path to the corresponding .RESOURCE  files
 
23
    -->
 
24
    <PropertyGroup>
 
25
        <ResGenDependsOn>ResolveAssemblyReferences</ResGenDependsOn>
 
26
        <UseSourcePath Condition="'$(UseSourcePath)'==''">true</UseSourcePath>
 
27
        
 
28
        <!-- Default to local version -->
 
29
                <ResGenToolPath>$(MSBuildBinPath)\ResGen</ResGenToolPath>
 
30
    </PropertyGroup>
 
31
    <Target
 
32
        Name="ResGen"
 
33
        Condition="'@(ResxWithNoCulture)@(ResxWithCulture)'!=''"
 
34
        DependsOnTargets="$(ResGenDependsOn)"
 
35
        >
 
36
 
 
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'"/>
 
41
 
 
42
        <ResGen
 
43
            Sources="@(ResxWithNoCulture)"
 
44
            Condition=" '@(ResxWithNoCulture)' != '' "
 
45
            StateFile="$(IntermediateOutputPath)ResGen.cache"
 
46
            OutputResources="@(ManifestResourceWithNoCultureName->'$(IntermediateOutputPath)%(Identity).resources')"
 
47
            ToolPath="$(ResGenToolPath)">
 
48
 
 
49
            <Output
 
50
                TaskParameter="OutputResources"
 
51
                ItemName="ManifestResourceWithNoCulture"/>
 
52
        </ResGen>
 
53
 
 
54
<!--            NOTE: Not supported in ResGen 1.0
 
55
            UseSourcePath="$(UseSourcePath)"
 
56
            References="@(ReferencePath)"
 
57
-->
 
58
 
 
59
        <ResGen
 
60
            Sources="@(ResxWithCulture)"
 
61
            Condition=" '@(ResxWithCulture)' != '' "
 
62
            References="@(ReferencePath)"
 
63
            UseSourcePath="$(UseSourcePath)"
 
64
            OutputResources="@(ManifestResourceWithCultureName->'$(IntermediateOutputPath)%(Identity).resources')"
 
65
            ToolPath="$(ResGenToolPath)">
 
66
 
 
67
            <Output
 
68
                TaskParameter="OutputResources"
 
69
                ItemName="ManifestResourceWithCulture"/>
 
70
        </ResGen>
 
71
 
 
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'"/>
 
74
 
 
75
    </Target>
 
76
    
 
77
    <!--
 
78
    Get the Frameworks and Platform SDK paths.
 
79
    -->
 
80
    <PropertyGroup>
 
81
        <GetFrameworkPathsDependsOn></GetFrameworkPathsDependsOn>
 
82
        <TargetFrameworkDirectory>$(MSBuildBinPath)</TargetFrameworkDirectory>
 
83
    </PropertyGroup>
 
84
    <Target
 
85
        Name="GetFrameworkPaths"
 
86
        DependsOnTargets="$(GetFrameworkPathsDependsOn)"
 
87
        >
 
88
 
 
89
        <!-- Get the path to the target .NET framework directory. -->
 
90
        <!--
 
91
        <GetFrameworkPath>
 
92
            <Output TaskParameter="Path" PropertyName="TargetFrameworkDirectory"/>
 
93
        </GetFrameworkPath>
 
94
                -->
 
95
        <!-- Get the path to the target .NET framework SDK directory. -->
 
96
        <GetFrameworkSDKPath>
 
97
            <Output TaskParameter="Path" PropertyName="TargetFrameworkSDKDirectory"/>
 
98
        </GetFrameworkSDKPath>
 
99
 
 
100
    </Target>
 
101
    
 
102
    
 
103
    <!-- In Beta 2 this should be added -->
 
104
        <Import Project="$(MSBuildProjectDirectory)\Custom.targets" Condition="Exists('$(MSBuildProjectDirectory)\Custom.targets')" />
 
105
    
 
106
</Project>