admin管理员组文章数量:1025244
Going through MSBuild solution parser I see there is an Evaluator that initiates the build by parsing the solution (see also language interpretation parts). I'm curious if there is any way to extend MSBuild to implement a different evaluator, one that reads a custom file that serves as the solution file in my project, and build my own project AST.
My options I considered so far are:
- use a valid MSBuild .proj file as my solution file format and then MSBuild can build it as any other valid MSBuild file (sort of how a .csproj file is both the project model file and also a valid MSBuild file)
- use a custom tool that reads my solution file, creates a .proj file and calls MSBuild on the .proj file
I'm looking if there is a way to directly do MSBuild mysolution.file
and have it work.
Going through MSBuild solution parser I see there is an Evaluator that initiates the build by parsing the solution (see also language interpretation parts). I'm curious if there is any way to extend MSBuild to implement a different evaluator, one that reads a custom file that serves as the solution file in my project, and build my own project AST.
My options I considered so far are:
- use a valid MSBuild .proj file as my solution file format and then MSBuild can build it as any other valid MSBuild file (sort of how a .csproj file is both the project model file and also a valid MSBuild file)
- use a custom tool that reads my solution file, creates a .proj file and calls MSBuild on the .proj file
I'm looking if there is a way to directly do MSBuild mysolution.file
and have it work.
本文标签: Can MSBuild Evaluator be customized to read a different file formatStack Overflow
版权声明:本文标题:Can MSBuild Evaluator be customized to read a different file format? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745518814a2154220.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论