path combine instead of string concat (#429)

This commit is contained in:
Boshi Lian
2020-04-22 09:09:52 -07:00
committed by GitHub
parent 732653096d
commit 56b7f76d6c

View File

@@ -102,8 +102,8 @@ namespace KubernetesWatchGenerator
&& !blacklistedOperations.Contains(o.Operation.OperationId)).ToArray();
// Render.
Render.FileToFile("IKubernetes.Watch.cs.template", watchOperations, $"{outputDirectory}IKubernetes.Watch.cs");
Render.FileToFile("Kubernetes.Watch.cs.template", watchOperations, $"{outputDirectory}Kubernetes.Watch.cs");
Render.FileToFile("IKubernetes.Watch.cs.template", watchOperations, Path.Combine(outputDirectory, "IKubernetes.Watch.cs"));
Render.FileToFile("Kubernetes.Watch.cs.template", watchOperations, Path.Combine(outputDirectory, "Kubernetes.Watch.cs"));
// Generate the interface declarations
var skippedTypes = new HashSet<string>()