nuget
This commit is contained in:
parent
2324c6e929
commit
2a6c15ec94
18
Directory.Build.props
Normal file
18
Directory.Build.props
Normal file
@ -0,0 +1,18 @@
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<NoWarn>$(NoWarn);CS1591</NoWarn>
|
||||
|
||||
<!-- NuGet Packaging -->
|
||||
<PackageVersion>$(Version)</PackageVersion>
|
||||
<Company>Cysharp</Company>
|
||||
<Authors>Cysharp</Authors>
|
||||
<Copyright>© Cysharp, Inc.</Copyright>
|
||||
<PackageProjectUrl>https://github.com/Cysharp/ObservableCollections</PackageProjectUrl>
|
||||
<RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
<PackageIcon>Icon.png</PackageIcon>
|
||||
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)opensource.snk</AssemblyOriginatorKeyFile>
|
||||
</PropertyGroup>
|
||||
</Project>
|
BIN
opensource.snk
Normal file
BIN
opensource.snk
Normal file
Binary file not shown.
BIN
src/ObservableCollections/Icon.png
Normal file
BIN
src/ObservableCollections/Icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
@ -4,12 +4,21 @@
|
||||
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;net6.0</TargetFrameworks>
|
||||
<Nullable>enable</Nullable>
|
||||
<LangVersion>10.0</LangVersion>
|
||||
|
||||
<!-- NuGet Packaging -->
|
||||
<PackageTags>collection</PackageTags>
|
||||
<Description>High performance observable collections and synchronized views, for WPF, Blazor, Unity.</Description>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition="$(TargetFramework) == 'netstandard2.0'">
|
||||
<PackageReference Include="System.Memory" Version="4.5.4" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="Icon.png" Pack="true" PackagePath="/" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- PostBuild copy should run only once so use Condition. -->
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="$(TargetFramework) == 'netstandard2.0'">
|
||||
<PropertyGroup>
|
||||
@ -20,7 +29,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<Copy SourceFiles="@(CopySource)" DestinationFiles="$(DestinationRoot)\%(RecursiveDir)%(Filename)%(Extension)" SkipUnchangedFiles="true" UseHardlinksIfPossible="false" />
|
||||
|
||||
|
||||
<!-- After copy, replace for unity codes -->
|
||||
<Exec Command="dotnet run -c $(ConfigurationName) --project $(MSBuildProjectDirectory)\..\..\tools\PostBuildUtility\PostBuildUtility.csproj -- replace-to-unity $(DestinationRoot)" />
|
||||
</Target>
|
||||
|
Loading…
x
Reference in New Issue
Block a user