MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / generate_sln

Function generate_sln

scripts/inspect-unity.py:70–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68
69
70def generate_sln() -> Path:
71 sln_path = TEST_PROJECT / "TestProject.sln"
72 subprocess.run(
73 ["dotnet", "new", "sln", "--name", "TestProject", "--output", str(TEST_PROJECT)],
74 check=True,
75 capture_output=True,
76 )
77 for csproj in find_csproj_files():
78 subprocess.run(
79 ["dotnet", "sln", str(sln_path), "add", str(csproj)],
80 check=True,
81 capture_output=True,
82 )
83 print(f"Generated {sln_path.relative_to(ROOT)}")
84 return sln_path
85
86
87# ── inspectcode ──────────────────────────────────────────────────────────

Callers 1

mainFunction · 0.85

Calls 2

find_csproj_filesFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected