Use 'workspace' instead of 'solution'.
This commit is contained in:
parent
d44dae735a
commit
b7d140330b
@ -7,7 +7,7 @@ newaction
|
||||
onsolution = function(sln)
|
||||
require('raw')
|
||||
|
||||
premake.generate(sln, ".raw", premake.raw.solution)
|
||||
premake.generate(sln, ".raw", premake.raw.workspace)
|
||||
end,
|
||||
}
|
||||
|
||||
|
@ -3,10 +3,10 @@ p.raw = { }
|
||||
local raw = p.raw
|
||||
local gvisited = { }
|
||||
|
||||
function raw.solution(sln)
|
||||
if not gvisited[sln.global] then
|
||||
gvisited[sln.global] = true
|
||||
raw.printTable({ global = sln.global })
|
||||
function raw.workspace(wks)
|
||||
if not gvisited[wks.global] then
|
||||
gvisited[wks.global] = true
|
||||
raw.printTable({ global = wks.global })
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
end
|
||||
|
||||
local function prepare()
|
||||
local prj = p.solution.getproject(wks, 1)
|
||||
local prj = p.workspace.getproject(wks, 1)
|
||||
vc2010.ensureNuGetPackageBuildImports(prj)
|
||||
end
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
end
|
||||
|
||||
local function prepare()
|
||||
local prj = p.solution.getproject(wks, 1)
|
||||
local prj = p.workspace.getproject(wks, 1)
|
||||
nuget2010.generatePackagesConfig(prj)
|
||||
end
|
||||
|
||||
|
@ -447,7 +447,7 @@
|
||||
-- <Reference Include="nunit.framework">
|
||||
|
||||
_x(2, '<Reference Include="%s">', path.getbasename(file))
|
||||
_x(3, '<HintPath>%s</HintPath>', vstudio.path(prj, p.filename(prj.solution, string.format("packages\\%s.%s\\%s", id, packageAPIInfo.verbatimVersion or packageAPIInfo.version, file))))
|
||||
_x(3, '<HintPath>%s</HintPath>', vstudio.path(prj, p.filename(prj.workspace, string.format("packages\\%s.%s\\%s", id, packageAPIInfo.verbatimVersion or packageAPIInfo.version, file))))
|
||||
|
||||
if config.isCopyLocal(prj, package, true) then
|
||||
_p(3, '<Private>True</Private>')
|
||||
|
@ -1589,7 +1589,7 @@
|
||||
|
||||
local function nuGetTargetsFile(prj, package)
|
||||
local packageAPIInfo = vstudio.nuget2010.packageAPIInfo(prj, package)
|
||||
return p.vstudio.path(prj, p.filename(prj.solution, string.format("packages\\%s.%s\\build\\native\\%s.targets", vstudio.nuget2010.packageId(package), packageAPIInfo.verbatimVersion or packageAPIInfo.version, vstudio.nuget2010.packageId(package))))
|
||||
return p.vstudio.path(prj, p.filename(prj.workspace, string.format("packages\\%s.%s\\build\\native\\%s.targets", vstudio.nuget2010.packageId(package), packageAPIInfo.verbatimVersion or packageAPIInfo.version, vstudio.nuget2010.packageId(package))))
|
||||
end
|
||||
|
||||
function m.importNuGetTargets(prj)
|
||||
|
Loading…
Reference in New Issue
Block a user