Merged in triton/premake-cs-fixes/cs-noconfig (pull request #66)
C# Make projects now specify the "/noconfig" csc/mcs flag to behave like VS.
This commit is contained in:
commit
b9739214dc
@ -177,6 +177,11 @@
|
||||
function dotnet.getflags(cfg)
|
||||
local flags = config.mapFlags(cfg, dotnet.flags)
|
||||
|
||||
-- Tells the compiler not to include the csc.rsp response file which
|
||||
-- it does by default and references all the assemblies shipped with
|
||||
-- the .NET Framework. VS sets this flag by default for C# projects.
|
||||
table.insert(flags, '/noconfig')
|
||||
|
||||
if cfg.project.icon then
|
||||
local fn = project.getrelative(cfg.project, cfg.project.icon)
|
||||
table.insert(flags, string.format('/win32icon:"%s"', fn))
|
||||
|
@ -34,7 +34,7 @@
|
||||
function suite.isEmptyAssignment_onNoSettings()
|
||||
prepare()
|
||||
test.capture [[
|
||||
FLAGS =
|
||||
FLAGS = /noconfig
|
||||
]]
|
||||
end
|
||||
|
||||
@ -47,6 +47,6 @@
|
||||
icon "MyProject.ico"
|
||||
prepare()
|
||||
test.capture [[
|
||||
FLAGS = /win32icon:"MyProject.ico"
|
||||
FLAGS = /noconfig /win32icon:"MyProject.ico"
|
||||
]]
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user