|
37 | 37 | <PrivateAssets>all</PrivateAssets>
|
38 | 38 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
39 | 39 | </PackageReference>
|
| 40 | + <PackageReference Include="Serilog" Version="2.12.0" /> |
| 41 | + <PackageReference Include="Serilog.Expressions" Version="3.4.1" /> |
| 42 | + <PackageReference Include="Serilog.Sinks.Async" Version="1.5.0" /> |
| 43 | + <PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" /> |
| 44 | + <PackageReference Include="Serilog.Sinks.Debug" Version="2.0.0" /> |
| 45 | + <PackageReference Include="Serilog.Sinks.File" Version="5.0.0" /> |
40 | 46 | <PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
41 | 47 | <PackageReference Include="ILRepack" Version="2.0.16" />
|
42 |
| - <PackageReference Include="log4net" Version="2.0.8" /> |
43 | 48 | <PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
44 | 49 | <PackageReference Include="SharpZipLib" Version="1.3.3" />
|
45 | 50 | </ItemGroup>
|
|
56 | 61 | <PackageReference Include="Castle.Core" Version="3.3.0" />
|
57 | 62 | <PackageReference Include="Castle.Windsor" Version="3.3.0" />
|
58 | 63 | <PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
|
| 64 | + <PackageReference Include="Serilog.Sinks.EventLog" Version="3.1.0" /> |
59 | 65 | </ItemGroup>
|
60 | 66 |
|
61 | 67 | <ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
|
|
79 | 85 | <Reference Include="System.Configuration" />
|
80 | 86 | </ItemGroup>
|
81 | 87 |
|
82 |
| - <ItemGroup> |
83 |
| - <Compile Include="$(RootProjectDirectory)\src\Agent\Shared\SharedLog4NetRepository.cs"> |
84 |
| - <Link>Properties\SharedLog4NetRepository.cs</Link> |
85 |
| - </Compile> |
86 |
| - </ItemGroup> |
87 | 88 | <ItemGroup>
|
88 | 89 | <Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
|
89 | 90 | </ItemGroup>
|
|
105 | 106 | <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Castle.Core'" />
|
106 | 107 | <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Castle.Windsor'" />
|
107 | 108 | <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'ICSharpCode.SharpZipLib'" />
|
108 |
| - <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'log4net'" /> |
109 | 109 | <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Newtonsoft.Json'" />
|
| 110 | + <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Serilog'" /> |
| 111 | + <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Serilog.Expressions'" /> |
| 112 | + <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Serilog.Sinks.Async'" /> |
| 113 | + <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Serilog.Sinks.Console'" /> |
| 114 | + <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Serilog.Sinks.Debug'" /> |
| 115 | + <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Serilog.Sinks.EventLog'" /> |
| 116 | + <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Serilog.Sinks.File'" /> |
110 | 117 | <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'System.ValueTuple'" />
|
111 | 118 | <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'System.Memory'" />
|
112 | 119 | <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'System.Runtime.CompilerServices.Unsafe'" />
|
|
120 | 127 | <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Grpc.Net.Common'" />
|
121 | 128 | <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Grpc.Net.Client'" />
|
122 | 129 | <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Autofac'" />
|
123 |
| - <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'log4net'" /> |
124 | 130 | <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Newtonsoft.Json'" />
|
| 131 | + <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Serilog'" /> |
| 132 | + <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Serilog.Expressions'" /> |
| 133 | + <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Serilog.Sinks.Async'" /> |
| 134 | + <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Serilog.Sinks.Console'" /> |
| 135 | + <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Serilog.Sinks.Debug'" /> |
| 136 | + <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'Serilog.Sinks.File'" /> |
125 | 137 | <ILRepackInclude Include="@(PossibleRefsForILRepack)" Condition="'%(FileName)' == 'ICSharpCode.SharpZipLib'" />
|
126 | 138 | </ItemGroup>
|
127 | 139 |
|
128 | 140 | <PropertyGroup>
|
129 |
| - <ILRepackIncludeCount Condition="'$(TargetFramework)' == 'net462'">15</ILRepackIncludeCount> |
130 |
| - <ILRepackIncludeCount Condition="'$(TargetFramework)' == 'netstandard2.0'">11</ILRepackIncludeCount> |
| 141 | + <ILRepackIncludeCount Condition="'$(TargetFramework)' == 'net462'">21</ILRepackIncludeCount> |
| 142 | + <ILRepackIncludeCount Condition="'$(TargetFramework)' == 'netstandard2.0'">16</ILRepackIncludeCount> |
131 | 143 | </PropertyGroup>
|
132 | 144 |
|
133 | 145 | <Error Text="ILRepack of $(AssemblyName) ($(TargetFramework)) failed. A dependency is missing. Expected $(ILRepackIncludeCount) dependencies but found @(ILRepackInclude->Count())." Condition="@(ILRepackInclude->Count()) != $(ILRepackIncludeCount)" />
|
|
0 commit comments