Merge pull request #227 from SHADE-DP/SP3-6-c-scripting

Fixed premake bug where project configuration tag was missing for SHADE_CSharp
This commit is contained in:
XiaoQiDigipen 2022-11-19 16:25:32 +08:00 committed by GitHub
commit 06e8ee6b2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -50,6 +50,9 @@ project "SHADE_CSharp"
function platformsElementCS(cfg) function platformsElementCS(cfg)
_p(2,'<Platforms>x64</Platforms>') _p(2,'<Platforms>x64</Platforms>')
end end
function configElementCS(cfg)
_p(2,'<Configurations>Debug;Release;Publish</Configurations>')
end
function docsElementCS(cfg) function docsElementCS(cfg)
_p(2,'<GenerateDocumentationFile>true</GenerateDocumentationFile>') _p(2,'<GenerateDocumentationFile>true</GenerateDocumentationFile>')
end end
@ -59,6 +62,6 @@ project "SHADE_CSharp"
premake.override(premake.vstudio.cs2005.elements, "projectProperties", function (oldfn, cfg) premake.override(premake.vstudio.cs2005.elements, "projectProperties", function (oldfn, cfg)
return table.join(oldfn(cfg), { return table.join(oldfn(cfg), {
platformsElementCS, docsElementCS, docsLocationElementCS, platformsElementCS, configElementCS, docsElementCS, docsLocationElementCS,
}) })
end) end)