473,395 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

adding custom build steps to custom types

Hi,

I've been trying to add a script to create a custom C++ file type to
visual studio 2005 with limited success. I can get the file created
and
added to a project, however, I need to add a custom build step to the
file
and I am not having much success (in implementing or finding the
first
step to getting things done).

So what I have so far is this (with some modifications):

function OnFinish(selProj, selObj)
{
try {
var className = wizard.FindSymbol('ITEM_NAME');

var fullFileName = wizard.FindSymbol('PROJECT_PATH') + "\\" +
className + ".xml"

addFileToSolutionExplorerFolder(fullFileName, selProj);

var file = createFileOnDisk(fullFileName);

writeTemplate(file, className);
} catch(e) {
if (e.description.length != 0)
SetErrorInfo(e);
return e.number
}

}

function writeTemplate(file, className)
{
file.WriteLine("...stuff...");;

}

function createFileOnDisk(fullFileName){
var fso = new ActiveXObject('Scripting.FileSystemObject');
var file = fso.CreateTextFile(fullFileName, true, false);
return file;

}

function addFileToSolutionExplorerFolder(fullFileName, selProj)
{

selProj.Object.Filters.Item(dte.SelectedItems(1).N ame).AddFile(fullFileName);

}

If someone can point me to some reference (or post a follow-up) as to
how i can add a custom build step for all configurations to the file
I
just added - that would be fantastic.

tom
Jun 27 '08 #1
0 1286

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

Similar topics

0
by: Lee Alexander | last post by:
I am trying to emulate the C# behaviour of copying referenced assemblies into the build output directory but for normal DLLs. Currently some components (DLLs) are build and dumped into a shared...
14
by: Craig Buchanan | last post by:
If I have two custom vb.net classes, where 80% of the properties are alike and there is one method with a matching signature, can i cast between one and the other? do i need to have each class...
1
by: Kris | last post by:
I read a column on sharing types between web services at http://msdn.microsoft.com/library/en-us/dnservice/html/service07162002.asp Sharing types can be acheived, similar to what described here...
4
by: glebur | last post by:
Hi, I'm trying to create a web service client in C# but I get stuck at one of the first steps. When adding a Web reference to the Visual Studio project; I get this error (this is a translation,...
2
by: prabhupr | last post by:
Hi Folks I was reading this article (http://www.dotnetbips.com/articles/displayarticle.aspx?id=32) on "Custom Attribute", written by Bipin. The only thing I did not understand in this article...
8
by: Techno_Dex | last post by:
Has anyone come up with a slick way to make Custom Serializable Objects to behave like DataSets when using WebServices? What I'm looking for is some way to force the WSDL generated code to create...
1
by: Michael Russell | last post by:
Hi all, Sorry for the repost, but I never received any response when I first asked this a few weeks ago. I would really appreciate some feedback on this, it's driving me nuts... I'm...
1
by: rohan_from_mars | last post by:
I have a windows service and am also using Enterprise Library June 2005 version. Now i have created Setup and Deployment Project which installs the service. but how do i add EL dlls-...
11
by: Pete Kane | last post by:
Hi All, does anyone know how to add TabPages of ones own classes at design time ? ideally when adding a new TabControl it would contain tab pages of my own classes, I know you can achieve this with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.