Implement packaging for ComputeSharp.Dynamic

The idea is very simple: we take advantage of Nugetizer's
behavior for ProjectReferences when packing:

 1) They become asset contributors when the referenced project
    does not specify PackageId.
 2) They become dependencies when the referenced project does
    specify PackageId.

So, all we have to do to get ComputeSharp to be a package dependency
of ComputeSharp.Dynamic is reference the corresponding packaging project.

We also take care to specify the correct version via "AdditionalProperties".
このコミットが含まれているのは:
SingleAccretion committed 2022-01-08 20:30:48 +03:00
1 親 b1d0ffd030
コミット 1c5eea8be8
1ファイル変更
+3
+3
ファイルの表示
@@ -16,6 +16,9 @@
<ItemGroup>
<ProjectReference Include="..\ComputeSharp.Dynamic\ComputeSharp.Dynamic.csproj" />
<ProjectReference Include="..\ComputeSharp.Package\ComputeSharp.Package.msbuildproj">
<AdditionalProperties>PackageVersion=$(PackageVersion)</AdditionalProperties>
</ProjectReference>
</ItemGroup>
</Project>