8000 Cleanup · libgit2/libgit2sharp@0a33065 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a33065

Browse files
committed
Cleanup
1 parent d73225f commit 0a33065

File tree

5 files changed

+21
-17
lines changed

5 files changed

+21
-17
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ insert_final_newline = true
1313
[*.{sln,csroj}]
1414
trim_trailing_whitespace = false
1515
insert_final_newline = false
16+
17+
[*.{props,targets}]
18+
indent_size = 2

Directory.Build.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<Project>
2+
23
<PropertyGroup>
34
<PublicSign Condition=" '$(AssemblyOriginatorKeyFile)' != '' and '$(OS)' != 'Windows_NT' ">true</PublicSign>
45
</PropertyGroup>
6+
57
</Project>
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
23
<PropertyGroup>
34
<TargetFrameworks>net46;netcoreapp2.0</TargetFrameworks>
45
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
56
<DefineConstants Condition=" '$(TargetFramework)' == 'net46' ">$(DefineConstants);DESKTOP</DefineConstants>
67
<IsPackable>false</IsPackable>
78
</PropertyGroup>
9+
810
<ItemGroup>
9-
<Compile Include="..\LibGit2Sharp\Core\Epoch.cs">
10-
<Link>TestHelpers\Epoch.cs</Link>
11-
</Compile>
12-
<Compile Include="..\LibGit2Sharp\Core\Platform.cs">
13-
<Link>TestHelpers\Platform.cs</Link>
14-
</Compile>
11+
<Compile Include="..\LibGit2Sharp\Core\Epoch.cs" Link="TestHelpers\Epoch.cs" />
12+
<Compile Include="..\LibGit2Sharp\Core\Platform.cs" Link="TestHelpers\Platform.cs" />
1513
<Compile Remove="desktop\**" Condition=" '$(TargetFramework)' != 'net46' " />
1614
</ItemGroup>
15+
1716
<ItemGroup>
1817
<ProjectReference Include="..\LibGit2Sharp\LibGit2Sharp.csproj" />
1918
</ItemGroup>
19+
2020
<ItemGroup>
2121
<PackageReference Include="Moq" Version="4.7.99" />
2222
<PackageReference Include="xunit" Version="2.2.0" />
@@ -25,7 +25,5 @@
2525
<PackageReference Include="xunit.runner.console" Version="2.2.0" />
2626
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
2727
</ItemGroup>
28-
<ItemGroup>
29-
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
30-
</ItemGroup>
28+
3129
</Project>

LibGit2Sharp/LibGit2Sharp.csproj

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
23
<PropertyGroup>
34
<TargetFrameworks>net40;netstandard2.0</TargetFrameworks>
45
<GenerateDocumentationFile>true</GenerateDocumentationFile>
56
<Description>LibGit2Sharp brings all the might and speed of libgit2, a native Git implementation, to the managed world of .Net and Mono.</Description>
67
<Company>LibGit2Sharp contributors</Company>
8+
<Copyright>Copyright © LibGit2Sharp contributors</Copyright>
79
<PackageTags>libgit2 git</PackageTags>
810
<PackageProjectUrl>https://github.com/libgit2/libgit2sharp/</PackageProjectUrl>
911
<Authors>LibGit2Sharp contributors</Authors>
10-
1112
<SignAssembly>true</SignAssembly>
1213
<AssemblyOriginatorKeyFile>..\libgit2sharp.snk</AssemblyOriginatorKeyFile>
1314
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1415
<DefineConstants Condition=" '$(TargetFramework)' == 'net40' ">$(DefineConstants);DESKTOP</DefineConstants>
1516
</PropertyGroup>
17+
1618
<ItemGroup>
1719
<CodeAnalysisDictionary Include="CustomDictionary.xml" />
1820
<None Include="Core\Handles\Objects.tt">
@@ -22,27 +24,29 @@
2224
<None Include="..\README.md" Pack="true" PackagePath="App_Readme\" />
2325
<None Include="..\LICENSE.md" Pack="true" PackagePath="App_Readme\" />
2426
<None Include="..\CHANGES.md" Pack="true" PackagePath="App_Readme\" />
25-
26-
<Compile Update="Core\Handles\Objects.cs">
27-
<DependentUpon>Objects.tt</DependentUpon>
28-
</Compile>
27+
<Compile Update="Core\Handles\Objects.cs" DependentUpon="Objects.tt" />
2928
</ItemGroup>
29+
3030
<ItemGroup>
3131
<PackageReference Include="LibGit2Sharp.NativeBinaries" Version="[1.0.185]" PrivateAssets="contentFiles" />
3232
<PackageReference Include="SourceLink.Create.GitHub" Version="2.1.2" PrivateAssets="all" />
3333
<DotNetCliToolReference Include="dotnet-sourcelink-git" Version="2.1.2" />
A3D4
3434
</ItemGroup>
35+
3536
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' ">
3637
<PackageReference Include="System.Security.SecureString" Version="4.0.0" />
3738
<PackageReference Include="System.IO.UnmanagedMemoryStream" Version="4.0.1" />
3839
<PackageReference Include="System.Diagnostics.TraceSource" Version="4.0.0" />
3940
</ItemGroup>
41+
4042
<Import Project="CodeGenerator.targets" />
43+
4144
<Target Name="SetNuSpecProperties" BeforeTargets="GenerateNuspec" DependsOnTargets="GetBuildVersion">
4245
<PropertyGroup>
4346
<PackageIconUrl>https://github.com/libgit2/libgit2sharp/raw/$(GitCommitIdShort)/square-logo.png</PackageIconUrl>
4447
<PackageReleaseNotes>https://github.com/libgit2/libgit2sharp/blob/$(GitCommitIdShort)/CHANGES.md#libgit2sharp-changes</PackageReleaseNotes>
4548
<PackageLicenseUrl>https://github.com/libgit2/libgit2sharp/raw/$(GitCommitIdShort)/LICENSE.md</PackageLicenseUrl>
4649
</PropertyGroup>
4750
</Target>
51+
4852
</Project>

LibGit2Sharp/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
using System;
2-
using System.Reflection;
32
using System.Runtime.InteropServices;
43

54
// General Information about an assembly is controlled through the following
65
// set of attributes. Change these attribute values to modify the information
76
// associated with an assembly.
87

9-
[assembly: AssemblyCopyright("Copyright © LibGit2Sharp contributors")]
10-
118
[assembly: CLSCompliant(true)]
129

1310
// Setting ComVisible to false makes the types in this assembly not visible

0 commit comments

Comments
 (0)
0