Skip to content

Commit 64ad62a

Browse files
committed
Added common MSBuild targets file.
1 parent 1552397 commit 64ad62a

File tree

33 files changed

+45
-83
lines changed

33 files changed

+45
-83
lines changed

Diagnostics/PostSharp.Samples.Audit.Extended/PostSharp.Samples.Audit.Extended.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@
6969
<Version>4.5.0</Version>
7070
</PackageReference>
7171
</ItemGroup>
72+
<Import Project="..\..\PostSharp.Samples.targets"/>
7273
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7374
</Project>

Diagnostics/PostSharp.Samples.Audit/PostSharp.Samples.Audit.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,6 @@
6565
<Version>4.5.0</Version>
6666
</PackageReference>
6767
</ItemGroup>
68+
<Import Project="..\..\PostSharp.Samples.targets"/>
6869
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
6970
</Project>

Diagnostics/PostSharp.Samples.Logging.CommonLogging/PostSharp.Samples.Logging.CommonLogging.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,6 @@
7272
</PackageReference>
7373
</ItemGroup>
7474
<Import Project="..\PostSharp.Samples.Logging.BusinessLogic\PostSharp.Samples.Logging.BusinessLogic.projitems" Label="Shared" />
75+
<Import Project="..\..\PostSharp.Samples.targets"/>
7576
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7677
</Project>

Diagnostics/PostSharp.Samples.Logging.Console/PostSharp.Samples.Logging.Console.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@
6363
</PackageReference>
6464
</ItemGroup>
6565
<Import Project="..\PostSharp.Samples.Logging.BusinessLogic\PostSharp.Samples.Logging.BusinessLogic.projitems" Label="Shared" />
66+
<Import Project="..\..\PostSharp.Samples.targets"/>
6667
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
6768
</Project>

Diagnostics/PostSharp.Samples.Logging.CustomBackend.ServiceStack/PostSharp.Samples.Logging.CustomBackend.ServiceStack.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@
7070
</PackageReference>
7171
</ItemGroup>
7272
<Import Project="..\PostSharp.Samples.Logging.BusinessLogic\PostSharp.Samples.Logging.BusinessLogic.projitems" Label="Shared" />
73+
<Import Project="..\..\PostSharp.Samples.targets"/>
7374
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7475
</Project>

Diagnostics/PostSharp.Samples.Logging.Customization/PostSharp.Samples.Logging.Customization.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,6 @@
6868
</PackageReference>
6969
</ItemGroup>
7070
<Import Project="..\PostSharp.Samples.Logging.BusinessLogic\PostSharp.Samples.Logging.BusinessLogic.projitems" Label="Shared" />
71+
<Import Project="..\..\PostSharp.Samples.targets"/>
7172
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7273
</Project>

Diagnostics/PostSharp.Samples.Logging.ElasticStack/ApplicationInsightsLib/ApplicationInsightsLib.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
<PackageReference Include="Serilog.Sinks.ApplicationInsights" Version="2.6.0" />
1111
</ItemGroup>
1212

13+
<Import Project="..\..\..\PostSharp.Samples.targets"/>
1314
</Project>

Diagnostics/PostSharp.Samples.Logging.ElasticStack/ClientExample/ClientExample.csproj

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,13 @@
1717
<PackageReference Include="Serilog.Sinks.Async" Version="1.3.0" />
1818
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
1919
<PackageReference Include="Serilog.Sinks.Http" Version="5.0.0" />
20-
</ItemGroup>
21-
22-
<ItemGroup Condition="'$(Configuration)'!='Development'">
2320
<PackageReference Include="PostSharp.Patterns.Diagnostics" Version="6.2.9" />
2421
<PackageReference Include="PostSharp.Patterns.Diagnostics.Serilog" Version="6.2.9" />
2522
</ItemGroup>
2623

27-
<ItemGroup Condition="'$(Configuration)'=='Development'">
28-
<Reference Include="PostSharp">
29-
<HintPath>C:\src\postsharp\Build\bin\bin.Debug\netstandard2.0\PostSharp.dll</HintPath>
30-
</Reference>
31-
<Reference Include="PostSharp.Patterns.Common">
32-
<HintPath>C:\src\postsharp\Patterns\Build\bin\Debug\netstandard2.0\PostSharp.Patterns.Common.dll</HintPath>
33-
</Reference>
34-
<Reference Include="PostSharp.Patterns.Diagnostics">
35-
<HintPath>C:\src\postsharp\Patterns\Build\bin\Debug\netstandard2.0\PostSharp.Patterns.Diagnostics.dll</HintPath>
36-
</Reference>
37-
<Reference Include="PostSharp.Patterns.Diagnostics.Backends.Serilog">
38-
<HintPath>C:\src\postsharp\Patterns\Build\bin\Debug\netstandard2.0\PostSharp.Patterns.Diagnostics.Backends.Serilog.dll</HintPath>
39-
</Reference>
40-
<PostSharpAddIn Include="C:\src\postsharp\Patterns\Build\bin\Debug\PostSharp.Patterns.Common.Weaver.dll" />
41-
</ItemGroup>
42-
4324
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
4425

45-
<Import Project="C:\src\postsharp\Build\bin\PostSharp.targets" Condition="'$(Configuration)'=='Development'" />
26+
<Import Project="..\..\..\PostSharp.Samples.targets"/>
4627

4728

4829

Diagnostics/PostSharp.Samples.Logging.ElasticStack/MicroserviceExample/MicroserviceExample.csproj

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,16 @@
2121
<PackageReference Include="Serilog.Sinks.Async" Version="1.3.0" />
2222
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
2323
<PackageReference Include="Serilog.Sinks.Http" Version="5.0.0" />
24-
</ItemGroup>
25-
26-
27-
<ItemGroup Condition="'$(Configuration)'!='Development'">
2824
<PackageReference Include="PostSharp.Patterns.Diagnostics" Version="6.2.9" />
2925
<PackageReference Include="PostSharp.Patterns.Diagnostics.Serilog" Version="6.2.9" />
3026
</ItemGroup>
3127

32-
<ItemGroup Condition="'$(Configuration)'=='Development'">
33-
<Reference Include="PostSharp">
34-
<HintPath>C:\src\postsharp\Build\bin\bin.Debug\netstandard2.0\PostSharp.dll</HintPath>
35-
</Reference>
36-
<Reference Include="PostSharp.Patterns.Common">
37-
<HintPath>C:\src\postsharp\Patterns\Build\bin\Debug\netstandard2.0\PostSharp.Patterns.Common.dll</HintPath>
38-
</Reference>
39-
<Reference Include="PostSharp.Patterns.Diagnostics">
40-
<HintPath>C:\src\postsharp\Patterns\Build\bin\Debug\netstandard2.0\PostSharp.Patterns.Diagnostics.dll</HintPath>
41-
</Reference>
42-
<Reference Include="PostSharp.Patterns.Diagnostics.Backends.Serilog">
43-
<HintPath>C:\src\postsharp\Patterns\Build\bin\Debug\netstandard2.0\PostSharp.Patterns.Diagnostics.Backends.Serilog.dll</HintPath>
44-
</Reference>
45-
<PostSharpAddIn Include="C:\src\postsharp\Patterns\Build\bin\Debug\PostSharp.Patterns.Common.Weaver.dll" />
46-
</ItemGroup>
4728

4829
<ItemGroup>
4930
<WCFMetadata Include="Connected Services" />
5031
</ItemGroup>
5132

5233
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk.Web" />
5334

54-
<Import Project="C:\src\postsharp\Build\bin\PostSharp.targets" Condition="'$(Configuration)'=='Development'" />
35+
<Import Project="..\..\..\PostSharp.Samples.targets"/>
5536
</Project>

Diagnostics/PostSharp.Samples.Logging.Etw.CustomSource/PostSharp.Samples.Logging.Etw.CustomSource.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,6 @@
6767
</PackageReference>
6868
</ItemGroup>
6969
<Import Project="..\PostSharp.Samples.Logging.BusinessLogic\PostSharp.Samples.Logging.BusinessLogic.projitems" Label="Shared" />
70+
<Import Project="..\..\PostSharp.Samples.targets"/>
7071
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7172
</Project>

0 commit comments

Comments
 (0)