/
Xamarin.Forms.Build.Tasks.csproj
83 lines (73 loc) · 3.66 KB
/
Xamarin.Forms.Build.Tasks.csproj
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<SignAssembly>false</SignAssembly>
<_DisableStrongNamer>True</_DisableStrongNamer>
<DelaySign>false</DelaySign>
</PropertyGroup>
<PropertyGroup>
<_DisableStrongNamer Condition=" '$(_DisableStrongNamer)' != 'True' ">False</_DisableStrongNamer>
<AssemblyName>Xamarin.Forms.Build.Tasks</AssemblyName>
<Description>Xamarin Forms Build Task</Description>
<TargetFrameworks>net46;netstandard2.0</TargetFrameworks>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<SignAssembly Condition=" '$(_DisableStrongNamer)' != 'True' ">True</SignAssembly>
<DisableStrongNamer Condition=" '$(_DisableStrongNamer)' == 'True' ">True</DisableStrongNamer>
<DelaySign>true</DelaySign>
<AssemblyOriginatorKeyFile>..\xamarin.forms.snk</AssemblyOriginatorKeyFile>
<StrongNamerKeyFile>..\xamarin.forms.snk</StrongNamerKeyFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Mono.Cecil" Version="0.10.3" />
<PackageReference Include="System.CodeDom" Version="4.4.0" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
<PackageReference Include="Microsoft.Build" Version="15.8.166" />
<PackageReference Include="Microsoft.Build.Framework" Version="15.8.166" />
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.8.166" />
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="15.8.166" />
<PackageReference Include="StrongNamer" Version="0.0.8" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="XliffTasks" Version="1.0.0-beta.20206.1" PrivateAssets="all" />
</ItemGroup>
<PropertyGroup>
<UpdateXlfOnBuild Condition="'$(CI)' != 'true'">true</UpdateXlfOnBuild>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Xamarin.Forms.Core\Xamarin.Forms.Core.csproj" />
<ProjectReference Include="..\Xamarin.Forms.Xaml\Xamarin.Forms.Xaml.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Update="ErrorMessages.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ErrorMessages.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="ErrorMessages.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>ErrorMessages.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<PropertyGroup Condition="'$(SnExe)' == '' And '$(OS)' != 'Windows_NT'">
<SnExe>sn</SnExe>
</PropertyGroup>
<Target Name="_SetSnExe" Condition="'$(SnExe)' == '' And '$(OS)' == 'Windows_NT'">
<GetFrameworkSdkPath>
<Output TaskParameter="Path" PropertyName="WindowsSdkPath" />
</GetFrameworkSdkPath>
<Exec Command="WHERE /r "$(WindowsSdkPath.TrimEnd('\\'))" sn" ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="SnExe" />
</Exec>
<PropertyGroup>
<SnExe>$([System.Text.RegularExpressions.Regex]::Replace('$(SnExe)', ';.*', ''))</SnExe>
</PropertyGroup>
</Target>
<Target Name="_StrongName" AfterTargets="Build" DependsOnTargets="_SetSnExe" Condition="'$(TargetPath)' != ''" Inputs="$(TargetPath)" Outputs="$(IntermediateOutputPath)Sn.stamp">
<Exec Command='"$(SnExe)" -R $(TargetPath) ..\xamarin.forms.snk' Condition=" '$(SignAssembly)' == 'true' " />
</Target>
<Target Name="_CopyToNuspecDir" AfterTargets="_StrongName;Build">
<ItemGroup>
<_CopyItems Include="$(TargetDir)*.dll" />
</ItemGroup>
<Copy SourceFiles="@(_CopyItems)" DestinationFolder="..\.nuspec\$(TargetFramework)\" ContinueOnError="true" Retries="0" />
</Target>
</Project>