29
29
NuGet don't support <img> (in particular, align, width and height).
30
30
This task generates a new README file with those unsupported constructs removed.
31
31
-->
32
- <Target Name =" GenerateNugetReadmeFiles "
32
+ <Target Name =" Allure_GenerateNugetReadmeFiles "
33
33
BeforeTargets =" GenerateNuspec"
34
34
Condition =" '$(IsPackable)' == 'true'"
35
35
Inputs =" @(NuGetPackInput)" Outputs =" @(NuGetPackOutput)" >
48
48
</_PackageFiles >
49
49
</ItemGroup >
50
50
</Target >
51
+
52
+ <!-- Some assemblies have strong names. We should resign them after AspectInjector before publishing on NuGet.
53
+ Otherwise, they won't pass the `sn.exe -vf <assembly>` check -->
54
+
55
+ <Target Name =" Allure_SetAssemblyTimestampBeforeAspectInjection"
56
+ AfterTargets =" CoreCompile"
57
+ BeforeTargets =" $(_InjectAspectsDependsOn)" >
58
+ <PropertyGroup >
59
+ <Allure_AssemblyTimestampBeforeAspectInjection >%(IntermediateAssembly.ModifiedTime)</Allure_AssemblyTimestampBeforeAspectInjection >
60
+ </PropertyGroup >
61
+ </Target >
62
+
63
+ <Target Name =" Allure_SetAssemblyTimestampAfterAspectInjection"
64
+ AfterTargets =" AspectInjector_InjectAspects"
65
+ BeforeTargets =" Allure_UpdateStrongNameSignatures" >
66
+ <PropertyGroup >
67
+ <Allure_AssemblyTimestampAfterAspectInjection >%(IntermediateAssembly.ModifiedTime)</Allure_AssemblyTimestampAfterAspectInjection >
68
+ </PropertyGroup >
69
+ </Target >
70
+
71
+ <!--
72
+ Only resign the assembly if all four conditions are met:
73
+ 1. We're running on Windows (sn.exe is a Windows-only utility).
74
+ 2. The assembly's been signed during the compilation.
75
+ 3. A path to sn.exe is given.
76
+ 4. AspectInjector has modified the assembly.
77
+ -->
78
+ <Target Name =" Allure_UpdateStrongNameSignatures"
79
+ Condition =" '$(OS)' == 'Windows_NT'
80
+ And '$(SignAssembly)' == 'true'
81
+ And Exists('$(AssemblyOriginatorKeyFile)')
82
+ And Exists('$(Allure_SnExePath)')
83
+ And '$(Allure_AssemblyTimestampBeforeAspectInjection)' != '$(Allure_AssemblyTimestampAfterAspectInjection)'"
84
+ AfterTargets =" AspectInjector_InjectAspects"
85
+ BeforeTargets =" _TimeStampAfterCompile;AfterCompile" >
86
+ <Exec UseUtf8Encoding =" Always"
87
+ StdOutEncoding =" UTF-8"
88
+ StdErrEncoding =" UTF-8"
89
+ Command =" " $(Allure_SnExePath)" -Ra " %(IntermediateAssembly.FullPath)" " $(AssemblyOriginatorKeyFile)" "
90
+ />
91
+ </Target >
51
92
</Project >
0 commit comments