Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

How to add a file to an AbstractProject that is not MSBuild-based?

$
0
0

Hi all,

first of all thank you for creating this project. I love where it's heading.

I searched but found nothing about this. If this question has been answered already, you may notify here and close this thread.

I'm currently writing an add-in for a custom language that is not MSBuild-based, thus I'm deriving from AbstractProject since that has everything I needed. When it builds, it just calls some EXE that does the compilation - no need for MSBuild. But that is not the problem.

You can basically compare the language to VB6 where you have a bunch of files that are organized by category (Modules, Classes, Forms). Essentially I want to recreate that, since that layout is efficient for the language.

I'm loading the project file inside the appropriate constructor, and when I try to call ProjectService.AddProjectItem(), it gives me a NotSupportedException. So, is this even the correct approach? Where is it best to do the "stuffing into the project tree"?

I'm using the RC of SD (downloaded 14th of October).

I'd be glad for any sort of heads-up on this.


Best Regards,

chris


Viewing all articles
Browse latest Browse all 1764

Trending Articles