From 97f4e236defedc2c57062c71b29bc66a5564c0b5 Mon Sep 17 00:00:00 2001 From: Nikolay Borisenko Date: Fri, 6 Oct 2023 21:06:56 +0300 Subject: [PATCH] [dotnet] Mark cdp source as auto-generated to be more friendly with tooling --- .../src/generator/Templates/DevToolsSessionDomains.hbs | 1 + .../dotnet/devtools/src/generator/Templates/command.hbs | 1 + third_party/dotnet/devtools/src/generator/Templates/domain.hbs | 1 + third_party/dotnet/devtools/src/generator/Templates/event.hbs | 3 ++- .../dotnet/devtools/src/generator/Templates/project.hbs | 3 ++- .../dotnet/devtools/src/generator/Templates/type-enum.hbs | 1 + .../dotnet/devtools/src/generator/Templates/type-hash.hbs | 3 ++- .../dotnet/devtools/src/generator/Templates/type-object.hbs | 3 ++- 8 files changed, 12 insertions(+), 4 deletions(-) diff --git a/third_party/dotnet/devtools/src/generator/Templates/DevToolsSessionDomains.hbs b/third_party/dotnet/devtools/src/generator/Templates/DevToolsSessionDomains.hbs index 02658ac0f90d7..fc88ce6ec2241 100644 --- a/third_party/dotnet/devtools/src/generator/Templates/DevToolsSessionDomains.hbs +++ b/third_party/dotnet/devtools/src/generator/Templates/DevToolsSessionDomains.hbs @@ -1,3 +1,4 @@ +// namespace {{rootNamespace}} { using System; diff --git a/third_party/dotnet/devtools/src/generator/Templates/command.hbs b/third_party/dotnet/devtools/src/generator/Templates/command.hbs index e5ccc3dc124e2..d6bbd80320fec 100644 --- a/third_party/dotnet/devtools/src/generator/Templates/command.hbs +++ b/third_party/dotnet/devtools/src/generator/Templates/command.hbs @@ -1,3 +1,4 @@ +// namespace {{rootNamespace}}.{{domain.Name}} { using Newtonsoft.Json; diff --git a/third_party/dotnet/devtools/src/generator/Templates/domain.hbs b/third_party/dotnet/devtools/src/generator/Templates/domain.hbs index b7b46a2540645..e644657260771 100644 --- a/third_party/dotnet/devtools/src/generator/Templates/domain.hbs +++ b/third_party/dotnet/devtools/src/generator/Templates/domain.hbs @@ -1,3 +1,4 @@ +// namespace {{rootNamespace}}.{{domain.Name}} { using System; diff --git a/third_party/dotnet/devtools/src/generator/Templates/event.hbs b/third_party/dotnet/devtools/src/generator/Templates/event.hbs index d9298e694c325..666bf7d6cf909 100644 --- a/third_party/dotnet/devtools/src/generator/Templates/event.hbs +++ b/third_party/dotnet/devtools/src/generator/Templates/event.hbs @@ -1,4 +1,5 @@ -namespace {{rootNamespace}}.{{domain.Name}} +// +namespace {{rootNamespace}}.{{domain.Name}} { using System; using Newtonsoft.Json; diff --git a/third_party/dotnet/devtools/src/generator/Templates/project.hbs b/third_party/dotnet/devtools/src/generator/Templates/project.hbs index 604484cee6f5c..1b8a4fa3994b7 100644 --- a/third_party/dotnet/devtools/src/generator/Templates/project.hbs +++ b/third_party/dotnet/devtools/src/generator/Templates/project.hbs @@ -1,4 +1,5 @@ - +// + net45;net46;net47;netstandard2.0 true diff --git a/third_party/dotnet/devtools/src/generator/Templates/type-enum.hbs b/third_party/dotnet/devtools/src/generator/Templates/type-enum.hbs index e7230cdb7a26f..ee9c77d4c8e2a 100644 --- a/third_party/dotnet/devtools/src/generator/Templates/type-enum.hbs +++ b/third_party/dotnet/devtools/src/generator/Templates/type-enum.hbs @@ -1,3 +1,4 @@ +// namespace {{rootNamespace}}.{{domain.Name}} { using Newtonsoft.Json; diff --git a/third_party/dotnet/devtools/src/generator/Templates/type-hash.hbs b/third_party/dotnet/devtools/src/generator/Templates/type-hash.hbs index 08440e9edbc67..ab16e6b5f73ce 100644 --- a/third_party/dotnet/devtools/src/generator/Templates/type-hash.hbs +++ b/third_party/dotnet/devtools/src/generator/Templates/type-hash.hbs @@ -1,4 +1,5 @@ -namespace {{rootNamespace}}.{{domain.Name}} +// +namespace {{rootNamespace}}.{{domain.Name}} { using System.Collections.Generic; diff --git a/third_party/dotnet/devtools/src/generator/Templates/type-object.hbs b/third_party/dotnet/devtools/src/generator/Templates/type-object.hbs index c0d4e25759e27..44fd327953027 100644 --- a/third_party/dotnet/devtools/src/generator/Templates/type-object.hbs +++ b/third_party/dotnet/devtools/src/generator/Templates/type-object.hbs @@ -1,4 +1,5 @@ -namespace {{rootNamespace}}.{{domain.Name}} +// +namespace {{rootNamespace}}.{{domain.Name}} { using Newtonsoft.Json;