learnerplates

Are there a few steps which I can follow to create my own Language Server, VSPackage by using the IronPython example
The solution's paths seem to be all relative to the SDK installation and also it seems to use a dll IronPython.dll which is in the SDK.
I've tried copying the solution to a new location, changing the names and rebuilding but I ran into lots and lots of compiler errors, is there an easier way





Re: Visual Studio Extensibility How can I copy and customize the IronPython example

pgaliano

There is no easier way.

You need to copy all the stuff by hand, rename the solution paths and re map the IronPython reference.

What compilers errors are you having

Pablo






Re: Visual Studio Extensibility How can I copy and customize the IronPython example

learnerplates

Mainly the references to namespaces within the IronPython.dll,
c:\Program Files\Visual Studio 2005 SDK\2006.09\VisualStudioIntegration\Common\Assemblies\IronPython.dll
it doesn't seem to be created in any of the projects in the solution, how do I create my own dll of this type






Re: Visual Studio Extensibility How can I copy and customize the IronPython example

Bob Salita

This has been an irritation. VS needs a "Copy Project/Solution to New Location" option. Hopefully with a renaming option.

Are there any 3rd party utilities that do this

Hmm, I guess it's pretty easy to do. Just write a program that read the .sln and project files and copies/renames the files.

Some specs:
1. Reads .sln and project files
2. Prompts for copy path
3. Option to rename
4. Option to replace GUIDs in .sln, project files, source code
5. Option to not replace GUIDs, auto replace, or select action from generated list of GUIDs
6. This could all be easier if the source had an attribute of [ChangeGUIDonCopy]
7. your turn ...





Re: Visual Studio Extensibility How can I copy and customize the IronPython example

learnerplates

Cheers, don't think I'll spend the day writing an app but thanks anyway.





Re: Visual Studio Extensibility How can I copy and customize the IronPython example

Dmitry Pavlov

Hi guys,

I don't think that is a good idea to copy IP sample and customize it for your language. There are too many pitfalls in this way because a lot of MPF tricks will be hidden from developer who just copied IP sample and tried to customize it for new language. I also think that IP sample doesn¡¯t cover all functionality you exactly need implementing your package.

I used another way (IMHO more robust) to investigate the MPF and create the package for my language. I just created a Class Library C# project and, linked the MPF classes and then I started developing package, language service and build tasks from scratch. I searched inside IronPython sample for pieces of implementation I really needed and skipped all redundant. I also had a look to other samples included into VS SDK, at Votive sources and Ed Dore¡¯s samples for some implemented there features.






Re: Visual Studio Extensibility How can I copy and customize the IronPython example

learnerplates

Sure Dimitry, that sounds like the proper way to do it, probably worth the time in the long run.
I can't see Ed Dore's link you've provided.






Re: Visual Studio Extensibility How can I copy and customize the IronPython example

Dmitry Pavlov

Thy link twice :)

I think that is the trick due to "Microsoft will be phasing out the GotDotNet site by July 2007" - the second time the page will opened OK.






Re: Visual Studio Extensibility How can I copy and customize the IronPython example

Ed Dore

I just noticed that gotdotnet is going away myself. I'll be updating those samples again to build against the V4 SDK, and get them uploaded to www.codeplex.com, hopefully in the next couple weeks.

Regarding the idea of "cloning" and existing samples (with new guids), it's an idea the VS SDK team has been investigating. But it can be really tricky for some of the more complex samples, as Dmitry has mentioned. We're also looking at ways to improve the existing wizards to make building different types of packages (including language services) a bit more intuitive.

The VS SDK team is right in the midst of planning the next release, so definitely chime in on what you'd like to see in the next SDK. (We've already got Dmitry's Show All Files feature listed) :-)

Also, I should point out the new ManagedMyC sample, which leverages the managed babel framework. Currently, we don't have a wizard for this either, but it's also something under consideration for a future release of the VS SDK.

Sincerely,






Re: Visual Studio Extensibility How can I copy and customize the IronPython example

Bob Salita

A smarter wizard would be very helpful. There's many questions posted to this forum. Seems like many of the questions could be avoided by an omniscient wizard and better documentation. Ideally someone should rake through the questions and generate a FAQ.

I would prefer an architecture that greatly reduces the need for a wizard; some highly configurable program with lots of options that minimizes the need for overrides and interfaces.

While improving the wizard may be the most practical approach at this point, I can't help thinking the real issue is an overly complex architecture.