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

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/vstudio/vs2005_csproj.lua')
-rw-r--r--src/actions/vstudio/vs2005_csproj.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/actions/vstudio/vs2005_csproj.lua b/src/actions/vstudio/vs2005_csproj.lua
index c4fc815..36a9ea8 100644
--- a/src/actions/vstudio/vs2005_csproj.lua
+++ b/src/actions/vstudio/vs2005_csproj.lua
@@ -33,6 +33,13 @@
if premake.findfile(prj, testname) then
return "AutoGen", testname
end
+ elseif fname:endswith(".xaml.cs") then
+ -- is there a matching *.cs file?
+ local basename = fname:sub(1, -9)
+ local testname = basename .. ".xaml"
+ if premake.findfile(prj, testname) then
+ return "SubTypeCode", testname
+ end
else
-- is there a *.Designer.cs file?
local basename = fname:sub(1, -4)
@@ -61,6 +68,10 @@
end
end
end
+
+ if fname:endswith(".xaml") then
+ return "XamlDesigner"
+ end
if action == "Content" then
return "CopyNewest"
@@ -107,6 +118,11 @@
_p(' <SubType>Designer</SubType>')
elseif elements == "SubTypeForm" then
_p(' <SubType>Form</SubType>')
+ elseif elements == "SubTypeCode" then
+ _p(' <SubType>Code</SubType>')
+ elseif elements == "XamlDesigner" then
+ _p(' <SubType>Designer</SubType>')
+ _p(' <Generator>MSBuild:Compile</Generator>')
elseif elements == "PreserveNewest" then
_p(' <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>')
end