Skip to content

Commit eef8c18

Browse files
committed
csproj workaround
1 parent e0bce0d commit eef8c18

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

src/generate-csproj.ts

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,53 @@
1-
import { csprojTemplate } from '../node_modules/@seamapi/nextlove-sdk-generator/lib/generate-csharp-sdk/generate-csproj.js'
21
import { writeFileSync } from 'fs'
32

43
import packageJson from '../package.json'
54

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+
651
const main = async () => {
752
writeFileSync(
853
'./output/csharp/src/Seam/Seam.csproj',

0 commit comments

Comments
 (0)