From 8bf37a2eb90ad888b30e40afa4240272b1de7248 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Sat, 15 Apr 2023 20:40:17 +0200 Subject: [PATCH 01/14] chore: Updated .gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index dfcfd56..8a1283b 100644 --- a/.gitignore +++ b/.gitignore @@ -348,3 +348,6 @@ MigrationBackup/ # Ionide (cross platform F# VS Code tools) working folder .ionide/ + +# JetBrains +.idea/ From a5becedf029097da377ef6c8cb655b23d2f63dba Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Sat, 15 Apr 2023 20:40:29 +0200 Subject: [PATCH 02/14] chore: Added Escendit.Tools.SourceLink.GitHub.sln --- Escendit.Tools.SourceLink.GitHub.sln | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Escendit.Tools.SourceLink.GitHub.sln diff --git a/Escendit.Tools.SourceLink.GitHub.sln b/Escendit.Tools.SourceLink.GitHub.sln new file mode 100644 index 0000000..58ea566 --- /dev/null +++ b/Escendit.Tools.SourceLink.GitHub.sln @@ -0,0 +1,14 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal From 826eb3ac62c70f0e8768116b467c0fbb704889eb Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Sat, 15 Apr 2023 21:04:41 +0200 Subject: [PATCH 03/14] chore: Added .editorconfig --- .editorconfig | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..49e7a05 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,3 @@ +[*] +charset = utf-8 +insert_final_newline = true From ca5c77810e80d87f17c7f9806fabb28a3e05b6b8 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Sat, 15 Apr 2023 21:04:52 +0200 Subject: [PATCH 04/14] chore: Added build.yml --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..3321eb3 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: dotnet build + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + dotnet-version: [ '7.0.x' ] + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: '0' + - name: Setup .NET Core SDK ${{ matrix.dotnet-version }} + uses: actions/setup-dotnet@v3 + with: + dotnet-version: ${{ matrix.dotnet-version }} + - name: Restore .NET Packages + run: dotnet restore + - name: Build .NET Solution + run: dotnet build --configuration Release --no-restore + - name: Pack .NET Solution + run: dotnet pack --no-build --output pack/ + - name: Publish .NET Solution to GitHub Packages + continue-on-error: true + run: dotnet nuget push pack/* --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + - name: Publish .NET Solution to NuGet.org + continue-on-error: true + run: dotnet nuget push pack/* --api-key ${{ secrets.NUGET_ORG_KEY }} --source nuget + From 878fa2cc5502a0bb6fa7b0665a193f325e851505 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Sat, 15 Apr 2023 21:05:08 +0200 Subject: [PATCH 05/14] chore: Added Directory.Build.props --- Directory.Build.props | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Directory.Build.props diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..d5abf88 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,7 @@ + + + + git + https://github.com/escendit/Escendit.Tools.SourceLink.GitHub + + From 2ca88206c516fe2c3ac106130c4d3cd903269dea Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Sat, 15 Apr 2023 21:05:22 +0200 Subject: [PATCH 06/14] chore: Added Directory.Packages.props --- Directory.Packages.props | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Directory.Packages.props diff --git a/Directory.Packages.props b/Directory.Packages.props new file mode 100644 index 0000000..089c0e2 --- /dev/null +++ b/Directory.Packages.props @@ -0,0 +1,13 @@ + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + From b5dfec14f94d30e5f8c1c60f9ebd757bc7cd0828 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Sat, 15 Apr 2023 21:09:37 +0200 Subject: [PATCH 07/14] chore: Added Escendit.Tools.SourceLink.GitHub.csproj --- .../Escendit.Tools.SourceLink.GitHub.csproj | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/Escendit.Tools.SourceLink.GitHub/Escendit.Tools.SourceLink.GitHub.csproj diff --git a/src/Escendit.Tools.SourceLink.GitHub/Escendit.Tools.SourceLink.GitHub.csproj b/src/Escendit.Tools.SourceLink.GitHub/Escendit.Tools.SourceLink.GitHub.csproj new file mode 100644 index 0000000..c20c314 --- /dev/null +++ b/src/Escendit.Tools.SourceLink.GitHub/Escendit.Tools.SourceLink.GitHub.csproj @@ -0,0 +1,32 @@ + + + true + netstandard2.0;netstandard2.1 + $(NoWarn);NU5128 + true + false + false + Provides properties for SourceLink to simplify the integration with GitHub. + sourcelink;source;link;github;defaults + + + + runtime; build; native; contentfiles + runtime; build; native; contentfiles; analyzers; buildtransitive + + + runtime; build; native; contentfiles + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + + From cb7c161da101b5c594c6311bb8900c06cad5c762 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Sat, 15 Apr 2023 21:12:49 +0200 Subject: [PATCH 08/14] chore: Added Escendit.Tools.SourceLink.GitHub.props --- .../Escendit.Tools.SourceLink.GitHub.props | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/Escendit.Tools.SourceLink.GitHub/Escendit.Tools.SourceLink.GitHub.props diff --git a/src/Escendit.Tools.SourceLink.GitHub/Escendit.Tools.SourceLink.GitHub.props b/src/Escendit.Tools.SourceLink.GitHub/Escendit.Tools.SourceLink.GitHub.props new file mode 100644 index 0000000..35d6e09 --- /dev/null +++ b/src/Escendit.Tools.SourceLink.GitHub/Escendit.Tools.SourceLink.GitHub.props @@ -0,0 +1,8 @@ + + + + true + snupkg + true + + From e942e952f97c6442460a529b51009b61efc3e6cc Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Sat, 15 Apr 2023 21:13:00 +0200 Subject: [PATCH 09/14] chore: Updated Escendit.Tools.SourceLink.GitHub.sln --- Escendit.Tools.SourceLink.GitHub.sln | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Escendit.Tools.SourceLink.GitHub.sln b/Escendit.Tools.SourceLink.GitHub.sln index 58ea566..86f6aa2 100644 --- a/Escendit.Tools.SourceLink.GitHub.sln +++ b/Escendit.Tools.SourceLink.GitHub.sln @@ -3,6 +3,10 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{CFBA9EFD-D43A-4DDB-9DBF-6D0FDFB59537}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Escendit.Tools.SourceLink.GitHub", "src\Escendit.Tools.SourceLink.GitHub\Escendit.Tools.SourceLink.GitHub.csproj", "{EB9CA336-4D65-44DD-8EE3-EFECD88E4991}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -11,4 +15,13 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {EB9CA336-4D65-44DD-8EE3-EFECD88E4991} = {CFBA9EFD-D43A-4DDB-9DBF-6D0FDFB59537} + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {EB9CA336-4D65-44DD-8EE3-EFECD88E4991}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EB9CA336-4D65-44DD-8EE3-EFECD88E4991}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EB9CA336-4D65-44DD-8EE3-EFECD88E4991}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EB9CA336-4D65-44DD-8EE3-EFECD88E4991}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection EndGlobal From e10278e70813478f5200da98d375fb76c85b71c1 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Sat, 15 Apr 2023 21:13:09 +0200 Subject: [PATCH 10/14] chore: Added GitVersion.yml --- GitVersion.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 GitVersion.yml diff --git a/GitVersion.yml b/GitVersion.yml new file mode 100644 index 0000000..403b71c --- /dev/null +++ b/GitVersion.yml @@ -0,0 +1,4 @@ +branches: + master: + mode: ContinuousDeployment + tag: rc From dee565b53ce021dc8d646f079cf33f681c4b9915 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Sat, 15 Apr 2023 21:13:19 +0200 Subject: [PATCH 11/14] chore: Added global.json --- global.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 global.json diff --git a/global.json b/global.json new file mode 100644 index 0000000..70e3dcc --- /dev/null +++ b/global.json @@ -0,0 +1,5 @@ +{ + "sdk": { + "version": "7.0.100" + } +} From a3bdc387d15f6c48979ae363fded0e982ce9d437 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Sat, 15 Apr 2023 21:15:12 +0200 Subject: [PATCH 12/14] chore: Added nuget.config --- nuget.config | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 nuget.config diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..c620012 --- /dev/null +++ b/nuget.config @@ -0,0 +1,7 @@ + + + + + + + From 9ec0ea5a8404ffe92d36fd19f1092c44098bce0b Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Sat, 15 Apr 2023 21:15:29 +0200 Subject: [PATCH 13/14] chore: Updated README.md --- README.md | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aa2a27b..105c0b6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,36 @@ -# Escendit.Tools.SourceLink.GitHub -GitHub defaults for SourceLink +# NuGet Package: Escendit.Tools.SourceLink.GitHub +.NET NuGet package +that simplifies the process of integrating [SourceLink](https://github.com/dotnet/sourcelink) into your project. +SourceLink provides a mechanism for debugging optimized code +without sacrificing security by allowing you to use the actual source code for debugging, +rather than decompiled code. + +## Installation +To install `Escendit.Tools.SourceLink.GitHub`, +you can use the NuGet Package Manager or run the following command in the Package Manager Console: + +```shell +PM> Install-Package Escendit.Tools.SourceLink.GitHub +``` +Or you can search for "Escendit.Tools.SourceLink.GitHub" +in the NuGet Package Manager UI and install it from there. + +## Usage +`Escendit.Tools.SourceLink.GitHub` provides properties for SourceLink +that you can use in your .NET projects. +These default values are intended to simplify the process of integrating SourceLink into your project, +by source-linking files from GitHub repository to your NuGet package and can be overridden as needed. + +## Limitations +Using the current git technology stack, there are limitations in being able +to access source files of private repositories due to the security mechanisms in place. + +## Contributing +If you find a bug or have a feature request, please create an issue in the GitHub repository. + +To contribute code, fork the repository and submit a pull request. +Please ensure that your code follows the project's coding standards and is thoroughly tested. + +## License +This package is released under the MIT License. See the LICENSE.txt file for details. + From 279fc2415c89dd62cb5ab60fe489bab5bccc98b9 Mon Sep 17 00:00:00 2001 From: Simon Novak Date: Sat, 15 Apr 2023 21:18:36 +0200 Subject: [PATCH 14/14] chore: Updated Escendit.Tools.SourceLink.GitHub.csproj --- .../Escendit.Tools.SourceLink.GitHub.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Escendit.Tools.SourceLink.GitHub/Escendit.Tools.SourceLink.GitHub.csproj b/src/Escendit.Tools.SourceLink.GitHub/Escendit.Tools.SourceLink.GitHub.csproj index c20c314..ea49bc0 100644 --- a/src/Escendit.Tools.SourceLink.GitHub/Escendit.Tools.SourceLink.GitHub.csproj +++ b/src/Escendit.Tools.SourceLink.GitHub/Escendit.Tools.SourceLink.GitHub.csproj @@ -1,3 +1,4 @@ + true