This repository was archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathGitHub.Api.csproj
65 lines (59 loc) · 2.76 KB
/
GitHub.Api.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net46</TargetFramework>
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<PropertyGroup>
<!-- Use a default client ID/secret for testing -->
<!-- https://github.com/organizations/editor-tools/settings/applications/620133 -->
<GitHubVS_ClientId Condition="'$(GitHubVS_ClientId)' == ''">2454a3e6102fd41cc212</GitHubVS_ClientId>
<GitHubVS_ClientSecret Condition="'$(GitHubVS_ClientSecret)' == ''">2157c138e970165d955d09562230afcfbcda23f2</GitHubVS_ClientSecret>
</PropertyGroup>
<Import Project="$(SolutionDir)\src\common\signing.props" />
<Target Name="AddClientSecret" BeforeTargets="BeforeCompile"
Inputs="$(MSBuildThisFileFullPath)" Outputs="$(IntermediateOutputPath)ApiClientConfiguration.$(GitHubVS_ClientId).cs">
<Error Condition="'$(GitHubVS_ClientId)' == '' OR '$(GitHubVS_ClientSecret)' == ''"
Text="Please define 'GitHubVS_ClientId' and 'GitHubVS_ClientSecret' environment variables (restart Visual Studio if necessary)" />
<PropertyGroup>
<GeneratedFilePath>$(IntermediateOutputPath)ApiClientConfiguration.$(GitHubVS_ClientId).cs</GeneratedFilePath>
<GeneratedText>
<![CDATA[
namespace GitHub.Api
{
static partial class ApiClientConfiguration
{
static partial void Configure()
{
ClientId = "$(GitHubVS_ClientId)"%3b
ClientSecret = "$(GitHubVS_ClientSecret)"%3b
}
}
}
]]>
</GeneratedText>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(GeneratedFilePath)" />
</ItemGroup>
<WriteLinesToFile File="$(GeneratedFilePath)" Lines="$(GeneratedText)" WriteOnlyWhenDifferent="true" Overwrite="true" />
</Target>
<ItemGroup>
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Runtime.Caching" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\submodules\octokit.graphql.net\Octokit.GraphQL.Core\Octokit.GraphQL.Core.csproj" />
<ProjectReference Include="..\..\submodules\octokit.graphql.net\Octokit.GraphQL\Octokit.GraphQL.csproj" />
<ProjectReference Include="..\..\submodules\octokit.net\Octokit\Octokit.csproj" />
<ProjectReference Include="..\CredentialManagement\CredentialManagement.csproj" />
<ProjectReference Include="..\GitHub.Exports\GitHub.Exports.csproj" />
<ProjectReference Include="..\GitHub.Extensions\GitHub.Extensions.csproj" />
<ProjectReference Include="..\GitHub.Logging\GitHub.Logging.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>
</Project>