2017-01-27 12:00:29 -08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project InitialTargets="SetSigningProperties" DefaultTargets="SignFiles" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2017-05-11 10:01:51 -07:00
|
|
|
<Import Project="MicroBuild.props" />
|
2017-05-10 12:08:38 -07:00
|
|
|
<Import Project="$(MicroBuildPropsAndTargetsPath)MicroBuild.Core.props" />
|
2017-05-11 15:40:40 -07:00
|
|
|
<Import Project="InitRepo.props" />
|
|
|
|
<Import Project="$(BuildInfoProps)" />
|
2017-01-27 12:00:29 -08:00
|
|
|
|
|
|
|
<!-- This will be overridden if we're building with MicroBuild. -->
|
|
|
|
<Target Name="SignFiles">
|
|
|
|
<Message Text="Fake sign target. Would sign: @(FilesToSign)" />
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="SetSigningProperties">
|
|
|
|
<Error Condition="'$(Rid)' == ''" Text="Missing required property 'Rid'." />
|
|
|
|
<PropertyGroup>
|
|
|
|
<BaseOutputDirectory Condition="'$(BaseOutputDirectory)' == ''">$(RepoRoot)/artifacts/$(Rid)</BaseOutputDirectory>
|
2017-02-27 11:06:44 -08:00
|
|
|
<OutputDirectory Condition="'$(OutputDirectory)' == ''">$(BaseOutputDirectory)/stage2</OutputDirectory>
|
|
|
|
<CompilationDirectory Condition="'$(CompilationDirectory)' == ''">$(BaseOutputDirectory)/stage2compilation</CompilationDirectory>
|
2017-01-27 12:00:29 -08:00
|
|
|
<PackagesDirectory Condition="'$(PackagesDirectory)' == ''">$(BaseOutputDirectory)/packages</PackagesDirectory>
|
2017-06-11 20:54:18 -07:00
|
|
|
<SdkResolverOutputDirectory>$(BaseOutputDirectory)/intermediate/MSBuildExtensionsLayout/MSBuildSdkResolver</SdkResolverOutputDirectory>
|
2017-01-27 12:00:29 -08:00
|
|
|
|
|
|
|
<!-- The OutDir and IntermediateOutputPath properties are required by MicroBuild. MicroBuild only
|
|
|
|
signs files that are under these paths. -->
|
|
|
|
<OutDir Condition="'$(OutDir)' == ''">$(BaseOutputDirectory)</OutDir>
|
|
|
|
<IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">$(BaseOutputDirectory)/intermediate</IntermediateOutputPath>
|
|
|
|
</PropertyGroup>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="PostCompileSign" DependsOnTargets="GetPostCompileSignFiles;SignFiles" />
|
|
|
|
|
|
|
|
<Target Name="GetPostCompileSignFiles">
|
|
|
|
<ItemGroup>
|
|
|
|
<!-- External files -->
|
2017-02-27 11:06:44 -08:00
|
|
|
<FilesToSign Include="$(OutputDirectory)/sdk/**/Newtonsoft.Json.dll;
|
|
|
|
$(OutputDirectory)/shared/**/libuv.dll">
|
2017-01-27 12:00:29 -08:00
|
|
|
<Authenticode>$(ExternalCertificateId)</Authenticode>
|
|
|
|
</FilesToSign>
|
|
|
|
<!-- Built binaries -->
|
2017-02-27 11:06:44 -08:00
|
|
|
<FilesToSign Include="$(OutputDirectory)/sdk/**/csc.exe;
|
|
|
|
$(OutputDirectory)/sdk/**/csc.dll;
|
|
|
|
$(OutputDirectory)/sdk/**/dotnet.dll;
|
2017-06-07 16:37:04 -07:00
|
|
|
$(OutputDirectory)/sdk/**/dotnet.resources.dll;
|
2017-02-27 11:06:44 -08:00
|
|
|
$(OutputDirectory)/sdk/**/System.*.dll;
|
|
|
|
$(OutputDirectory)/sdk/**/Microsoft.*.dll;
|
|
|
|
$(OutputDirectory)/sdk/**/NuGet*.dll;
|
|
|
|
$(OutputDirectory)/sdk/**/datacollector.dll;
|
|
|
|
$(OutputDirectory)/sdk/**/MSBuild.dll;
|
|
|
|
$(OutputDirectory)/sdk/**/testhost.dll;
|
2017-06-07 16:37:04 -07:00
|
|
|
$(OutputDirectory)/sdk/**/vstest.console.dll;
|
|
|
|
$(OutputDirectory)/sdk/**/vstest.console.resources.dll">
|
2017-01-27 12:00:29 -08:00
|
|
|
<Authenticode>$(InternalCertificateId)</Authenticode>
|
|
|
|
</FilesToSign>
|
|
|
|
<!-- Built files for the packages -->
|
2017-02-27 11:06:44 -08:00
|
|
|
<FilesToSign Include="$(CompilationDirectory)/forPackaging/**/*dotnet*.dll;
|
|
|
|
$(CompilationDirectory)/forPackaging/**/Microsoft.Extensions.DependencyModel.dll;
|
|
|
|
$(CompilationDirectory)/forPackaging/**/Microsoft.Extensions.Testing.Abstractions.dll">
|
2017-01-27 12:00:29 -08:00
|
|
|
<Authenticode>$(InternalCertificateId)</Authenticode>
|
|
|
|
</FilesToSign>
|
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="SignNuPkgContents" DependsOnTargets="GetSignNuPkgContentsFiles;SignFiles" />
|
|
|
|
|
|
|
|
<Target Name="GetSignNuPkgContentsFiles">
|
|
|
|
<PropertyGroup>
|
|
|
|
<OutDir>$(RepoRoot)/src/Microsoft.DotNet.Cli.Utils</OutDir>
|
|
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
|
|
<!-- NuPkg contents -->
|
|
|
|
<FilesToSign Include="$(OutDir)/bin/**/Microsoft.DotNet.Cli.Utils.dll">
|
|
|
|
<Authenticode>$(InternalCertificateId)</Authenticode>
|
|
|
|
</FilesToSign>
|
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
|
|
|
|
2017-04-30 16:06:15 -07:00
|
|
|
<Target Name="SignSdkResolverContents" DependsOnTargets="GetSignSdkResolverContentsFiles;SignFiles" />
|
|
|
|
|
|
|
|
<Target Name="GetSignSdkResolverContentsFiles">
|
|
|
|
<PropertyGroup>
|
|
|
|
<OutDir>$(SdkResolverOutputDirectory)</OutDir>
|
|
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
|
|
<FilesToSign Include="$(SdkResolverOutputDirectory)/Microsoft.DotNet.MSBuildSdkResolver.dll">
|
|
|
|
<Authenticode>$(InternalCertificateId)</Authenticode>
|
|
|
|
</FilesToSign>
|
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
|
|
|
|
2017-01-27 12:00:29 -08:00
|
|
|
<Target Name="SignMsiAndCab" DependsOnTargets="GetSignMsiAndCabFiles;SignFiles" />
|
|
|
|
|
|
|
|
<Target Name="GetSignMsiAndCabFiles">
|
|
|
|
<PropertyGroup>
|
|
|
|
<OutDir>$(PackagesDirectory)</OutDir>
|
|
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
|
|
<FilesToSign Include="$(PackagesDirectory)/**/*.msi">
|
|
|
|
<Authenticode>$(InternalCertificateId)</Authenticode>
|
|
|
|
</FilesToSign>
|
|
|
|
<FilesToSign Include="$(PackagesDirectory)/**/*.cab">
|
|
|
|
<Authenticode>$(InternalCertificateId)</Authenticode>
|
|
|
|
</FilesToSign>
|
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="SignEngine" DependsOnTargets="GetSignEngineFiles;SignFiles" />
|
|
|
|
|
|
|
|
<Target Name="GetSignEngineFiles">
|
|
|
|
<PropertyGroup>
|
|
|
|
<OutDir>$(PackagesDirectory)</OutDir>
|
|
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
|
|
<FilesToSign Include="$(PackagesDirectory)/**/*engine.exe">
|
|
|
|
<Authenticode>$(InternalCertificateId)</Authenticode>
|
|
|
|
</FilesToSign>
|
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="SignCliBundle" DependsOnTargets="GetSignCliBundleFiles;SignFiles" />
|
|
|
|
|
|
|
|
<Target Name="GetSignCliBundleFiles">
|
|
|
|
<PropertyGroup>
|
|
|
|
<OutDir>$(PackagesDirectory)</OutDir>
|
|
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
|
|
<FilesToSign Include="$(PackagesDirectory)/**/*.exe">
|
|
|
|
<Authenticode>$(InternalCertificateId)</Authenticode>
|
|
|
|
</FilesToSign>
|
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
|
|
|
|
2017-05-10 12:08:38 -07:00
|
|
|
<Import Project="$(MicroBuildPropsAndTargetsPath)MicroBuild.Core.targets" />
|
2017-01-27 12:00:29 -08:00
|
|
|
</Project>
|