2009-03-25 23:04:32 +00:00
|
|
|
--
|
|
|
|
-- vs2005_csproj_user.lua
|
|
|
|
-- Generate a Visual Studio 2005/2008 C# .user file.
|
2012-01-12 21:59:15 +00:00
|
|
|
-- Copyright (c) 2009-2012 Jason Perkins and the Premake project
|
2009-03-25 23:04:32 +00:00
|
|
|
--
|
|
|
|
|
2011-02-02 18:27:52 +00:00
|
|
|
local cs2005 = premake.vstudio.cs2005
|
|
|
|
|
|
|
|
|
2012-01-12 21:59:15 +00:00
|
|
|
--
|
|
|
|
-- Generate a Visual Studio 200x C# user file, with support for the new platforms API.
|
|
|
|
--
|
|
|
|
|
|
|
|
function cs2005.generate_user_ng(prj)
|
2012-09-20 22:07:19 +00:00
|
|
|
print("** Warning: C# projects have not been ported yet")
|
|
|
|
|
|
|
|
io.eol = "\r\n"
|
|
|
|
|
|
|
|
_p('<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">')
|
|
|
|
_p(' <PropertyGroup>')
|
|
|
|
|
|
|
|
_p(' </PropertyGroup>')
|
|
|
|
_p('</Project>')
|
2012-01-12 21:59:15 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
2012-09-20 22:07:19 +00:00
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
-- Everything below this point is a candidate for deprecation
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
2011-02-02 18:27:52 +00:00
|
|
|
function cs2005.generate_user(prj)
|
2009-03-25 23:04:32 +00:00
|
|
|
io.eol = "\r\n"
|
|
|
|
|
2009-04-11 11:49:07 +00:00
|
|
|
_p('<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">')
|
|
|
|
_p(' <PropertyGroup>')
|
2009-03-25 23:04:32 +00:00
|
|
|
|
|
|
|
local refpaths = table.translate(prj.libdirs, function(v) return path.getabsolute(prj.location .. "/" .. v) end)
|
2009-04-11 11:49:07 +00:00
|
|
|
_p(' <ReferencePath>%s</ReferencePath>', path.translate(table.concat(refpaths, ";"), "\\"))
|
|
|
|
_p(' </PropertyGroup>')
|
|
|
|
_p('</Project>')
|
2009-03-25 23:04:32 +00:00
|
|
|
|
|
|
|
end
|