Create a packaging project

このコミットが含まれているのは:
SingleAccretion committed 2020-12-12 20:01:26 +03:00
1 親 efc85af2f1
コミット af70de2547
10ファイル変更
+86 -18

検索条件に一致するファイルはありません

+2 -1
ファイルの表示
@@ -28,11 +28,12 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_SolutionItems", "_SolutionItems", "{1A9C4108-F61A-4ABE-B5CF-F524521EAE2D}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
global.json = global.json
LICENSE = LICENSE
README.md = README.md
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputeSharp.SourceGenerators", "src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj", "{EB52CB67-4162-4722-874B-44EA8DA5450E}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.SourceGenerators", "src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj", "{EB52CB67-4162-4722-874B-44EA8DA5450E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
+5
ファイルの表示
@@ -0,0 +1,5 @@
{
"sdk": {
"version": "5.0.100"
}
}
+6 -6
ファイルの表示
@@ -7,15 +7,15 @@
<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.12.1.1473" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\ComputeSharp\ComputeSharp.csproj" />
<ProjectReference
Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false"
PrivateAssets="contentfiles;build"/>
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false"
PrivateAssets="contentfiles;build" />
</ItemGroup>
</Project>
</Project>
+17 -1
ファイルの表示
@@ -4,11 +4,27 @@
<TargetFrameworks>netstandard2.0;net5.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>9.0</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup>
<!--
This is needed so that the packaging for the source generator is correct
We want to have the package references of this project be private when packing the SG
(The nugetizer infrastructure recognizes that and packages the dependencies directly alongside the main binary)
And public dependencies when building for the main project
Right now this is conditioned on the target framework, so this property is primarily for readability
This may change in the future
-->
<BuildingForSourceGenerator Condition="'$(TargetFramework)' == 'netstandard2.0'">false</BuildingForSourceGenerator>
<BuildingForSourceGenerator Condition="'$(TargetFramework)' == 'netstandard2.0'">true</BuildingForSourceGenerator>
<PackSymbols Condition="'$(BuildingForSourceGenerator)' == true">false</PackSymbols>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Toolkit" Version="7.0.0-preview4" />
<PackageReference Condition="'$(BuildingForSourceGenerator)' == 'true'" Update="@(PackageReference)" PrivateAssets="all" />
</ItemGroup>
</Project>
-1
ファイルの表示
@@ -2,7 +2,6 @@
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
+26
ファイルの表示
@@ -0,0 +1,26 @@
<Project Sdk="Microsoft.Build.NoTargets/2.0.1" DefaultTargets="Pack">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<PackageId>ComputeSharp</PackageId>
<Description>A .NET 5 library to run C# code in parallel on the GPU through DX12 and dynamically generated HLSL compute shaders</Description>
<PackageReleaseNotes>New interlocked intrinsics APIs, performance and memory optimizations</PackageReleaseNotes>
<PackageVersion>2.0.0</PackageVersion>
<RepositoryUrl>https://github.com/Sergio0694/ComputeSharp.git</RepositoryUrl>
<ProjectUrl>https://github.com/Sergio0694/ComputeSharp</ProjectUrl>
<Authors>Sergio Pedri</Authors>
<Owners>Sergio Pedri</Owners>
<Copyright>Copyright (c) 2020 Sergio Pedri</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageIconUrl>https://i.imgur.com/ntvmD6P.png</PackageIconUrl>
<PackageTags>dotnet net netcore netstandard csharp library graphics shader hlsl compute gpu</PackageTags>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\ComputeSharp\ComputeSharp.csproj" />
<ProjectReference Include="..\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" />
</ItemGroup>
</Project>
-1
ファイルの表示
@@ -2,7 +2,6 @@
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
+8 -4
ファイルの表示
@@ -3,16 +3,20 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>9.0</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup>
<PackFolder>analyzers\dotnet\cs</PackFolder>
<PackSymbols>false</PackSymbols>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.8.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.8.0" PrivateAssets="all" Pack="false" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.1" PrivateAssets="all" Pack="false" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ComputeSharp.Core\ComputeSharp.Core.csproj" />
<ProjectReference Include="..\ComputeSharp.Core\ComputeSharp.Core.csproj" PrivateAssets="all" />
</ItemGroup>
</Project>
+13 -4
ファイルの表示
@@ -2,18 +2,27 @@
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<LangVersion>preview</LangVersion>
<Nullable>enable</Nullable>
<LangVersion>9.0</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<PackFolder>lib\$(TargetFramework)</PackFolder>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\ComputeSharp.Shaders\ComputeSharp.Shaders.csproj" />
</ItemGroup>
<ItemGroup>
<None Include="C:\Program Files (x86)\Windows Kits\10\Redist\D3D\x64\dxcompiler.dll" Visible="False" CopyToOutputDirectory="PreserveNewest" />
<None Include="C:\Program Files (x86)\Windows Kits\10\Redist\D3D\x64\dxil.dll" Visible="False" CopyToOutputDirectory="PreserveNewest" />
<None Include="C:\Program Files (x86)\Windows Kits\10\Redist\D3D\x64\dxcompiler.dll"
Visible="False"
CopyToOutputDirectory="PreserveNewest"
PackFolder="runtimes\win-x64\native" />
<None Include="C:\Program Files (x86)\Windows Kits\10\Redist\D3D\x64\dxil.dll"
Visible="False"
CopyToOutputDirectory="PreserveNewest"
PackFolder="runtimes\win-x64\native" />
</ItemGroup>
</Project>
+9
ファイルの表示
@@ -0,0 +1,9 @@
<Project>
<PropertyGroup>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NuGetizer" Version="0.6.0" PrivateAssets="all" />
</ItemGroup>
</Project>