Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How about the Visual Studio's XmlDoc? #359

Closed
mr-kelly opened this issue Dec 12, 2015 · 3 comments · May be fixed by #2103
Closed

How about the Visual Studio's XmlDoc? #359

mr-kelly opened this issue Dec 12, 2015 · 3 comments · May be fixed by #2103

Comments

@mr-kelly
Copy link

How can I generate the /xmldoc when premake for vs2012?

@samsinsane
Copy link
Member

Is this for C/C++ projects or C# projects?

@samsinsane
Copy link
Member

Closing due to no reply to request for more information in over a month. Please feel free to reopen this with more information.

@mr-kelly
Copy link
Author

For C# projects. And I found a solution:

local function WriteDocumentationFileXml(_premake, _prj, value)
    _premake.w('<DocumentationFile>' .. string.gsub(_prj.buildtarget.relpath, "\.dll", ".xml") .. '</DocumentationFile>')
end

-- Write the current Premake version into our generated files, for reference
premake.override(premake.vstudio.cs2005, "compilerProps", function(base, prj)
    base(prj)
    WriteDocumentationFileXml(premake, prj, XmlDocFileName)
end)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants