Merge pull request #486 from ThomasKugler/DependsUponXsd

Set DependsUpon to xsd files.
This commit is contained in:
Jason Perkins 2016-05-03 11:48:01 -04:00
commit 7859391d33

View File

@ -95,9 +95,15 @@
info.DependentUpon = fname:sub(1, -4)
else
local basename = fname:sub(1, -4)
-- Is there a matching *.xsd?
testname = basename .. ".xsd"
if project.hasfile(fcfg.project, testname) then
info.DependentUpon = testname
end
-- Is there a matching *.Designer.cs?
local basename = fname:sub(1, -4)
testname = basename .. ".Designer.cs"
if project.hasfile(fcfg.project, testname) then
info.SubType = "Form"