Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit ac2f474

Browse files
committed
Always use GitHubVS_ClientId envvar
Users can set this up once and won't need to modify the ApiClientConfiguration_User.cs file in their working directory.
1 parent b6a6820 commit ac2f474

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

src/GitHub.Api/ApiClientConfiguration_User.cs

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

src/GitHub.Api/GitHub.Api.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<Import Project="$(SolutionDir)\src\common\signing.props" />
99

10-
<Target Name="AddClientSecret" BeforeTargets="BeforeCompile" Condition="$(Buildtype) == 'Internal'"
10+
<Target Name="AddClientSecret" BeforeTargets="BeforeCompile"
1111
Inputs="$(MSBuildThisFileFullPath)" Outputs="$(IntermediateOutputPath)ApiClientConfiguration_User.cs">
1212
<Error Condition="'$(GitHubVS_ClientId)' == ''" Text="Please define a 'GitHubVS_ClientId' environment variable" />
1313
<Error Condition="'$(GitHubVS_ClientSecret)' == ''" Text="Please define a 'GitHubVS_ClientSecret' environment variable" />
@@ -30,7 +30,6 @@ namespace GitHub.Api
3030
</GeneratedText>
3131
</PropertyGroup>
3232
<ItemGroup>
33-
<Compile Remove="ApiClientConfiguration_User.cs" />
3433
<Compile Include="$(GeneratedFilePath)" />
3534
</ItemGroup>
3635
<WriteLinesToFile File="$(GeneratedFilePath)" Lines="$(GeneratedText)" WriteOnlyWhenDifferent="true" Overwrite="true" />

src/common/signing.props

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<PropertyGroup>
4-
<BuildType Condition="Exists('..\..\script\key.snk')">Internal</BuildType>
5-
</PropertyGroup>
6-
73
<PropertyGroup>
84
<AssemblyOriginatorKeyFile>..\..\key.snk</AssemblyOriginatorKeyFile>
95
<SignAssembly>true</SignAssembly>

0 commit comments

Comments
 (0)