473,785 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Code generator as a VS.NET Add-In

Hello there,

I have written a code generator for our internal use. Right now it is
implemented as an independent application. The generated code (which is
really a block of code containing 4-5 procedures enclosed in #Region/#End
Region tags) sits in a .txt file and we manually copy and paste/replace the
code in our application project files. We would prefer to totally automate
the insertion/replacement process. For this to happen, it seems that I will
need to tap into extensibility object model that VS.NET environment provides
and package the code generator as an Add-In. Unfortunately, I so far have
failed to find a complete example of how to develop such a component. VS's
help information is too brief to find it useful.

Thanks for any suggestions anyone may have,

Vitaliy
OAS Software Corp.
Jul 19 '05 #1
2 1893
Thank you.

Vitaliy
OAS Software Corp.
"Tommy Williams [MSFT]" <to****@online. microsoft.com> wrote in message
news:04******** *************** *****@phx.gbl.. .
I can suggest two books that have been useful to me as I
have been figuring out Add-ins: "Inside Visual
Studio .NET 2003", published by MS Press, and "Mastering
Visual Studio .NET", published by O'Reilly.

There is also a Yahoo! group dedicated to extending
Visual Studio .NET:
http://groups.yahoo.com/group/vsnetaddin/

This posting is provided "AS IS" with no warranties, and
confers no rights.

-- Tommy
-----Original Message-----
Hello there,

I have written a code generator for our internal use.

Right now it is
implemented as an independent application. The

generated code (which is
really a block of code containing 4-5 procedures

enclosed in #Region/#End
Region tags) sits in a .txt file and we manually copy

and paste/replace the
code in our application project files. We would prefer

to totally automate
the insertion/replacement process. For this to happen,

it seems that I will
need to tap into extensibility object model that VS.NET

environment provides
and package the code generator as an Add-In.

Unfortunately, I so far have
failed to find a complete example of how to develop such

a component. VS's
help information is too brief to find it useful.

Thanks for any suggestions anyone may have,

Vitaliy
OAS Software Corp.
.

Jul 19 '05 #2
In the "Other projects" category in VS, there's an add-in project type that
will get you started.

--
Eric Gunnerson

Visit the C# product team at http://www.csharp.net
Eric's blog is at http://blogs.gotdotnet.com/ericgu/

This posting is provided "AS IS" with no warranties, and confers no rights.
"Vitaliy" <vk****@oasvas. com> wrote in message
news:ey******** ******@TK2MSFTN GP11.phx.gbl...
Hello there,

I have written a code generator for our internal use. Right now it is
implemented as an independent application. The generated code (which is
really a block of code containing 4-5 procedures enclosed in #Region/#End
Region tags) sits in a .txt file and we manually copy and paste/replace the code in our application project files. We would prefer to totally automate the insertion/replacement process. For this to happen, it seems that I will need to tap into extensibility object model that VS.NET environment provides and package the code generator as an Add-In. Unfortunately, I so far have
failed to find a complete example of how to develop such a component. VS's help information is too brief to find it useful.

Thanks for any suggestions anyone may have,

Vitaliy
OAS Software Corp.

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2006
by: Snah | last post by:
Hi, Does anyone knows a code generator for Php ? Actions to do: specifiy a mysql table and their fields, and build a default webpage which allows to add,update,delete,search, browse, print the table data. Thx I
2
1815
by: chansky | last post by:
I read the following link about generator: http://www.python.org/peps/pep-0255.html but I am still not so clear on the use/purpose of a generator function other than the fact that a generator can retain the state of the local variables within the fuction body. Can someone out there shed some lights on this topic or share about how/when you would ever use a generator function.
17
2444
by: Andrae Muys | last post by:
Found myself needing serialised access to a shared generator from multiple threads. Came up with the following def serialise(gen): lock = threading.Lock() while 1: lock.acquire() try: next = gen.next() finally:
24
3356
by: Mahesh Padmanabhan | last post by:
Hi, When list comprehension was added to the language, I had a lot of trouble understanding it but now that I am familiar with it, I am not sure how I programmed in Python without it. Now I see that generator expressions have been added to the language with 2.4 and I question the need for it. I know that it allows for lazy evaluation which speeds things up for larger lists but why was it necessary to add it instead of improving list...
23
2281
by: Mike Meyer | last post by:
Ok, we've added list comprehensions to the language, and seen that they were good. We've added generator expressions to the language, and seen that they were good as well. I'm left a bit confused, though - when would I use a list comp instead of a generator expression if I'm going to require 2.4 anyway? Thanks, <mike --
12
1956
by: Thomas Lotze | last post by:
Hi, I'm trying to figure out what is the most pythonic way to interact with a generator. The task I'm trying to accomplish is writing a PDF tokenizer, and I want to implement it as a Python generator. Suppose all the ugly details of toknizing PDF can be handled (such as embedded streams of arbitrary binary content). There remains one problem, though: In order to get random file access, the tokenizer should not simply spit out a series...
3
5519
by: DrSarang | last post by:
While building XmlSampleGenerator code from MSDN, I get missing XmlSchemaSet reference. Here is the screen dump, if needed. C:\Documents and Settings\Dr Sarang\My Documents\MSDN\XML Sample Generator>build Could Not Find C:\Documents and Settings\Dr Sarang\My Documents\MSDN\XML Sample Generator\XmlSampleGenerator.dll Could Not Find C:\Documents and Settings\Dr Sarang\My Documents\MSDN\XML
2
1970
by: UnixSlaxer | last post by:
Hello, - Is any body aware of a random workload/query generator such as the TPC-H query generator (QGEN) ? I am looking for a query generator that takes a schema as an input, and produces several queries. I need it mainly for performance evaluation. the generator I am looking for should produce SELECT queries, including joins, and not only INSERT INTO, DELETE, UPDATE queries such as the "SqlQueryGenerator" at...
18
1787
by: John Salerno | last post by:
Ok, I wrote this all by myself, which explains why it doesn't work. It is meant to take a number and generate the next number that follows according to the Morris sequence. It works for a single number, but what I'd like it to do is either: 1. repeat indefinitely and have the number of times controlled elsewhere in the program (e.g., use the morris() generator in a for loop and use that context to tell it when to stop) 2. just make it...
13
1499
by: aomighty | last post by:
I'm creating a program to calculate all primes numbers in a range of 0 to n, where n is whatever the user wants it to be. I've worked out the algorithm and it works perfectly and is pretty fast, but the one thing seriously slowing down the program is the following code: def rmlist(original, deletions): return original will be a list of odd numbers and deletions will be numbers that are not prime, thus this code will return all items...
0
9489
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5396
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4061
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2893
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.