Skip to content

Commit 05cdbfd

Browse files
committed
Return to building 64-bit in NetCore and NetFx on Windows
Now that we've moved the Microsoft authentication helper in-process we no longer have a need to force all entry executables to be the same bit-width. The GitHub authentication helper is still .NET Framework (as we're targeting .NET Core 2.x still) and using 32-bit WinForms. However that helper does not make use of the LibGit2 native bits (by virtue of not instantiating the `CommandContext` type).
1 parent 3a99042 commit 05cdbfd

File tree

5 files changed

+8
-14
lines changed

5 files changed

+8
-14
lines changed

.azure-pipelines/templates/windows/pack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
steps:
22
- script: |
33
xcopy "out\windows\Installer.Windows\bin\$(configuration)\net461" "$(Build.StagingDirectory)\publish\"
4-
xcopy "out\windows\Payload.Windows\bin\$(configuration)\net461\win-x86" "$(Build.StagingDirectory)\publish\payload\"
4+
xcopy "out\windows\Payload.Windows\bin\$(configuration)\net461\win-x64" "$(Build.StagingDirectory)\publish\payload\"
55
mkdir "$(Build.StagingDirectory)\publish\payload.sym\"
66
move "$(Build.StagingDirectory)\publish\payload\*.pdb" "$(Build.StagingDirectory)\publish\payload.sym\"
77
displayName: Prepare final build artifact

src/shared/Git-Credential-Manager/Git-Credential-Manager.csproj

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp2.1</TargetFramework>
6-
<TargetFramework Condition="'$(OSPlatform)'=='windows'">net461</TargetFramework>
7-
<RuntimeIdentifiers>win-x86;osx-x64</RuntimeIdentifiers>
5+
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
6+
<TargetFrameworks Condition="'$(OSPlatform)'=='windows'">net461;netcoreapp2.1</TargetFrameworks>
7+
<RuntimeIdentifiers>win-x64;osx-x64</RuntimeIdentifiers>
88
<AssemblyName>git-credential-manager-core</AssemblyName>
99
<RootNamespace>Microsoft.Git.CredentialManager</RootNamespace>
1010
<ApplicationIcon>$(RepoAssetsPath)gcmicon.ico</ApplicationIcon>
@@ -13,12 +13,6 @@
1313
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
1414
</PropertyGroup>
1515

16-
<!-- On Windows we target 32-bit because the WinForms authentication helpers are 32-bit
17-
and also need to use the native libgit2 library (we use the 32-bit version on Windows) -->
18-
<PropertyGroup Condition="'$(OSPlatform)'=='windows'">
19-
<Prefer32Bit>true</Prefer32Bit>
20-
</PropertyGroup>
21-
2216
<ItemGroup>
2317
<ProjectReference Include="..\GitHub\GitHub.csproj" />
2418
<ProjectReference Include="..\Microsoft.AzureRepos\Microsoft.AzureRepos.csproj" />

src/windows/Installer.Windows/Installer.Windows.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PropertyGroup>
66
<TargetFramework>net461</TargetFramework>
77
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
8-
<PayloadPath>$(PlatformOutPath)Payload.Windows\bin\$(Configuration)\net461\win-x86</PayloadPath>
8+
<PayloadPath>$(PlatformOutPath)Payload.Windows\bin\$(Configuration)\net461\win-x64</PayloadPath>
99
<EnableDefaultItems>false</EnableDefaultItems>
1010
</PropertyGroup>
1111

@@ -29,7 +29,7 @@
2929
before we attempt to sign any files or validate they exist. -->
3030
<Target Name="CreateFilesToSignItems" DependsOnTargets="GetBuildVersion" BeforeTargets="PrepareForRun">
3131
<ItemGroup>
32-
<FilesToSign Include="$(OutDir)gcmcore-windows-x86-$(BuildVersion).exe">
32+
<FilesToSign Include="$(OutDir)gcmcore-win-x64-$(BuildVersion).exe">
3333
<Authenticode>Microsoft400</Authenticode>
3434
<InProject>false</InProject>
3535
</FilesToSign>

src/windows/Installer.Windows/Setup.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ AppCopyright={#GcmCopyright}
4747
AppReadmeFile={#GcmReadme}
4848
VersionInfoVersion={#GcmVersion}
4949
LicenseFile={#GcmRepoRoot}\LICENSE
50-
OutputBaseFilename=gcmcore-windows-x86-{#GcmVersion}
50+
OutputBaseFilename=gcmcore-win-x64-{#GcmVersion}
5151
DefaultDirName={pf}\{#GcmName}
5252
Compression=lzma2
5353
SolidCompression=yes

src/windows/Payload.Windows/Payload.Windows.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<PropertyGroup>
66
<TargetFramework>net461</TargetFramework>
7-
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
7+
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
88
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
99
</PropertyGroup>
1010

0 commit comments

Comments
 (0)