Skip to content

fix: Updating test setup to build webhost #1649

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 13, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Updating test setup to build webhost
  • Loading branch information
gavin-aguiar committed Mar 10, 2025
commit 79e7b0382fef4f85b4db54291d2bc7a18d20fc18
11 changes: 8 additions & 3 deletions tests/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,13 @@ def compile_webhost(webhost_dir):
print(f"Compiling Functions Host from {webhost_dir}")
try:
subprocess.run(
["dotnet", "build", "WebJobs.Script.sln", "-o", "bin",
"/p:TreatWarningsAsErrors=false"],
[
"dotnet", "build", "WebJobs.Script.sln",
"/m:1", # Disable parallel MSBuild
"/nodeReuse:false", # Prevent MSBuild node reuse
f"--property:OutputPath={webhost_dir}/bin", # Set output folder
"/p:TreatWarningsAsErrors=false"
],
check=True,
cwd=str(webhost_dir),
stdout=sys.stdout,
Expand All @@ -120,7 +125,7 @@ def compile_webhost(webhost_dir):
except subprocess.CalledProcessError:
print(
f"Failed to compile webhost in {webhost_dir}. "
".NET Core SDK is required to build the solution. "
"A compatible .NET Core SDK is required to build the solution. "
"Please visit https://aka.ms/dotnet-download",
file=sys.stderr,
)
Expand Down
Loading