mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-23 16:11:42 -04:00
2d09485f74
Co-authored-by: Zeke Foppa <github.com/bfops>
61 lines
2.7 KiB
XML
61 lines
2.7 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>netstandard2.0</TargetFramework>
|
|
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
|
|
<IsRoslynComponent>true</IsRoslynComponent>
|
|
<LangVersion>latest</LangVersion>
|
|
<Nullable>enable</Nullable>
|
|
<AssemblyName>SpacetimeDB.Codegen</AssemblyName>
|
|
<AssemblyVersion>0.10.0</AssemblyVersion>
|
|
<IncludeBuildOutput>false</IncludeBuildOutput>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<Version>$(AssemblyVersion)</Version>
|
|
<Title>SpacetimeDB Module Codegen</Title>
|
|
<Authors>RReverser</Authors>
|
|
<Company>Clockwork Labs</Company>
|
|
<Product>SpacetimeDB</Product>
|
|
<Description>The SpacetimeDB Codegen implements the Roslyn incremental generators for writing SpacetimeDB modules in C#.</Description>
|
|
<Copyright>2023</Copyright>
|
|
<PackageProjectUrl>https://spacetimedb.com/</PackageProjectUrl>
|
|
<PackageIcon>logo.png</PackageIcon>
|
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
|
<RepositoryType>git</RepositoryType>
|
|
<RepositoryUrl>https://github.com/clockworklabs/SpacetimeDBLibCSharp</RepositoryUrl>
|
|
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="../BSATN.Codegen/BSATN.Codegen.csproj" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.5.0" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Include="../logo.png" Pack="true" PackagePath="" />
|
|
<None Include="README.md" Pack="true" PackagePath="" />
|
|
<None Include="../LICENSE" Pack="true" PackagePath="" />
|
|
<!-- source generators need to be put in a specific folder -->
|
|
<!-- see https://github.com/dotnet/roslyn/blob/main/docs/features/source-generators.cookbook.md#package-a-generator-as-a-nuget-package -->
|
|
<None Include="$(OutputPath)/$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
|
|
<!-- We want BSATN.Codegen to be an internal dependency shipped in the same package as Codegen itself. -->
|
|
<None Include="$(OutputPath)/SpacetimeDB.BSATN.Codegen.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
|
|
</ItemGroup>
|
|
|
|
<!-- <None Include /> hack above only works for NuGet packages, but not for local project references. So here we need another one... -->
|
|
<PropertyGroup>
|
|
<GetTargetPathDependsOn>$(GetTargetPathDependsOn);GetDependencyTargetPaths</GetTargetPathDependsOn>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="GetDependencyTargetPaths">
|
|
<ItemGroup>
|
|
<TargetPathWithTargetPlatformMoniker Include="$(ProjectDir)/$(OutputPath)/SpacetimeDB.BSATN.Codegen.dll" IncludeRuntimeDependency="false" />
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
</Project>
|