|
1 |
| -import { csprojTemplate } from '../node_modules/@seamapi/nextlove-sdk-generator/lib/generate-csharp-sdk/generate-csproj.js' |
2 | 1 | import { writeFileSync } from 'fs'
|
3 | 2 |
|
4 | 3 | import packageJson from '../package.json'
|
5 | 4 |
|
| 5 | +export const csprojTemplate = (version: string, dotNetVersions: string[]) => |
| 6 | + ` |
| 7 | +<Project Sdk="Microsoft.NET.Sdk"> |
| 8 | +
|
| 9 | +<PropertyGroup> |
| 10 | + <TargetFrameworks>${dotNetVersions |
| 11 | + .map((v) => `net${v}`) |
| 12 | + .join(';')}</TargetFrameworks> |
| 13 | + <ImplicitUsings>enable</ImplicitUsings> |
| 14 | + <Nullable>annotations</Nullable> |
| 15 | +
|
| 16 | + <PackageId>Seam</PackageId> |
| 17 | +
|
| 18 | + <PackageVersion>${version}</PackageVersion> |
| 19 | +
|
| 20 | + <Authors>Seam</Authors> |
| 21 | +
|
| 22 | + <Owners>Seam</Owners> |
| 23 | +
|
| 24 | + <PackageReadmeFile>README.md</PackageReadmeFile> |
| 25 | +
|
| 26 | + <PackageProjectUrl>http://github.com/seamapi/seam-connect</PackageProjectUrl> |
| 27 | +
|
| 28 | + <PackageIcon>icon.png</PackageIcon> |
| 29 | +
|
| 30 | + <Description>Seam API for C#</Description> |
| 31 | +
|
| 32 | + <Copyright>Copyright (c) 2021-2023 Seam Labs, Inc.</Copyright> |
| 33 | +
|
| 34 | + <PackageTags>api iot</PackageTags> |
| 35 | +</PropertyGroup> |
| 36 | +
|
| 37 | +<ItemGroup> |
| 38 | + <None Include="icon.png" Pack="true" PackagePath="icon.png" /> |
| 39 | + <None Include="README.md" Pack="true" PackagePath="README.md" /> |
| 40 | +
|
| 41 | + <PackageReference Include="JsonSubTypes" Version="2.0.1" /> |
| 42 | + <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> |
| 43 | + <PackageReference Include="Polly" Version="7.2.4" /> |
| 44 | + <PackageReference Include="RestSharp" Version="110.2.0" /> |
| 45 | +</ItemGroup> |
| 46 | +
|
| 47 | +</Project> |
| 48 | +
|
| 49 | +`.trim() |
| 50 | + |
6 | 51 | const main = async () => {
|
7 | 52 | writeFileSync(
|
8 | 53 | './output/csharp/src/Seam/Seam.csproj',
|
|
0 commit comments