From e3ec12bf4f93c330a5bc69c01503a824db703eda Mon Sep 17 00:00:00 2001 From: Max Stoumen Date: Mon, 30 Oct 2023 16:54:34 -0700 Subject: [PATCH] chore: csproj workaround --- src/generate-csproj.ts | 47 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/src/generate-csproj.ts b/src/generate-csproj.ts index 989ac4c..5037f63 100644 --- a/src/generate-csproj.ts +++ b/src/generate-csproj.ts @@ -1,8 +1,53 @@ -import { csprojTemplate } from '../node_modules/@seamapi/nextlove-sdk-generator/lib/generate-csharp-sdk/generate-csproj.js' import { writeFileSync } from 'fs' import packageJson from '../package.json' +export const csprojTemplate = (version: string, dotNetVersions: string[]) => + ` + + + + ${dotNetVersions + .map((v) => `net${v}`) + .join(';')} + enable + annotations + + Seam + + ${version} + + Seam + + Seam + + README.md + + http://github.com/seamapi/seam-connect + + icon.png + + Seam API for C# + + Copyright (c) 2021-2023 Seam Labs, Inc. + + api iot + + + + + + + + + + + + + + +`.trim() + const main = async () => { writeFileSync( './output/csharp/src/Seam/Seam.csproj',