Skip to content

Commit a6f4cd6

Browse files
committed
All projects rewritten as .NET SDK projects
1 parent d851767 commit a6f4cd6

File tree

414 files changed

+264
-1841
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

414 files changed

+264
-1841
lines changed

.nuget/packages.config

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

CodeGeneration/CodeGeneration.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
<ItemGroup>
99
<PackageReference Include="CodeGeneration.Roslyn" Version="0.2.10" />
1010
<PackageReference Include="Nerdbank.GitVersioning" Version="1.6.19-beta" />
11+
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.1.548" />
1112
</ItemGroup>
1213
</Project>
Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
using System;
2-
using System.IO;
3-
using Microsoft.Build.Framework;
4-
using Microsoft.Build.Utilities;
5-
6-
namespace CustomBuildTasks
7-
{
8-
public class GenerateNativeDllNameTask : Task
9-
{
10-
public ITaskItem InputHashFile { get; set; }
11-
12-
public string OutputFile { get; set; }
13-
14-
public override bool Execute()
15-
{
16-
var fileName = InputHashFile.GetMetadata("FullPath");
17-
string libgit2FileName;
18-
19-
using (var sr = new StreamReader(fileName))
20-
{
21-
libgit2FileName = sr.ReadLine();
22-
}
23-
24-
var nativeDllName = @"namespace LibGit2Sharp.Core
25-
{{
26-
internal static class NativeDllName
27-
{{
28-
public const string Name = ""{0}"";
29-
}}
30-
}}
31-
";
32-
33-
using (var sw = new StreamWriter(OutputFile))
34-
{
35-
sw.Write(nativeDllName, libgit2FileName);
36-
}
37-
38-
return true;
39-
}
40-
}
41-
}
1+
using System;
2+
using System.IO;
3+
using Microsoft.Build.Framework;
4+
using Microsoft.Build.Utilities;
5+
6+
namespace CodeGeneration
7+
{
8+
public class GenerateNativeDllNameTask : Task
9+
{
10+
public ITaskItem InputHashFile { get; set; }
11+
12+
public string OutputFile { get; set; }
13+
14+
public override bool Execute()
15+
{
16+
var fileName = InputHashFile.GetMetadata("FullPath");
17+
string libgit2FileName;
18+
19+
using (var sr = new StreamReader(File.OpenRead(fileName)))
20+
{
21+
libgit2FileName = sr.ReadLine();
22+
}
23+
24+
var nativeDllName = @"namespace LibGit2Sharp.Core
25+
{{
26+
internal static class NativeDllName
27+
{{
28+
public const string Name = ""{0}"";
29+
}}
30+
}}
31+
";
32+
33+
using (var sw = new StreamWriter(File.OpenWrite(OutputFile)))
34+
{
35+
sw.Write(nativeDllName, libgit2FileName);
36+
}
37+
38+
return true;
39+
}
40+
}
41+
}
Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
using System;
2-
using System.IO;
3-
using System.Text;
4-
using Microsoft.Build.Framework;
5-
using Microsoft.Build.Utilities;
6-
7-
namespace CustomBuildTasks
8-
{
9-
public class GenerateUniqueIdentifierTask : Task
10-
{
11-
public override bool Execute()
12-
{
13-
using (FileStream fs = new FileStream(this.OutputFile, FileMode.Create, FileAccess.Write, FileShare.None))
14-
using (StreamWriter sw = new StreamWriter(fs, Encoding.UTF8))
15-
{
16-
sw.WriteLine("using System;");
17-
sw.WriteLine();
18-
sw.WriteLine("namespace LibGit2Sharp.Core");
19-
sw.WriteLine("{");
20-
sw.WriteLine(" internal static class UniqueId");
21-
sw.WriteLine(" {");
22-
sw.WriteLine(" public const String UniqueIdentifier = \"" + Guid.NewGuid().ToString() + "\";");
23-
sw.WriteLine(" }");
24-
sw.WriteLine("}");
25-
}
26-
27-
return true;
28-
}
29-
30-
public String OutputFile
31-
{
32-
get;
33-
set;
34-
}
35-
}
36-
}
1+
using System;
2+
using System.IO;
3+
using System.Text;
4+
using Microsoft.Build.Framework;
5+
using Microsoft.Build.Utilities;
6+
7+
namespace CodeGeneration
8+
{
9+
public class GenerateUniqueIdentifierTask : Task
10+
{
11+
public override bool Execute()
12+
{
13+
using (FileStream fs = new FileStream(this.OutputFile, FileMode.Create, FileAccess.Write, FileShare.None))
14+
using (StreamWriter sw = new StreamWriter(fs, Encoding.UTF8))
15+
{
16+
sw.WriteLine("using System;");
17+
sw.WriteLine();
18+
sw.WriteLine("namespace LibGit2Sharp.Core");
19+
sw.WriteLine("{");
20+
sw.WriteLine(" internal static class UniqueId");
21+
sw.WriteLine(" {");
22+
sw.WriteLine(" public const String UniqueIdentifier = \"" + Guid.NewGuid().ToString() + "\";");
23+
sw.WriteLine(" }");
24+
sw.WriteLine("}");
25+
}
26+
27+
return true;
28+
}
29+
30+
public String OutputFile
31+
{
32+
get;
33+
set;
34+
}
35+
}
36+
}

Lib/.gitattributes

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

Lib/CustomBuildTasks/CustomBuildTasks.csproj

Lines changed: 0 additions & 43 deletions
This file was deleted.
-5.5 KB
Binary file not shown.

Lib/NuGet/NuGet.exe

-3.9 MB
Binary file not shown.

Lib/NuGet/NuGet.license.txt

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

0 commit comments

Comments
 (0)