-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathOpenZiti.NET.csproj
104 lines (98 loc) · 6.01 KB
/
OpenZiti.NET.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<Platforms>AnyCPU;x86;x64;ARM64;ARM</Platforms>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<CurrentYear>$([System.DateTime]::UtcNow.Year.ToString().Substring(2,2))</CurrentYear>
<UtcDayOfYear>$([System.DateTime]::UtcNow.DayOfYear)</UtcDayOfYear>
<UtcSecondsOfDay>$([MSBuild]::Divide($([System.DateTime]::UtcNow.TimeOfDay.TotalSeconds), 2).ToString('F0'))</UtcSecondsOfDay>
<major>0</major>
<minor>9</minor>
<Version>$(major).$(minor).$(CurrentYear)$(UtcDayOfYear).$(UtcSecondsOfDay)</Version>
<Authors>OpenZiti</Authors>
<Company>NetFoundry</Company>
<Description>A .NET standard library which wraps the C SDK and is consumable from .NET</Description>
<Copyright>© NetFoundry Inc. All rights reserved.</Copyright>
<PackageLicenseFile>2019_NF TCL EULA.txt</PackageLicenseFile>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageProjectUrl>https://openziti.io/</PackageProjectUrl>
<RepositoryUrl>https://github.com/openziti/ziti-sdk-csharp</RepositoryUrl>
<RootNamespace></RootNamespace>
<Platforms>AnyCPU;x86;x64;ARM64;ARM</Platforms>
<icon>..\ziti-v2.png</icon>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageIcon>ziti-v2.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'AnyCPU'">
<DefineConstants>ZITI_64BIT;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)'=='x64'">
<DefineConstants>ZITI_64BIT;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)'=='ARM64'">
<DefineConstants>ZITI_64BIT;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)'=='x86'">
<DefineConstants>ZITI_32BIT;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)'=='ARM'">
<DefineConstants>ZITI_32BIT;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DefineConstants>TRACE;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<ItemGroup>
<None Include="..\ziti-v2.png" Pack="true" PackagePath="\" />
<None Include="..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="NLog" Version="5.2.7" />
<PackageReference Include="OpenZiti.NET.native" Version="0.36.0.179" />
<PackageReference Include="System.Memory" Version="4.5.5" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
<ItemGroup>
<Resource Include="2019_NF TCL EULA.txt">
<Pack>True</Pack>
<PackagePath></PackagePath>
</Resource>
</ItemGroup>
<Target Name="NugetPack" DependsOnTargets="BuildAny;Buildx64;Buildx86">
<Message Text="RUNNING: nuget pack OpenZiti.NET.nuspec -Version $(PackageVersion) -Symbols -SymbolPackageFormat snupkg" Importance="high" />
<Exec Command="nuget pack OpenZiti.NET.nuspec -Version $(PackageVersion) -Symbols -SymbolPackageFormat snupkg"></Exec>
</Target>
<Target Name="NugetPush" DependsOnTargets="NugetPack">
<Message Text="RUNNING: dotnet nuget push $(MSBuildProjectDirectory)/$(PackageId).$(PackageVersion).nupkg --source $(NUGET_SOURCE)" Importance="high" />
<Message Text="Push NuGet Package to NuGet Feed $(MSBuildProjectDirectory)/bin/Release/$(PackageId).$(PackageVersion).nupkg" Importance="high" />
<Exec Command="dotnet nuget push $(MSBuildProjectDirectory)/$(PackageId).$(PackageVersion).nupkg --source $(NUGET_SOURCE) --api-key $(API_KEY)"></Exec>
<ItemGroup>
<FilesToDelete Include="$(MSBuildProjectDirectory)/$(PackageId).$(PackageVersion).*nupkg" />
</ItemGroup>
<Delete Files="@(FilesToDelete)">
<Output TaskParameter="DeletedFiles" ItemName="DeletedList" />
</Delete>
<Message Text="Deleted files: '@(DeletedList)'" Importance="high" />
</Target>
<Target Name="Buildx64">
<Message Text="BUILDING x64: dotnet build $(MSBuildProjectFullPath) --configuration Release /p:Platform=x64" Importance="high" />
<Exec Command="dotnet build $(MSBuildProjectFullPath) --configuration Release /p:PackageVersion=$(PackageVersion) /p:Platform=x64"></Exec>
</Target>
<Target Name="Buildx86">
<Message Text="BUILDING x86: dotnet build $(MSBuildProjectFullPath) --configuration Release /p:Platform=x86" Importance="high" />
<Exec Command="dotnet build $(MSBuildProjectFullPath) --configuration Release /p:PackageVersion=$(PackageVersion) /p:Platform=x86"></Exec>
</Target>
<Target Name="BuildAny">
<Message Text="BUILDING ANY: dotnet build $(MSBuildProjectFullPath) --configuration Release" Importance="high" />
<Exec Command="dotnet build $(MSBuildProjectFullPath) --configuration Release /p:PackageVersion=$(PackageVersion)"></Exec>
</Target>
<Target Name="UpdateNuspec" AfterTargets="Build">
<Message Text="Updating nuspec file after successful build." Importance="high" />
<Exec Command="pwsh -Command ./update-nuspec.ps1 OpenZiti.NET.csproj OpenZiti.NET.nuspec" />
<Message Text="Updating nuspec file after successful build complete." Importance="high" />
</Target>
</Project>