diff --git a/Automation/gen_csproj.py b/Automation/gen_csproj.py
index bda910b..fecdc0b 100755
--- a/Automation/gen_csproj.py
+++ b/Automation/gen_csproj.py
@@ -10,7 +10,7 @@ def getAssemblyReferences(path):
asmDir = Path(path)
result = list()
for child in asmDir.iterdir():
- if child.is_file() and re.search(DLL_EXCLUSIONS_REGEX, str(child), re.I) is None:
+ if child.is_file() and re.search(DLL_EXCLUSIONS_REGEX, str(child), re.I) is None and str(child).lower().endswith(".dll"):
result.append(str(child).replace("\\", "/"))
return result
@@ -24,8 +24,7 @@ def buildReferencesXml(path):
+ " ..\\" + asmPath.replace("/", "\\") + "\n" \
+ " \n"
result.append(xml)
- return "".join(result)
- #return "\n \n" + "".join(result) + " \n"
+ return "\n \n" + "".join(result) + " \n"
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Generate GamecraftModdingAPI.csproj")
@@ -34,22 +33,21 @@ if __name__ == "__main__":
print("Building Assembly references")
asmXml = buildReferencesXml("../ref/Gamecraft_Data/Managed")
- print(asmXml)
+ # print(asmXml)
with open("../GamecraftModdingAPI/GamecraftModdingAPI.csproj", "r") as xmlFile:
print("Parsing GamecraftModdingAPI.csproj")
fileStr = xmlFile.read()
- print(fileStr)
+ # print(fileStr)
depsStart = re.search(r"\
+
..\ref\Gamecraft_Data\Managed\IllusionInjector.dll
..\..\ref\Gamecraft_Data\Managed\IllusionInjector.dll
-
- ..\ref\Gamecraft_Data\Managed\IllusionInjector.pdb
- ..\..\ref\Gamecraft_Data\Managed\IllusionInjector.pdb
-
..\ref\Gamecraft_Data\Managed\IllusionPlugin.dll
..\..\ref\Gamecraft_Data\Managed\IllusionPlugin.dll
-
- ..\ref\Gamecraft_Data\Managed\IllusionPlugin.pdb
- ..\..\ref\Gamecraft_Data\Managed\IllusionPlugin.pdb
-
..\ref\Gamecraft_Data\Managed\JWT.dll
..\..\ref\Gamecraft_Data\Managed\JWT.dll
@@ -806,7 +805,7 @@
..\ref\Gamecraft_Data\Managed\VisualProfiler.dll
..\..\ref\Gamecraft_Data\Managed\VisualProfiler.dll
-
+