2013-04-25 20:05:08 +00:00
|
|
|
--
|
|
|
|
-- tests/actions/vs2012/test_csproj_targets.lua
|
|
|
|
-- Check Visual Studio 2012 extensions to the targets block.
|
|
|
|
-- Copyright (c) 2013 Jason Perkins and the Premake project
|
|
|
|
--
|
|
|
|
|
|
|
|
local suite = test.declare("vs2012_csproj_targets")
|
|
|
|
local cs2005 = premake.vstudio.cs2005
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Setup
|
|
|
|
--
|
|
|
|
|
|
|
|
local sln, prj
|
|
|
|
|
|
|
|
function suite.setup()
|
|
|
|
_ACTION = "vs2012"
|
|
|
|
sln = test.createsolution()
|
|
|
|
language "C#"
|
|
|
|
end
|
|
|
|
|
|
|
|
local function prepare()
|
2013-09-13 15:52:00 +00:00
|
|
|
prj = premake.solution.getproject(sln, 1)
|
2013-04-25 20:05:08 +00:00
|
|
|
cs2005.targets(prj)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
-- Visual Studio 2012 changes the MS Build path slightly.
|
|
|
|
---
|
|
|
|
|
|
|
|
function suite.onDefaultCommonProps()
|
|
|
|
prepare()
|
|
|
|
test.capture [[
|
|
|
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
|
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
|
|
Other similar extension points exist, see Microsoft.Common.targets.
|
|
|
|
<Target Name="BeforeBuild">
|
|
|
|
</Target>
|
|
|
|
<Target Name="AfterBuild">
|
|
|
|
</Target>
|
|
|
|
-->
|
|
|
|
]]
|
|
|
|
end
|