Skip to content

Commit 7cddce6

Browse files
committed
Default to .NET 5.0 if building for VS2019 or under.
1 parent 4817904 commit 7cddce6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/Helpers.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ end
7373

7474
local function target_framework()
7575
local value = _OPTIONS["target-framework"]
76-
return string.isempty(value) and "net6.0" or value
76+
local default_framework = _ACTION <= "vs2019" and "net5.0" or "net6.0"
77+
return string.isempty(value) and default_framework or value
7778
end
7879

7980
targetframework = target_framework()

0 commit comments

Comments
 (0)