-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3.5 - Refresh compilers with small fixes (#105)
* Update compilers to 3.5 * Add signing for task dll. * Add key file for delay signing the task dll. * Adjust task signing target for SDK-style project. * A whole mess of project/target cleanup. * I think this still misses SignFiles for SDK projects. * I think this is the last step in a clean signing pipeline. * Project TFM != target framework attribute * Correct escapting for generating config through powershell/xml.
- Loading branch information
1 parent
d354405
commit f8a4c9c
Showing
8 changed files
with
54 additions
and
36 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
src/DotNetCompilerPlatformTasks/DotNetCompilerPlatformTasks.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*\lib\*\*.xml,ignore xmldoc files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<!-- Setup signing for built assemblies. --> | ||
<Target Name="GetAssemblyFilesToSign" BeforeTargets="SignFiles" Condition="'$(MSBuildProjectExtension)' != '.nuproj' And '$(MSBuildProjectName)' != 'Microsoft.CodeDom.Providers.DotNetCompilerPlatformTest' And '$(SignAssembly)' == 'true'"> | ||
<ItemGroup> | ||
<FilesToSign Include="$(TargetPath)"> | ||
<Authenticode>Microsoft400</Authenticode> | ||
<StrongName>MsSharedLib72</StrongName> | ||
</FilesToSign> | ||
</ItemGroup> | ||
</Target> | ||
|
||
<!-- Set up signing for nuget packages. --> | ||
<Target Name="SignPowerShellScript" BeforeTargets="GetNuGetContentFromProject" Condition="'$(MSBuildProjectExtension)' == '.nuproj' And '$(SignAssembly)' == 'true'"> | ||
<ItemGroup> | ||
<ScriptFilesToSign Include="tools\*.ps1"> | ||
<Authenticode>Microsoft400</Authenticode> | ||
</ScriptFilesToSign> | ||
</ItemGroup> | ||
<SignFiles Files="@(ScriptFilesToSign)" Type="$(SignType)" BinariesDirectory="$(NuGetScriptDirectory)\$(NuGetProcessedScriptSubDirectory)" | ||
IntermediatesDirectory="$(NuGetScriptDirectory)" ESRPSigning="$(ESRPSigning)" UseBearerToken="$(UseBearerToken)" Condition="'@(ScriptFilesToSign->Count())' > 0" /> | ||
</Target> | ||
|
||
<Target Name="GetPackageFilesToSign" BeforeTargets="SignFiles" Condition="'$(MSBuildProjectExtension)' == '.nuproj' And '$(SignAssembly)' == 'true'"> | ||
<PropertyGroup> | ||
<OutDir>$(PackageOutputDir)</OutDir> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<FilesToSign Include="$(NuGetPackTargetFile)"> | ||
<Authenticode>NuGet</Authenticode> | ||
</FilesToSign> | ||
</ItemGroup> | ||
</Target> | ||
|
||
</Project> |