39 lines
872 B
Lua
39 lines
872 B
Lua
--
|
|
-- tests/actions/vs2013/test_csproj_common_props.lua
|
|
-- Check Visual Studio 2013 extensions to the project properties block.
|
|
-- Copyright (c) 2013 Jason Perkins and the Premake project
|
|
--
|
|
|
|
local suite = test.declare("vs2013_csproj_common_props")
|
|
local cs2005 = premake.vstudio.cs2005
|
|
|
|
|
|
--
|
|
-- Setup
|
|
--
|
|
|
|
local sln, prj
|
|
|
|
function suite.setup()
|
|
_ACTION = "vs2013"
|
|
sln = test.createsolution()
|
|
language "C#"
|
|
end
|
|
|
|
local function prepare()
|
|
prj = premake.solution.getproject_ng(sln, 1)
|
|
cs2005.commonProperties(prj)
|
|
end
|
|
|
|
|
|
---
|
|
-- Visual Studio 2013 omits <ProductVersion> and <SchemaVersion>.
|
|
---
|
|
|
|
function suite.onDefaultCommonProps()
|
|
prepare()
|
|
test.capture [[
|
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
]]
|
|
end
|