forked from microsoft/python-language-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSignLayout.csproj
More file actions
59 lines (49 loc) · 2.42 KB
/
SignLayout.csproj
File metadata and controls
59 lines (49 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<NoWarn>2008;$(NoWarn)</NoWarn>
</PropertyGroup>
<Import Project="..\..\build\NetStandard.settings" />
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
<SignEngine Condition="$(SignEngine) == ''">false</SignEngine>
<SignServer Condition="$(SignServer) == ''">false</SignServer>
<SignPackage Condition="$(SignPackage) == ''">false</SignPackage>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MicroBuild.Core" Version="0.3.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Nuget.CommandLine" Version="4.5.1" />
</ItemGroup>
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
<Target Name="CoreCompile" />
<Target Name="CopyFilesToOutputDirectory" />
<ItemGroup Condition="$(SignEngine)">
<SignFiles Include="$(OutputPath)\Microsoft.Python.Core.dll" />
<SignFiles Include="$(OutputPath)\Microsoft.Python.Parsing.dll" />
<SignFiles Include="$(OutputPath)\Microsoft.Python.Analysis.Core.dll" />
<SignFiles Include="$(OutputPath)\Microsoft.Python.Analysis.dll" />
</ItemGroup>
<ItemGroup Condition="$(SignServer)">
<SignFiles Include="$(OutputPath)\Microsoft.Python.LanguageServer.dll" />
<SignFiles Include="$(OutputPath)\Microsoft.Python.LanguageServer.exe" Condition="Exists('$(OutputPath)\Microsoft.Python.LanguageServer.exe')" />
</ItemGroup>
<ItemGroup Condition="$(SignPackage)">
<SignFiles Include="$(OutputPath)\Python-Language-Server-*.nupkg" />
</ItemGroup>
<Target Name="_CheckFiles" BeforeTargets="SignFiles">
<Message Text="Signing Files: @(SignFiles,'%0A')" Importance="high" />
<ItemGroup>
<_Missing Include="@(SignFiles)" Condition="!Exists(%(FullPath))" />
<FilesToSign Remove="@(FilesToSign)" />
<FilesToSign Include="@(SignFiles)">
<Authenticode Condition="%(Extension) == '.nupkg'">NuGet</Authenticode>
<Authenticode Condition="%(Extension) != '.nupkg'">Microsoft400</Authenticode>
</FilesToSign>
</ItemGroup>
<Error Condition="@(_Missing) != ''" Text="Following files are missing: @(_Missing,'%0A')" />
</Target>
<Import Project="..\..\build\NetStandard.targets" />
</Project>