Skip to content

Commit

Permalink
.NET 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
NN--- committed Feb 17, 2021
1 parent 8a699db commit 97b5593
Show file tree
Hide file tree
Showing 24 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions .azure-pipelines/templates/linux/compile.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
steps:
- task: UseDotNet@2
displayName: Use .NET Core SDK 3.1.x
displayName: Use .NET SDK 5.0.x
inputs:
packageType: sdk
version: 3.1.x
version: 5.0.x

- task: DotNetCoreCLI@2
displayName: Compile common code
Expand Down
4 changes: 2 additions & 2 deletions .azure-pipelines/templates/osx/compile.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
steps:
- task: UseDotNet@2
displayName: Use .NET Core SDK 3.1.x
displayName: Use .NET SDK 5.0.x
inputs:
packageType: sdk
version: 3.1.x
version: 5.0.x

- task: DotNetCoreCLI@2
displayName: Compile common code and macOS Helpers
Expand Down
4 changes: 2 additions & 2 deletions .azure-pipelines/templates/osx/pack.signed/step3-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ steps:
downloadPath: '$(Build.StagingDirectory)/payload'

- task: UseDotNet@2
displayName: Use .NET Core SDK 3.1.x
displayName: Use .NET SDK 5.0.x
inputs:
packageType: sdk
version: 3.1.x
version: 5.0.x

- script: dotnet tool install --global nbgv
displayName: Install Nerdbank.GitVersioning tool
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/templates/osx/pack.signed/step5-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ steps:
artifactName: 'tmp.macsymbols'
downloadPath: '$(Build.StagingDirectory)/symbols'

# Skip notarization until we can preserve the hardened runtime bit and sign the .NET Core runtime bits
# Skip notarization until we can preserve the hardened runtime bit and sign the .NET runtime bits
# Tracked: https://github.com/microsoft/Git-Credential-Manager-Core/issues/108
#- script: src/osx/SignFiles.Mac/notarize-pkg.sh -id "$(AppleId)" -p "$(AppleIdPassword)" -pkg "$(Build.StagingDirectory)"/pkg/*.pkg
# displayName: Notarize and staple installer package
Expand Down
4 changes: 2 additions & 2 deletions .azure-pipelines/templates/windows/compile.signed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ steps:
signType: '$(SignType)'

- task: UseDotNet@2
displayName: Use .NET Core SDK 3.1.x
displayName: Use .NET SDK 5.0.x
inputs:
packageType: sdk
version: 3.1.x
version: 5.0.x

- task: NuGetToolInstaller@0
displayName: Install NuGet tool >=4.3.0
Expand Down
4 changes: 2 additions & 2 deletions .azure-pipelines/templates/windows/compile.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
steps:
- task: UseDotNet@2
displayName: Use .NET Core SDK 3.1.x
displayName: Use .NET SDK 5.0.x
inputs:
packageType: sdk
version: 3.1.x
version: 5.0.x

- task: DotNetCoreCLI@2
displayName: Restore packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-installers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
with:
fetch-depth: 0 # Indicate full history so Nerdbank.GitVersioning works.

- name: Setup .NET Core
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.302
dotnet-version: 5.0.103

- name: Install dependencies
run: dotnet restore --force
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-signed-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
with:
fetch-depth: 0 # Indicate full history so Nerdbank.GitVersioning works.

- name: Setup .NET Core
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.302
dotnet-version: 5.0.103

- name: Install dependencies
run: dotnet restore --force
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
with:
fetch-depth: 0 # Indicate full history so Nerdbank.GitVersioning works.

- name: Setup .NET Core
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.302
dotnet-version: 5.0.103

- name: Install dependencies
run: dotnet restore
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/

# .NET Core
# .NET
project.lock.json
project.fragment.lock.json
artifacts/
Expand Down
6 changes: 3 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/out/shared/Git-Credential-Manager/bin/Debug/netcoreapp3.1/git-credential-manager-core.dll",
"program": "${workspaceFolder}/out/shared/Git-Credential-Manager/bin/Debug/net5.0/git-credential-manager-core.dll",
"args": ["get"],
"cwd": "${workspaceFolder}/out/shared/Git-Credential-Manager",
"console": "integratedTerminal",
Expand All @@ -22,14 +22,14 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/out/shared/Git-Credential-Manager/bin/Debug/netcoreapp3.1/git-credential-manager-core.dll",
"program": "${workspaceFolder}/out/shared/Git-Credential-Manager/bin/Debug/net5.0/git-credential-manager-core.dll",
"args": ["store"],
"cwd": "${workspaceFolder}/out/shared/Git-Credential-Manager",
"console": "integratedTerminal",
"stopAtEntry": false,
},
{
"name": ".NET Core Attach",
"name": ".NET Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ master|[![Build Status](https://mseng.visualstudio.com/AzureDevOps/_apis/build/s

---

[Git Credential Manager Core](https://github.com/microsoft/Git-Credential-Manager-Core) (GCM Core) is a secure Git credential helper built on [.NET Core](https://microsoft.com/dotnet) that runs on Windows and macOS. Linux support is in an early preview.
[Git Credential Manager Core](https://github.com/microsoft/Git-Credential-Manager-Core) (GCM Core) is a secure Git credential helper built on [.NET](https://microsoft.com/dotnet) that runs on Windows and macOS. Linux support is in an early preview.

Compared to Git's [built-in credential helpers]((https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage)) (Windows: wincred, macOS: osxkeychain, Linux: gnome-keyring) which provides single-factor authentication support working on any HTTP-enabled Git repository, GCM Core provides multi-factor authentication support for [Azure DevOps](https://dev.azure.com/), Azure DevOps Server (formerly Team Foundation Server), GitHub, and Bitbucket.

Expand Down
4 changes: 2 additions & 2 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ library (C#). The library targets .NET Standard as well as .NET Framework.
> browser auth pop-up on Windows platforms.
>
> There are extension points that now exist in MSAL.NET meaning we can plug-in
> our own browser pop-up handling code on .NET Core meaning both Windows and
> our own browser pop-up handling code on .NET meaning both Windows and
> Mac. We haven't yet gotten around to exploring this.
>
> See [this](https://github.com/microsoft/Git-Credential-Manager-Core/issues/113)
> issue for more information.
The entry-point for GCM Core can be found in the `Git-Credential-Manager`
project, a console application that targets both .NET Core and .NET Framework.
project, a console application that targets both .NET and .NET Framework.
This project emits the `git-credential-manager-core(.exe)` executable, and
contains very little code - registration of all supported host providers and
running the `Application` object found in `Microsoft.Git.CredentialManager`.
Expand Down
4 changes: 2 additions & 2 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ For example:

```shell
$ GCM_TRACE=1 git-credential-manager-core version
> 18:47:56.526712 ...er/Application.cs:69 trace: [RunInternalAsync] Git Credential Manager version 2.0.124-beta+e1ebbe1517 (macOS, .NET Core 3.1.3) 'version'
> Git Credential Manager version 2.0.124-beta+e1ebbe1517 (macOS, .NET Core 3.1.3)
> 18:47:56.526712 ...er/Application.cs:69 trace: [RunInternalAsync] Git Credential Manager version 2.0.124-beta+e1ebbe1517 (macOS, .NET 5.0) 'version'
> Git Credential Manager version 2.0.124-beta+e1ebbe1517 (macOS, .NET 5.0)
```
2 changes: 1 addition & 1 deletion src/linux/Packaging.Linux/Packaging.Linux.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/linux/Packaging.Linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ GCM_SRC="$SRC/shared/Git-Credential-Manager"
PROJ_OUT="$OUT/linux/Packaging.Linux"

# Build parameters
FRAMEWORK=netcoreapp3.1
FRAMEWORK=net5.0
RUNTIME=linux-x64

# Perform pre-execution checks
Expand Down
2 changes: 1 addition & 1 deletion src/osx/Installer.Mac/Installer.Mac.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/osx/Installer.Mac/layout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ INSTALLER_SRC="$SRC/osx/Installer.Mac"
GCM_SRC="$SRC/shared/Git-Credential-Manager"

# Build parameters
FRAMEWORK=netcoreapp3.1
FRAMEWORK=net5.0
RUNTIME=osx-x64

# Parse script arguments
Expand Down
2 changes: 1 addition & 1 deletion src/osx/SignFiles.Mac/SignFiles.Mac.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<!-- MicroBuild hack: override OutDir to make all files we want to sign under it. -->
<OutDir>$(RootDir)</OutDir>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<LangVersion>latest</LangVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
<TargetFrameworks Condition="'$(OSPlatform)'=='windows'">net472;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net5.0</TargetFrameworks>
<TargetFrameworks Condition="'$(OSPlatform)'=='windows'">net472;net5.0</TargetFrameworks>
<RuntimeIdentifiers>win-x86;osx-x64;linux-x64</RuntimeIdentifiers>
<PlatformTarget Condition="'$(OSPlatform)'=='windows'">x86</PlatformTarget>
<AssemblyName>git-credential-manager-core</AssemblyName>
Expand Down
2 changes: 1 addition & 1 deletion src/shared/GitHub.Tests/GitHub.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<LangVersion>latest</LangVersion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<LangVersion>latest</LangVersion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<LangVersion>latest</LangVersion>
Expand Down

0 comments on commit 97b5593

Please sign in to comment.