diff --git a/src/_premake_init.lua b/src/_premake_init.lua index ea7cc468..ea2819f3 100644 --- a/src/_premake_init.lua +++ b/src/_premake_init.lua @@ -959,6 +959,12 @@ end, } + api.register { + name = "customtoolnamespace", + scope = "config", + kind = "string", + } + api.register { name = "undefines", scope = "config", diff --git a/src/actions/vstudio/vs2005_csproj.lua b/src/actions/vstudio/vs2005_csproj.lua index 0c9d33bc..b8e01232 100644 --- a/src/actions/vstudio/vs2005_csproj.lua +++ b/src/actions/vstudio/vs2005_csproj.lua @@ -182,6 +182,9 @@ if #contents > 0 then _p("%s", contents) end + if info.action == "EmbeddedResource" and cfg.customtoolnamespace then + _p(3,"%s", cfg.customtoolnamespace) + end _p(2,'', info.action) else _p(2,'<%s Include="%s" />', info.action, fname)