summaryrefslogtreecommitdiff
path: root/misc/scripts/dotnet_format.sh
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-10-12 17:36:04 +0200
committerGitHub <noreply@github.com>2022-10-12 17:36:04 +0200
commitaf35b97ecf154346e69aa87bcae6cd1ebacc7bc3 (patch)
tree6788d4b1998f98680cf8deb51f5fadd7b03d258a /misc/scripts/dotnet_format.sh
parent15b68f760149aa71368e9aa35255690fd75427e6 (diff)
parent7def4c84be2c0a7051cd76ffef247017ae76c586 (diff)
Merge pull request #67306 from raulsntos/dotnet/format2
Diffstat (limited to 'misc/scripts/dotnet_format.sh')
-rwxr-xr-xmisc/scripts/dotnet_format.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/scripts/dotnet_format.sh b/misc/scripts/dotnet_format.sh
index 645737f419..cc34137a37 100755
--- a/misc/scripts/dotnet_format.sh
+++ b/misc/scripts/dotnet_format.sh
@@ -5,6 +5,13 @@
set -uo pipefail
+# Create dummy generated files.
+echo "<Project />" > modules/mono/SdkPackageVersions.props
+mkdir -p modules/mono/glue/GodotSharp/GodotSharp/Generated
+echo "<Project />" > modules/mono/glue/GodotSharp/GodotSharp/Generated/GeneratedIncludes.props
+mkdir -p modules/mono/glue/GodotSharp/GodotSharpEditor/Generated
+echo "<Project />" > modules/mono/glue/GodotSharp/GodotSharpEditor/Generated/GeneratedIncludes.props
+
# Loops through all C# projects tracked by Git.
git ls-files -- '*.csproj' \
':!:.git/*' ':!:thirdparty/*' ':!:platform/android/java/lib/src/com/google/*' ':!:*-so_wrap.*' |