Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

SDK Package: How to enable a custom build system for a custom project type

$
0
0

Hi,

I am considering creation of a custom project type that would use its own build system which is not based on MSBuild in any way (I'd like to kindly ask everyone not to challenge this as it is a customer's requirement that has some background underneath).

I have studied the MPF as well as WiX and IronStudio sources, as well as I searched high and low on the Web, and still didn't manage to find at least a single example of implementing a custom build system.

What I understood so far from reading MSDN docs is that one needs to implement a couple of interfaces on the ProjectNode:

  • IVsBuildableProjectCfg
  • IVsProjectBuildSystem

The first one appears to be pretty generic so I do not see a problem in making a totally custom implementation. However, the second one has a method called "GetBuildSystemKind" which returns the _BuildSystemKindFlags2 enumeration, the only defined values for which are "BSK_MSBUILD_VS9" and "BSK_MSBUILD_VS10".

This is where I get confused:

  • Do I have to implement this interface at all on my custom project type?
  • If yes, what do I return from a GetBuildSystemKind call? Would it be OK to return an arbitrary value that is just not equal to the BSK_MSBUILD_VS9 and BSK_MSBUILD_VS10 constants? Is there perhaps somewhere a list of values reserved by Microsoft for future use?

I'd really appreciate any advice on this as the official documentation is, unfortunately, quite succint.

Thanks!


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>