6161 </Target >
6262
6363 <Target Name =" Allure_SetAssemblyTimestampAfterAspectInjection"
64- AfterTargets =" AspectInjector_InjectAspects"
64+ AfterTargets =" AspectInjector_InjectAspects;InjectAspects "
6565 BeforeTargets =" Allure_UpdateStrongNameSignatures" >
6666 <PropertyGroup >
6767 <Allure_AssemblyTimestampAfterAspectInjection >%(IntermediateAssembly.ModifiedTime)</Allure_AssemblyTimestampAfterAspectInjection >
8181 And Exists('$(AssemblyOriginatorKeyFile)')
8282 And Exists('$(Allure_SnExePath)')
8383 And '$(Allure_AssemblyTimestampBeforeAspectInjection)' != '$(Allure_AssemblyTimestampAfterAspectInjection)'"
84- AfterTargets =" AspectInjector_InjectAspects"
84+ AfterTargets =" AspectInjector_InjectAspects;InjectAspects "
8585 BeforeTargets =" _TimeStampAfterCompile;AfterCompile" >
8686 <Exec UseUtf8Encoding =" Always"
8787 StdOutEncoding =" UTF-8"
8888 StdErrEncoding =" UTF-8"
8989 Command =" " $(Allure_SnExePath)" -Ra " %(IntermediateAssembly.FullPath)" " $(AssemblyOriginatorKeyFile)" "
9090 />
9191 </Target >
92+
93+ <!-- A hacky way to skip AspectInjector's own re-signing logic,
94+ which doesn't work on Linux/Mac (unless there is an sn binary in PATH).
95+ It's not relevant for AspectInjector 2.9.0+ and should be removed as
96+ soon as we upgrade. -->
97+
98+ <Target Name =" Allure_DisableAspectInjector"
99+ BeforeTargets =" _ASI_ResignAssembly"
100+ AfterTargets =" _ASI_InjectAspectsCore"
101+ Condition =" '$(_InjectionNeeded)' == 'true' " >
102+ <PropertyGroup >
103+ <Allure_ShouldEnableAspectInjector >true</Allure_ShouldEnableAspectInjector >
104+ <_InjectionNeeded >false</_InjectionNeeded >
105+ </PropertyGroup >
106+ </Target >
107+
108+ <Target Name =" Allure_EnableAspectInjector"
109+ BeforeTargets =" _ASI_TouchTimestampFile"
110+ AfterTargets =" _ASI_ResignAssembly"
111+ Condition =" '$(Allure_ShouldEnableAspectInjector)' == 'true' " >
112+ <PropertyGroup >
113+ <_InjectionNeeded >true</_InjectionNeeded >
114+ </PropertyGroup >
115+ </Target >
92116</Project >
0 commit comments