-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathProject.cshtml
71 lines (71 loc) · 2.86 KB
/
Project.cshtml
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
<?xml version="1.0" encoding="utf-8" ?>
@using System
@using System.Linq
@using System.IO
@using System.Xml.Linq
@{
var platformVersion = Model.PlatformVersion ?? "12.0";
var name = Model.Name.Contains("/") ? Model.Name.Split('/')[1] : Model.Name;
var sourceFolderDir = @"../../source/";
var sourceFolder = sourceFolderDir + Model.Name.Replace("/", "\\");
var projId = System.Guid.NewGuid();
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-ios</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<IsBindingProject>true</IsBindingProject>
<NoBindingEmbedding>true</NoBindingEmbedding>
<SupportedOSPlatformVersion>15.0</SupportedOSPlatformVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<PackageId>@(Model.NuGetPackageId)</PackageId>
<Title>Braintree iOS SDK - @(name)</Title>
<Summary>C# bindings for Braintree iOS SDK - @(name)</Summary>
<Description>C# bindings for Braintree iOS SDK - @(name)</Description>
<Authors>tuyen</Authors>
<Owners>tuyen</Owners>
<Copyright>© tuyen-vuduc. All rights reserved.</Copyright>
<PackageIconUrl>https://avatars3.githubusercontent.com/u/3453</PackageIconUrl>
<PackageProjectUrl>https://github.com/naxam/braintree-ios-binding</PackageProjectUrl>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageVersion>@(Model.NuGetVersion)</PackageVersion>
</PropertyGroup>
<ItemGroup>
<Folder Include="Resources\" />
</ItemGroup>
<ItemGroup>
<None Include="@(Model.NuGetPackageId).targets" Pack="True" PackagePath="build/@(Model.NuGetPackageId).targets" />
<None Include="@(Model.NuGetPackageId).targets" Pack="True" PackagePath="buildTransitive/@(Model.NuGetPackageId).targets" />
<None Include="@(sourceFolderDir)External-Dependency-Info.txt" Pack="True" PackagePath="THIRD-PARTY-NOTICES.txt" />
<None Include="../../LICENSE" Pack="True" PackagePath="" />
</ItemGroup>
<ItemGroup>
<ObjcBindingCoreSource Include="@(sourceFolder)\StructsAndEnums.cs" />
</ItemGroup>
<ItemGroup>
<ObjcBindingApiDefinition Include="@(sourceFolder)\ApiDefinitions.cs" />
</ItemGroup>
<ItemGroup>
@foreach (var dep in Model.NuGetDependencies)
{
if (!dep.IsProjectReference)
{
<PackageReference Include="@(dep.NuGetPackageId)" Version="@(dep.NuGetVersion)" />
}
}
<PackageReference Include="Xamarin.Build.Download" Version="0.11.4" PrivateAssets="None" />
</ItemGroup>
<ItemGroup>
@foreach (var dep in Model.NuGetDependencies)
{
if (dep.IsProjectReference)
{
<ProjectReference Include="..\@(dep.NormalizedName)\@(dep.NuGetPackageId).csproj" PrivateAssets="none" />
}
}
</ItemGroup>
</Project>