diff options
Diffstat (limited to 'src/mscorlib/Tools/BclRewriter/BclRewriter.targets')
-rw-r--r-- | src/mscorlib/Tools/BclRewriter/BclRewriter.targets | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mscorlib/Tools/BclRewriter/BclRewriter.targets b/src/mscorlib/Tools/BclRewriter/BclRewriter.targets new file mode 100644 index 0000000000..2c2031585a --- /dev/null +++ b/src/mscorlib/Tools/BclRewriter/BclRewriter.targets @@ -0,0 +1,29 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> + + <!-- ********************************************************************************************* --> + <!-- *** Task --> + <!-- ********************************************************************************************* --> + + <PropertyGroup> + <BclRewriterCommand Condition="'$(BclRewriterCommand)'==''">$(ToolsDir)\$(BuildToolsPackageName).$(BuildToolsVersion)\BclRewriter.exe</BclRewriterCommand> + <BclRewriterModelFile>$(MscorlibDir)model.xml</BclRewriterModelFile> + <BclRewriterWorkDir>$(IntermediateOutputPath)\BclRewriter</BclRewriterWorkDir> + <BclRewriterSymbolOutput>$(IntermediateOutputPath)\BclRewriter\$(TargetName).pdb</BclRewriterSymbolOutput> + <BclRewriterOutput>$(IntermediateOutputPath)\BclRewriter\$(TargetName)$(TargetExt)</BclRewriterOutput> + </PropertyGroup> + + <ItemGroup> + <RewrittenAssembly Include="$(BclRewriterOutput)" /> + </ItemGroup> + + <Target Name="RewriteWithBclRewriter" + Inputs="@(AnnotatedAssembly)" Outputs="@(RewrittenAssembly)"> + + <Exec Command="$(BclRewriterCommand) @(AnnotatedAssembly) /out:$(BclRewriterOutput) /include:$(BclRewriterModelFile) /platform:win /architecture:$(Platform) /flavor:$(_BuildType) /define:$(DefineConstants) /keepTempFiles+" StandardOutputImportance="Normal" /> + + <!-- Update the location of the symbol file--> + <PropertyGroup> + <CurrentAssemblyPdb>$(BclRewriterSymbolOutput)</CurrentAssemblyPdb> + </PropertyGroup> + </Target> +</Project> |