Merge remote-tracking branch 'origin/main' into criemen/bazel-csharp

This commit is contained in:
Cornelius Riemenschneider
2024-05-23 10:21:19 +02:00
276 changed files with 6638 additions and 6027 deletions

View File

@@ -77,6 +77,14 @@ class Generator:
self.projectNameIn, '--output', self.projectDirIn])
remove_files(self.projectDirIn, '.cs')
# Clear possibly inherited Directory.Build.props and Directory.Build.targets:
with open(os.path.join(self.workDir, 'Directory.Build.props'), 'w') as f:
f.write('<Project>\n')
f.write('</Project>\n')
with open(os.path.join(self.workDir, 'Directory.Build.targets'), 'w') as f:
f.write('<Project>\n')
f.write('</Project>\n')
def run_cmd(self, cmd, msg="Failed to run command"):
run_cmd_cwd(cmd, self.workDir, msg)