openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
codegen/generator/src/OpenAI.Library.Plugin.csproj
20lines · modecode
| 1 | <Project Sdk="Microsoft.NET.Sdk"> |
| 2 | <PropertyGroup> |
| 3 | <TargetFramework>$(GeneratorTargetFrameworks)</TargetFramework> |
| 4 | <RootNamespace>OpenAI.Microsoft.Generator.CSharp.ClientModel.Plugin</RootNamespace> |
| 5 | </PropertyGroup> |
| 6 | |
| 7 | <ItemGroup> |
| 8 | <PackageReference Include="Microsoft.TypeSpec.Generator.ClientModel" /> |
| 9 | </ItemGroup> |
| 10 | |
| 11 | <!-- Copy output to package dist path for local execution and --> |
| 12 | <Target Name="CopyForNpmPackage" AfterTargets="Build"> |
| 13 | <Message Text="Copying output to dist path" Importance="high" /> |
| 14 | <ItemGroup> |
| 15 | <SourceDir Include="$(OutputPath)**\*.*" /> |
| 16 | </ItemGroup> |
| 17 | <Copy SourceFiles="@(SourceDir)" DestinationFolder="$(MSBuildThisFileDirectory)..\..\dist\generator\%(RecursiveDir)" /> |
| 18 | <Copy SourceFiles="..\..\..\node_modules\@typespec\http-client-csharp\dist\generator\Microsoft.TypeSpec.Generator.runtimeconfig.json" DestinationFolder="$(MSBuildThisFileDirectory)..\..\dist\generator" /> |
| 19 | </Target> |
| 20 | </Project> |
| 21 | |