|
15 | 15 |
|
16 | 16 | <PropertyGroup> |
17 | 17 | <_InjectAspectsDependsOn> |
18 | | - AspectInjector_Custom_Target; |
19 | 18 | AspectInjector_InjectAspectsCore; |
20 | | - AspectInjector_ResignAssembly; |
21 | 19 | </_InjectAspectsDependsOn> |
22 | 20 | </PropertyGroup> |
23 | 21 |
|
|
42 | 40 | <Touch Files="%(IntermediateAssembly.FullPath).aspectsinjected" AlwaysCreate="true" Time="%(IntermediateAssembly.ModifiedTime)"/> |
43 | 41 | </Target> |
44 | 42 |
|
45 | | - <Target Name="AspectInjector_ResignAssembly" |
46 | | - Condition="'$(SignAssembly)' == 'true' AND '$(DelaySign)' != 'true'" |
47 | | - DependsOnTargets="GetSnToolForUnix;GetSnToolForWindows" |
48 | | - Inputs="@(IntermediateAssembly->'%(FullPath)')" |
49 | | - Outputs="%(IntermediateAssembly.FullPath).aspectssigned" |
50 | | - > |
51 | | - <PropertyGroup> |
52 | | - <_SignCommand Condition="'$(KeyContainerName)' != ''">"$(SnTool)" -Rc "$(ProjectDir)$(IntermediateOutputPath)$(TargetFileName)" $(KeyContainerName)</_SignCommand> |
53 | | - <_SignCommand Condition="'$(KeyContainerName)' == '' AND '$(KeyOriginatorFile)' != ''">"$(SnTool)" -R "$(ProjectDir)$(IntermediateOutputPath)$(TargetFileName)" $(KeyOriginatorFile)</_SignCommand> |
54 | | - </PropertyGroup> |
55 | | - <Exec Command="$(_SignCommand)" Condition="'$(_SignCommand)' != ''" EchoOff="true" IgnoreExitCode="true"> |
56 | | - <Output TaskParameter="ExitCode" PropertyName="_SignExitCode" /> |
57 | | - </Exec> |
58 | | - <Error Text="Aspect Injector cannot re-sing assembly. Try rebuid solution." Condition="'$(_SignExitCode)' != '0'" Code="AI_ERR0" File="AspectInjector"/> |
59 | | - <Touch Files="%(IntermediateAssembly.FullPath).aspectsinjected" AlwaysCreate="true" Time="%(IntermediateAssembly.ModifiedTime)"/> |
60 | | - <Touch Files="%(IntermediateAssembly.FullPath).aspectssigned" AlwaysCreate="true" Time="%(IntermediateAssembly.ModifiedTime)"/> |
61 | | - </Target> |
62 | | - |
63 | | - <Target Name="GetSnToolForUnix" Condition=" '$(OS)' == 'Unix' "> |
64 | | - <PropertyGroup> |
65 | | - <SnTool>sn</SnTool> |
66 | | - </PropertyGroup> |
67 | | - <Message Text="SnTool found: $(SnTool)"/> |
68 | | - </Target> |
69 | | - |
70 | | - <Target Name="GetSnToolForWindows" Condition=" '$(OS)' != 'Unix' "> |
71 | | - <GetFrameworkSdkPath> |
72 | | - <Output TaskParameter="Path" PropertyName="WindowsSdkPath" /> |
73 | | - </GetFrameworkSdkPath> |
74 | | - <ItemGroup> |
75 | | - <SnTools Include="$(WindowsSdkPath)**\sn.exe" /> |
76 | | - </ItemGroup> |
77 | | - <PropertyGroup> |
78 | | - <SnToolsRaw>@(SnTools)</SnToolsRaw> |
79 | | - </PropertyGroup> |
80 | | - <PropertyGroup> |
81 | | - <SnTool>$(SnToolsRaw.Split(';')[0])</SnTool> |
82 | | - </PropertyGroup> |
83 | | - <Message Text="SnTool found: $(SnTool)"/> |
84 | | - </Target> |
85 | | - |
86 | | - <Target Name="AspectInjector_Custom_Target"> |
87 | | - </Target> |
88 | | - |
89 | 43 | </Project> |
90 | 44 |
|
0 commit comments