Skip to content

Commit 05270ea

Browse files
committed
prevent console window launching during msbuild task
1 parent a8e90ee commit 05270ea

File tree

4 files changed

+31
-6
lines changed

4 files changed

+31
-6
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"class": "Sample.Client.GitHub.GitHubClient",
3-
,k "schema": "schema.json"
3+
"schema": "schema.json",
4+
"root":true
45
}

Samples/ClientSample/Client/GitHubTypescript/generated.ts

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export default class GitHubTsClient {
4545
viewerHasStarred
4646
}
4747
}
48-
}`,
48+
}
49+
`,
4950
variables : {
5051
repositoyId : repositoyId ,
5152
}
@@ -75,7 +76,8 @@ export default class GitHubTsClient {
7576
login,
7677
bio,
7778
}
78-
}`,
79+
}
80+
`,
7981
variables : {
8082
}
8183
})
@@ -118,7 +120,8 @@ export default class GitHubTsClient {
118120
}
119121
}
120122
}
121-
}`,
123+
}
124+
`,
122125
variables : {
123126
type : type ,
124127
query : query ,
@@ -163,7 +166,8 @@ export default class GitHubTsClient {
163166
}
164167
}
165168
}
166-
}`,
169+
}
170+
`,
167171
variables : {
168172
login : login ,
169173
repoCount : repoCount ,
@@ -323,6 +327,7 @@ if(json["nodes"]){
323327

324328
export class SearchResultItemResult {
325329
__typename :string;
330+
author? :ActorResult;
326331

327332
static fromJS(json:any):SearchResultItemResult{
328333
if(json == null || json == undefined){
@@ -332,6 +337,23 @@ export class SearchResultItemResult {
332337
var result = new SearchResultItemResult();
333338

334339
result.__typename = json["__typename"];
340+
result.author= ActorResult.fromJS(json["author"]);
341+
342+
return result;
343+
}
344+
}
345+
346+
export class ActorResult {
347+
login :string;
348+
349+
static fromJS(json:any):ActorResult{
350+
if(json == null || json == undefined){
351+
return null;
352+
}
353+
354+
var result = new ActorResult();
355+
356+
result.login = json["login"];
335357

336358
return result;
337359
}

Samples/ClientSample/Client/GitHubTypescript/gqlsettings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"class": "Sample.Client.GitHub.GitHubTS",
33
"output": "generated.ts", // this is relative to this file
44
"format": "ts",
5-
"schema": "schema.json"
5+
"schema": "schema.json",
6+
"root":true
67
}

Tocsoft.GraphQLCodeGen.MsBuild/GenerateGraphQLClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public override bool Execute()
7878
Process process = Process.Start(new ProcessStartInfo(realexe, arguments)
7979
{
8080
UseShellExecute = false,
81+
CreateNoWindow = true,
8182
RedirectStandardOutput = true,
8283
RedirectStandardError = true
8384
});

0 commit comments

Comments
 (0)