Browse Source

Fix dotnet format

It was failing due to generated files being referenced in
.NET projects but the files are missing because they are
generated by `godot --generate-mono-glue` or
`build_assemblies.py`.
Raul Santos 2 years ago
parent
commit
7def4c84be
1 changed files with 7 additions and 0 deletions
  1. 7 0
      misc/scripts/dotnet_format.sh

+ 7 - 0
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.*' |