Skip to content

Commit

Permalink
Cleaned up some stuff with source generators, removed redundancy.
Browse files Browse the repository at this point in the history
  • Loading branch information
MeltyPlayer committed Apr 27, 2024
1 parent 52fe233 commit c537770
Show file tree
Hide file tree
Showing 8 changed files with 551 additions and 560 deletions.
21 changes: 18 additions & 3 deletions Schema/Schema.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@

<ItemGroup>
<None Include="..\README.md" Pack="true" PackagePath="\" />
<!-- Include the netstandard2.0 DLL into the package -->
<None Include="$(OutputPath)$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="CommunityToolkit.HighPerformance" Version="8.2.0" />
<PackageReference Include="Encoding.SpanExtensions" Version="1.0.0" />
<PackageReference Include="Half" Version="1.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3">
Expand All @@ -35,4 +32,22 @@
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.0.1" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" />
</ItemGroup>

<ItemGroup>
<!-- Generator dependencies -->
<PackageReference Include="CommunityToolkit.HighPerformance" Version="8.2.0" GeneratePathProperty="true" PrivateAssets="all" />
</ItemGroup>

<PropertyGroup>
<GetTargetPathDependsOn>$(GetTargetPathDependsOn);GetDependencyTargetPaths</GetTargetPathDependsOn>
</PropertyGroup>

<Target Name="GetDependencyTargetPaths">
<ItemGroup>
<TargetPathWithTargetPlatformMoniker Include="$(PKGCommunityToolkit_HighPerformance)\lib\netstandard2.0\CommunityToolkit.HighPerformance.dll" IncludeRuntimeDependency="false" />
<!-- Include the netstandard2.0 DLL into the package -->
<None Include="$(OutputPath)$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="$(PKGCommunityToolkit_HighPerformance)\lib\netstandard2.0\CommunityToolkit.HighPerformance.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>
</Target>
</Project>
Loading

0 comments on commit c537770

Please sign in to comment.