Skip to content
Draft
Changes from all commits
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
12 changes: 11 additions & 1 deletion Formula/d/dotnet.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class Dotnet < Formula
desc ".NET Core"
homepage "https://dotnet.microsoft.com/"
Expand Down Expand Up @@ -83,7 +83,13 @@
'"true"'
end

args = ["--clean-while-building", "--source-build", "--with-system-libs", "brotli+libunwind+rapidjson+zlib"]
args = %w[
--clean-while-building
--source-build
--with-system-libs
brotli+libunwind+rapidjson+zlib
/p:PortableBuild=true
]
if build.stable?
args += ["--release-manifest", "release.json"]
odie "Update release.json resource!" if resource("release.json").version != version
Expand Down Expand Up @@ -117,7 +123,7 @@
CAVEATS
end

test do

Check warning on line 126 in Formula/d/dotnet.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

`brew test --verbose dotnet` failed on macOS Sonoma (14)!

/usr/local/Homebrew/Library/Homebrew/test.rb:59:in '<main>'
target_framework = "net#{version.major_minor}"

(testpath/"test.cs").write <<~CS
Expand Down Expand Up @@ -170,5 +176,9 @@
resource("docfx").stage do
system bin/"dotnet", "restore", "src/docfx", "--disable-build-servers", "--no-cache"
end

# Confirm that building/publishing with native AOT works
system bin/"dotnet", "new", "console", "-o", "TestConsoleAOT", "--aot"
system bin/"dotnet", "publish", "TestConsoleAOT"
end
end
Loading