Questions tagged [mpf]

The Managed Package Framework (MPF) provides C# classes you can use to implement your own project types. MPF implements many of the interfaces Visual Studio expects a project type to provide, leaving you free to concentrate on implementing the particulars of your project type. A language service provides editor support that lets you implement certain Visual Studio features. Managed Package Framework service classes provide support for common features

32 questions
18
votes
3 answers

How do I subscribe to solution and project events from a VSPackage

I'm developing a language service for Visual Studio through a VSPackage. I need to update my parse data whenever files get added/removed from the solution's projects. I want to subscribe to solution and project events. I tried as follows, but none…
Anthony Brien
  • 6,106
  • 7
  • 43
  • 56
12
votes
2 answers

How to mpf an array?

I have: import numpy as np from mpmath import * mpf(np.array(range(0,600))) But it won't let me do it: TypeError: cannot create mpf from array So what should I be doing? Essentially I'm going to have use this array and multiply element-wise with…
Rapid
  • 1,442
  • 1
  • 13
  • 25
8
votes
2 answers

Visual Studio 2010 Extensibility, MPF and language services

I am trying to extend Visual Studio 2010 RC to be able to use a custom programming language. The first two things I've tried to do is a syntax highlight/Intellisense feature (easily done, thanks to "Ook!" sample from PDC09) and a possibility to…
Arseni Mourzenko
  • 50,338
  • 35
  • 112
  • 199
7
votes
2 answers

VS Extensibility Architecture (Package API/ Visual Studio Library)

Recently I found the above displayed Visual Studio Extensibility Platform chart from microsoft. Most of the things are clear to me. However, I am wondering about the Package API and the VSL (Visual Studio Library). I tried to find more, but was…
7
votes
1 answer

Managed Package Framework for Visual Studio 2017

I'm following this tutorial on how to create a new Visual Studio Project type. In there, it says to "Import the source-code files for the Managed Package Framework". Google led me to this link that has a link to MPF 2013 package. In the first link…
Dula
  • 1,404
  • 1
  • 14
  • 29
7
votes
3 answers

Visual Studio 2010 MEF vs MPF?

I'm looking into adding a new programming language to visual sudio 2010 and I'm a little confused on the best approach to take. I've looked into the MPF and found some examples on how to do syntax highlighting, link up an external parser, etc and it…
David James Ball
  • 903
  • 10
  • 26
6
votes
2 answers

VS2010 MPF: Populating 'Add->New Item...' list for a custom project

I've created a custom language package, which extends ProjectPackage. I can create the new project correctly. I would like to be able to add new source files to the project by using the Add->New Item... (Ctrl+Shift+A) menu item. However, when I…
Giawa
  • 1,281
  • 1
  • 10
  • 21
6
votes
1 answer

How to create custom project that inherits from c# using MPF?

Using Visual Studio's Managed Package Framework, how can I inherit from C# so I can have C# property pages and C# project items? I've tried making a flavored project, but it was limited in terms of making our own custom nodes and custom file…
5
votes
2 answers

Async implementation of Custom Commands in VSIX

When you add a template custom command in a VSIX project, the scaffolding code that Visual Studio generates includes the following general structure: /// /// Initializes a new instance of the
Hydrargyrum
  • 3,378
  • 4
  • 27
  • 41
4
votes
0 answers

Print large table content on multiple page using mpdf lib

I need to print a large table content on multiple pages by using mpdf. action code security->generateRandomString(40) . ".pdf"; $pdf = new Pdf([ 'mode' => Pdf::MODE_UTF8, …
Ahmad Samilo
  • 914
  • 16
  • 30
3
votes
1 answer

Implementing a Language Service By Using the Managed Package Framework

I've followed the steps listed in the walk through (http://msdn.microsoft.com/en-us/library/bb166360.aspx) for implementing and registering a LanguageService and I simply can't get it to work. My package loads correctly, I can add functioning menu…
BSharp
  • 91
  • 8
3
votes
1 answer

Modifying emularor/device list of visual studio 2013

I am using Managed Package Framework (MPF) to create custom language service. I want to add few emulators/devices in "Start" Combobox, for example How can I do that? Update 1: After some research, I came to know that you need to extend an abstract…
3
votes
1 answer

Python cannot create mpf from phi

After fixing the imports in the previous question (Python AttributeError:cos) and changing a little bit the functions using the sympy ones: from sympy import * from sympy import Symbol from sympy.solvers import nsolve # Symbols theta =…
aymenbh
  • 151
  • 4
  • 10
3
votes
2 answers

Visual Studio Custom Language Service

I am attempting to implement a Language Service in a VSPackage using the MPF, and it's not working quite as I understand it should. I have several implementations already, such as ParseSource parsing the input file with a ParseRequest. However, when…
2
votes
1 answer

MPFR Rounding 0.9999 to 1?

I'm attempting to store the value 0.9999 into an mpfr_t variable using the mpfr_set_str() function But 0.9999 is rounded to 1 (or some other value != 0.9999) during storage, no matter the round value (GMP_RNDD, GMP_RNDU, GMP_RNDN, GMP_RNDZ) So…
Silmaersti
  • 23
  • 3
1
2 3