Use iscpp and isdotnet instead of string compares
This commit is contained in:
parent
05f7129641
commit
ecda0d6691
@ -45,9 +45,9 @@
|
||||
function nuget2010.packageFramework(wks, package)
|
||||
local prj = packageProject(wks, package)
|
||||
|
||||
if prj.language == "C++" then
|
||||
if p.project.iscpp(prj) then
|
||||
return "native"
|
||||
elseif prj.language == "C#" then
|
||||
elseif p.project.isdotnet(prj) then
|
||||
local cfg = p.project.getfirstconfig(prj)
|
||||
local action = premake.action.current()
|
||||
local framework = cfg.dotnetframework or action.vstudio.targetFramework
|
||||
|
Loading…
Reference in New Issue
Block a user