Skip to content

Commit 400cb37

Browse files
committed
Several small CR comment fixups
1 parent a60c102 commit 400cb37

File tree

8 files changed

+14
-22
lines changed

8 files changed

+14
-22
lines changed

LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
<PackageReference Include="xunit.skippablefact" Version="1.3.1" />
2424
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
2525
<PackageReference Include="xunit.runner.console" Version="2.2.0" />
26-
<PackageReference Include="xunit.runner.msbuild" Version="2.2.0" Condition=" '$(TargetFramework)' == 'net46' " />
2726
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
2827
</ItemGroup>
2928
<ItemGroup>

LibGit2Sharp.Tests/VisualStudio.Tests.targets

Lines changed: 0 additions & 6 deletions
This file was deleted.

LibGit2Sharp.sln

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ EndProject
1212
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0CA739FD-DA4D-4F64-9834-DA14A3ECD04B}"
1313
ProjectSection(SolutionItems) = preProject
1414
.gitignore = .gitignore
15-
LibGit2Sharp\CodeGenerator.targets = LibGit2Sharp\CodeGenerator.targets
1615
nuget.config = nuget.config
1716
version.json = version.json
1817
EndProjectSection

LibGit2Sharp/CodeGenerator.targets

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
</PropertyGroup>
3535
</Target>
3636

37-
<Target Name="GenerateNativeDllNameCs">
37+
<Target Name="GenerateNativeDllNameCs"
38+
Inputs="@(EmbeddedResource)"
39+
Outputs="$(NativeDllNamePath)">
3840
<ReadLinesFromFile File="@(EmbeddedResource)"
3941
Condition=" '%(Filename)%(Extension)' == 'libgit2_filename.txt' ">
4042
<Output TaskParameter="Lines" PropertyName="libgit2FileName" />
@@ -60,10 +62,10 @@ namespace LibGit2Sharp.Core
6062
</Target>
6163

6264
<!-- This target runs if any of the projects or .cs files for the project have changed since the last time
63-
the UniqueIdentifier.cs file was generated. -->
65+
the UniqueIdentifier.cs file was generated. -->
6466
<Target Name="GenerateUniqueIdentifierCs"
65-
Inputs="$(MSBuildThisFileFullPath);$(MSBuildAllProjects);@(Compile)"
66-
Outputs="$(UniqueIdentifierPath)">
67+
Inputs="$(MSBuildThisFileFullPath);$(MSBuildAllProjects);@(Compile)"
68+
Outputs="$(UniqueIdentifierPath)">
6769
<PropertyGroup>
6870
<UniqueIdSourceLines>
6971
namespace LibGit2Sharp.Core

LibGit2Sharp/Core/EncodingMarshaler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public virtual IntPtr MarshalManagedToNative(Object managedObj)
4545
{
4646
throw new MarshalDirectiveException(string.Format(CultureInfo.InvariantCulture,
4747
"{0} must be used on a string.",
48-
this.GetType().Name));
48+
GetType().Name));
4949
}
5050

5151
return FromManaged(encoding, str);

LibGit2Sharp/Core/Utf8Marshaler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public override Object MarshalNativeToManaged(IntPtr pNativeData)
7171
{
7272
throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture,
7373
"{0} cannot be used to retrieve data from libgit2.",
74-
this.GetType().Name));
74+
GetType().Name));
7575
}
7676

7777
#endregion
@@ -107,7 +107,7 @@ public override IntPtr MarshalManagedToNative(object managedObj)
107107
{
108108
throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture,
109109
"{0} cannot be used to pass data to libgit2.",
110-
this.GetType().Name));
110+
GetType().Name));
111111
}
112112

113113
#endregion

LibGit2Sharp/LibGit2Sharp.csproj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,17 @@
3232
</ItemGroup>
3333
<ItemGroup>
3434
<PackageReference Include="LibGit2Sharp.NativeBinaries" Version="[1.0.165]" />
35-
<PackageReference Include="System.Security.SecureString" Version="4.0.0" Condition=" '$(TargetFramework)' == 'netstandard1.3' " />
36-
<PackageReference Include="System.IO.UnmanagedMemoryStream" Version="4.0.1" Condition=" '$(TargetFramework)' == 'netstandard1.3' " />
37-
<PackageReference Include="System.Diagnostics.TraceSource" Version="4.0.0" Condition=" '$(TargetFramework)' == 'netstandard1.3' " />
3835
<PackageReference Include="SourceLink.Create.GitHub" Version="2.0.2" PrivateAssets="all" />
3936
<DotNetCliToolReference Include="dotnet-sourcelink-git" Version="2.0.2" />
4037

4138
<PackageReference Include="CodeGeneration.Roslyn.BuildTime" Version="$(CodeGenerationRoslynVersion)" PrivateAssets="all" />
4239
<DotNetCliToolReference Include="dotnet-codegen" Version="$(CodeGenerationRoslynVersion)" />
4340
</ItemGroup>
41+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' ">
42+
<PackageReference Include="System.Security.SecureString" Version="4.0.0" />
43+
<PackageReference Include="System.IO.UnmanagedMemoryStream" Version="4.0.1" />
44+
<PackageReference Include="System.Diagnostics.TraceSource" Version="4.0.0" />
45+
</ItemGroup>
4446
<Import Project="CodeGenerator.targets" />
4547
<Import Project="ExtraDefine.targets" />
4648
<Target Name="SetNuSpecProperties" BeforeTargets="GenerateNuspec" DependsOnTargets="GetBuildVersion">

nuget.config

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
3-
<config>
4-
<add key="repositorypath" value="packages" />
5-
</config>
63
<packageSources>
74
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
85
<add key="CodeGeneration.Roslyn" value="https://ci.appveyor.com/nuget/codegeneration-roslyn" />
9-
<add key="nerdbank-gitversioning" value="https://ci.appveyor.com/nuget/nerdbank-gitversioning" />
106
<add key="corefxlab" value="https://dotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json" />
117
</packageSources>
128
</configuration>

0 commit comments

Comments
 (0)