premake/src/actions/vstudio/vs2005_csproj_user.lua

30 lines
783 B
Lua
Raw Normal View History

--
-- vs2005_csproj_user.lua
-- Generate a Visual Studio 2005/2008 C# .user file.
-- Copyright (c) 2009-2014 Jason Perkins and the Premake project
--
local p = premake
local cs2005 = p.vstudio.cs2005
local project = p.project
--
-- Generate a Visual Studio 200x C# user file, with support for the new platforms API.
--
function cs2005.generate_user(prj)
p.vstudio.projectElement()
_p(1,'<PropertyGroup>')
-- Per-configuration reference paths aren't supported (are they?) so just
-- use the first configuration in the project
local cfg = project.getfirstconfig(prj)
local refpaths = path.translate(project.getrelative(prj, cfg.libdirs))
_p(2,'<ReferencePath>%s</ReferencePath>', table.concat(refpaths, ";"))
_p(' </PropertyGroup>')
_p('</Project>')
end