How to make Custom Compile command?

Visual Studio .Net


  • 1. VS.NET->Server Explorer->Data Connection->Add Connection
    Hi, I'm using VS.NET 2003 (7.1.3088) In Server Explorer->Data Connection->Add Connection ... should appears a special dialog, but i'm recieving nothing (even no error), simple nothing. What can i do? How i can connect to DB? Thank you
  • 2. Invoking third-party compilers from the IDE
    How, if possible, may I invoke other compilers and/or linkers from the VS IDE.
  • 3. DotFuscator v2.0 Professional - Project Lost on VS restart
    After creating an obfuscating a set of assemblies then closing visual studio and reopening the same Obfuscated project attempts to change the options for the obfuscation result in an Error and cause us to have to redefine the whole project. (A similiar problem also occurs if we need to add another assembly to the project) Error is Invalid Assembly: ${active447e733084948e9baecad4c1bfcce04}\mi2020mn.exe. Error encountered while loading module [\Mi2020mn.exe]. Could not find file "C:\mi2020mn.exe" Note that Mi2020mn.exe was never in C:\ it was always in a subdirectory.
  • 4. Same source code - different entry points?
    Hello, I currently have a VS 2003 solution containing 3ea. C++ projects. All 3 have the same source files in common, except for main, which is different for each. Because I don't know any better, I've basically duplicated the same thing (except for a different main) in each of the 3 projects. Note, I have not duplicated the actual code on my hard disk, just relisted the same thing in each of my 3 projects, changing only the reference to a different main. This seems like a total kluge. What I would like to do is have a common project that lists all the common files, and 3 additional projects that only list the files that are not common plus some sort of reference to the project that contains the common files. Is this possible? Thanks, Ray

How to make Custom Compile command?

Postby SmFtZXMgRWR3YXJkcw » Fri, 17 Dec 2004 13:45:01 GMT

I'm working on the build system for a C++ project that has certain C++ files 
in the project that are set as "excluded from the build", but are in reality 
included through other means (in other C++ files).  I would like to set 
things up so that when users hit Ctrl-F7,  instead of compiling the current 
C++ file, it takes the name of the current C++ file in the editor and maps it 
to the real C++ file name that needs to be built and builds that instead.  
Does anyone have any idea how to set up a custom macro to do this?  I can 
figure out how to set up the filename mapping, my primary question is how to 
get the current editor filename and issue the build command, etc.  We are 
also using a custom AddIn plugin (in C++) that intercepts IDE build events 
and runs prior to every build, but I haven't figured out how change it to 
intercept and modify compile events for individual files.

Similar Threads:

1.Command line compile error, but compiles in


I wonder if anyone can help me. I am trying to learn to program in VB.Net 
and am having a little difficulty compiling a program using the command 
line. I am trying to create a small mdi application with a window menu but 
it fails to compile displaying the following error:

G:\Personal\>vbc mdiapp.vb /r:system.dll, 

Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4

for Microsoft (R) .NET Framework version 1.1.4322.573

Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.

G:\Personal\\mdiapp.vb(63) : error BC30456: 'TitleHorizontal' is not a 

ber of 'System.Windows.Forms.MdiLayout'.




If I create the same app using visual it compiles and runs 
correctly. can anybody can tell me why TitleHorizontal is not available from 
the command line?

Thanks in advance


2.Update Custom Collection that is bound to DataGrid made up of Custom COlumns

I recieved some very useful help from Steven Cheng in an earlier post in 
this group entitled  'Dynamically create datagrid columns' and am now 
looking for some help to progress things.

With the help I was given I was able to create a web user control that 
dynamically created a datagrid that was made up a number of custom datagrid 
columns.  I am able to bind a custom collection to this datagrid and I am 
able to view my data.
Some of the custom columns are editable columns containing a control such as 
Textbox, DropDown List, Checkbox etc.
What I would like to do is, on the click of a button, set the value in my 
custom object (the object that my custom collection is a collection of) to 
be equal to the corresponding value in the datagrid column. ie
I have a class called clsStock and a collection of clsStock objects called 
clsStock_COL.  In my clsStock class I have the following properties

I wish to display the following properties in my control

ID displayed in CUSTOMCOLUMN_Label (column0)
DESCRIPTION displayed in CUSTOMCOLUMN_Label (column1)
COSTPRICE displayed in CUSTOMCOLUMN_Label (column2)
SALEPRICE displayed in CUSTOMCOLUMN_TextBox (column3)
WHR displayed in CUSTOMCOLUMN_TextBox (column4)

When the user clicks update button I want to update my object of type 
clsStock so that
SALEPRICE = value displayed in CUSTOMCOLUMN_TextBox (column3)
WHR =value displayed in CUSTOMCOLUMN_TextBox (column4)

In another application of this control it may be the case that clsOrder & 
clsOrder_COL are the classes that bind to my datagrid and when I click 
update, the value in column3 may update the QUANTITY  property of my 
clsOrder class and column7 may update property DISCOUNT of my clsOrder 

So I am looking for an example of a generic way of updating my custom 
collections from my (datagrid) control.


Terry Holland

3.Compiling Java code within a C# made program,,,,,

I'm coding a C# Win Application. Somehow we need to let the "end-users" of
our application to write some Java code in one of our app's winform called :

What I would like to do is to have a button that compiles that code and if
there are errors to show them up,,,,, So far I'm planing to use the Sun

So my question is " Does anyone know how to call JavaC.exe & retrieving the
errors/messages without running JavaC.exe "" through a console
window ??"

Thank You in advance.

what is given is that my team prefers to compile java code through Sun JavaC
(1.4.2) rather than J# compiler.

4.Changing my clock makes my app not compile?

Maybe try doing a Clean then Rebuild??

Tony K.

"Scott McNair" < XXXX@XXXXX.COM > wrote in message 
news: XXXX@XXXXX.COM ...
> I'm writing a routine that does some cleanup whenever it senses a change 
> in
> the date.  The only way to test my code is to set the date back to
> yesterday at 11:59pm and observe the change as it occurs.
> I did so, and noticed an error.  So I altered my code to allow for the
> error and rolled the clock back a minute or two, so that it was back to
> 11:59 yesterday.  The same behavior occured.
> So I put a MsgBox in the routine to alert me to what the value was for a
> couple of variables, and I re-ran the app.  The MsgBox never ran.
> I moved the MsgBox to the very beginning of the routine.  Still it 
> wouldn't
> fire.
> I moved the MsgBox to the first line of the button event that fires the
> routine.  Still the MsgBox wouldn't fire.
> I removed the MsgBox line, and added Exit Sub to the very beginning of the
> button event.  The button still called the routine.
> I removed the Exit Sub line, and added MsgBox("loaded") to Form_Load.  The
> MsgBox never fired.
> I reset the time to the current time and compiled, and everything worked
> fine.
> It seems as though .NET has some safeguard to keep you from compiling over
> a newer version with an older version.  Am I correct in this assumption? 

5.Adding key makes solution compile very slow

	I am adding a strong name to my assemblies in order to work with Enterprise 
Services' Transactions.
	When I add the strong name (with sn.exe -k), my compile time for a Rebuild 
goes from 15 seconds to 3 minutes. This is for 1 solution with 11 projects.

Does anyone know if this is normal, or if there's an option to make it go 


6. Making my own command prompt

7. Compiling from the command line

8. how to compile web service in command line

Return to Visual Studio .Net


Who is online

Users browsing this forum: No registered users and 69 guest