Use 'workspace' instead of 'solution'.

This commit is contained in:
Tom van Dijck 2017-06-20 14:35:53 -07:00
parent d44dae735a
commit b7d140330b
6 changed files with 9 additions and 9 deletions

View File

@ -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,
}

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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>')

View File

@ -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)