forked from microsoft/service-fabric-observer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSampleObserverPlugin.csproj
36 lines (32 loc) · 2.27 KB
/
SampleObserverPlugin.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- You could target netstandard2.0 instead, if you need to. But you probably do not need to.
In the .NET 6+ age, moving away from netstandard2.0 is generally a good idea, in many cases; this being one of them. -->
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifiers>linux-x64;win-x64</RuntimeIdentifiers>
<RootNamespace>FabricObserver.Observers</RootNamespace>
<AssemblyName>SampleNewObserver</AssemblyName>
<Platforms>x64</Platforms>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<!-- Copy files post-build. -->
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<!-- Polly.dll from packages (this file is only required only by this sample plugin, not FabricObserver itself..). -->
<Exec Command="copy "$(SolutionDir)packages\polly\8.0.0\lib\netstandard2.0\Polly.dll" "$(OutDir)"
" />
<!-- If you build with the full FO nuget pkg, uncomment the line below and comment out the Extensibility library package reference. -->
<!-- <Exec Command="copy "$(OutDir)*.dll" "$(OutDir)FabricObserverPkg\Data\Plugins"
copy "$(OutDir)*.pdb" "$(OutDir)FabricObserverPkg\Data\Plugins"" /> -->
</Target>
<ItemGroup>
<!-- To build with the full 3.2.13 FO nupkg. The output dir will contain a FabricObserverPkg folder with Code/Config/Data.
So, you can deploy FO directly from there. -->
<!-- <PackageReference Include="Microsoft.ServiceFabricApps.FabricObserver.Windows.SelfContained" Version="3.2.10" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0.0" /> -->
<!-- OR -->
<!-- Build with *just* the FabricObserver.Extensibility library. There will be no FabricObserverPkg folder in outdir.. -->
<PackageReference Include="Microsoft.ServiceFabricApps.FabricObserver.Extensibility" Version="3.2.11" />
<!-- This is an external nupkg that this plugin sample requires. This is unrelated to the above FO-related reference choices. -->
<PackageReference Include="Polly" Version="8.0.0" />
</ItemGroup>
</Project>