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

VS Shell: Question about extending Visual Studio (VSPackage using MPFProj)

$
0
0

Hello all,



So my team is looking to add some of our tools inside Visual Studio. Right now I am trying to build a proof of concept that has the following features:

1- Adds a new project type to Visual Studio

2- Adds new list of files to that project type and filter out everything else. For instance, when I right click over a project that we created and choose “Add->New Item” I won’t see anything except our defined items (i.e. no C#, VB, C++ files)

3- When I click “Build”, instead of calling MSBuild, it calls some function defined in our VSPackage to do our own build.

I did more investigations by looking at part 1 & part 2 here:
http://msdn.microsoft.com/en-us/library/cc512961.aspx

I used MPFProj + Visual Studio 2013 SDK

I made the exact project as the tutorial above. When I try to run it to make a new project, I get this error: "Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx)"

I assume this error is happening because the code in SimpleProjectNode->AddFileFromTemplate is not called (which is the case as I placed a MessageBox there and it never showed up). What could be the reason behind this? This is the simple project I am using:

http://www.filedropper.com/simpleproject

As for #2 below, I still have no answer.

As for #3, I suspect that if I modified the two functions: “DebugLunch” and “Build” in ProjectConfig/BuildableProjectConfig classes, I could handle what needs to be done when the user clicks Build/Debug. Only problem is, these functions are never called when I create a project using the code above. Maybe same cause of why “AddFileFromTemplate” is not being called?


I am kind of stuck at this point and out of options of how to move next


Thank you so much :)
Mu




Viewing all articles
Browse latest Browse all 4410

Trending Articles



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