Welcome to mirror list, hosted at ThFree Co, Russian Federation.

vs2002_csproj_user.lua « vstudio « actions « src - github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fa64e0329ff9154bc0d027a61f4286379bb958f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
--
-- vs2002_csproj_user.lua
-- Generate a Visual Studio 2002/2003 C# .user file.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--

	local cs2002 = premake.vstudio.cs2002

	function cs2002.generate_user(prj)
		io.eol = "\r\n"

		_p('<VisualStudioProject>')
		_p(1,'<CSHARP>')
		_p(2,'<Build>')
		
		-- Visual Studio wants absolute paths
		local refpaths = table.translate(prj.libdirs, function(v) return path.getabsolute(prj.location .. "/" .. v) end)
		_p(3,'<Settings ReferencePath = "%s">', path.translate(table.concat(refpaths, ";"), "\\"))
		
		for cfg in premake.eachconfig(prj) do
			_p(4,'<Config')
			_p(5,'Name = "%s"', premake.esc(cfg.name))
			_p(5,'EnableASPDebugging = "false"')
			_p(5,'EnableASPXDebugging = "false"')
			_p(5,'EnableUnmanagedDebugging = "false"')
			_p(5,'EnableSQLServerDebugging = "false"')
			_p(5,'RemoteDebugEnabled = "false"')
			_p(5,'RemoteDebugMachine = ""')
			_p(5,'StartAction = "Project"')
			_p(5,'StartArguments = ""')
			_p(5,'StartPage = ""')
			_p(5,'StartProgram = ""')
			_p(5,'StartURL = ""')
			_p(5,'StartWorkingDirectory = ""')
			_p(5,'StartWithIE = "false"')
			_p(4,'/>')
		end
		
		_p(3,'</Settings>')
		_p(2,'</Build>')
		_p(2,'<OtherProjectSettings')
		_p(3,'CopyProjectDestinationFolder = ""')
		_p(3,'CopyProjectUncPath = ""')
		_p(3,'CopyProjectOption = "0"')
		_p(3,'ProjectView = "ProjectFiles"')
		_p(3,'ProjectTrust = "0"')
		_p(2,'/>')
		
		_p(1,'</CSHARP>')
		_p('</VisualStudioProject>')
		
	end