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

Commit 7ea31d3

Browse files
committed
Allow user to change GitHubVS_ClientId
Ensure that build will pick up changes to GitHubVS_ClientId.
1 parent 024fc1e commit 7ea31d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/GitHub.Api/GitHub.Api.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
<Import Project="$(SolutionDir)\src\common\signing.props" />
99

1010
<Target Name="AddClientSecret" BeforeTargets="BeforeCompile"
11-
Inputs="$(MSBuildThisFileFullPath)" Outputs="$(IntermediateOutputPath)ApiClientConfiguration_User.cs">
12-
<Error Condition="'$(GitHubVS_ClientId)' == ''" Text="Please define a 'GitHubVS_ClientId' environment variable" />
13-
<Error Condition="'$(GitHubVS_ClientSecret)' == ''" Text="Please define a 'GitHubVS_ClientSecret' environment variable" />
11+
Inputs="$(MSBuildThisFileFullPath)" Outputs="$(IntermediateOutputPath)ApiClientConfiguration.$(GitHubVS_ClientId).cs">
12+
<Error Condition="'$(GitHubVS_ClientId)' == '' OR '$(GitHubVS_ClientSecret)' == ''"
13+
Text="Please define 'GitHubVS_ClientId' and 'GitHubVS_ClientSecret' environment variables and restart Visual Studio" />
1414
<PropertyGroup>
15-
<GeneratedFilePath>$(IntermediateOutputPath)ApiClientConfiguration_User.cs</GeneratedFilePath>
15+
<GeneratedFilePath>$(IntermediateOutputPath)ApiClientConfiguration.$(GitHubVS_ClientId).cs</GeneratedFilePath>
1616
<GeneratedText>
1717
<![CDATA[
1818
namespace GitHub.Api

0 commit comments

Comments
 (0)