.NETGURU
Post-build commands
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngvs' list.


Andy Smith
I would like it if after compiling a c# assembly with the build command, =
I could have vstudio automaticly copy the assembly to my wwwroot/bin =
folder for debug and release builds, and GAC it for just release builds.

is there any way to do this?

__
Andy Smith
Keyboard Jockey #3a7-2.78.1

Reply to this message...
 
    
Omar Khan
Andy,

In the C# projects properties you should be able to set the output
folder to the \bin directory. The output location is per configuration
so you can set a different location for debug and release.

As for putting the assembly in the GAC. One way to do this, is to
create a Setup project in your solution and in the setup project I think
you can mark assemblies to go in the GAC.

Once you have that setup, you can set your solution configuration to
build and run the setup project which should put it in the GAC for
release builds. I think by default setup projects don't get built or
run, so you have to do this step.

Hope this helps.

Omar Khan
Visual Studio .NET

-----Original Message-----
From: Andy Smith [mailto:Click here to reveal e-mail address]=20
Sent: Wednesday, July 24, 2002 12:25 PM
To: aspngvs
Subject: [aspngvs] Post-build commands

I would like it if after compiling a c# assembly with the build command,
I could have vstudio automaticly copy the assembly to my wwwroot/bin
folder for debug and release builds, and GAC it for just release builds.

is there any way to do this?

__
Andy Smith
Keyboard Jockey #3a7-2.78.1

| [aspngvs] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngvs.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
    
Andy Smith
hrm,

I want my assembly to go to BOTH the project bin folder AND the wwwroot =
bin folder.

I was thinking I could use the "setup project" thing you mention for =
that as well... point the install at my wwwroot bin folder, but does =
this mean that i'll have to step thru some install wizard for each =
build? is there a "silent install" option?

__
Andy Smith
Keyboard Jockey #3a7-2.78.1

[Original message clipped]

Reply to this message...
 
    
Martin Garins
I have not tried this add-in but it looks like it might help you

http://msdn.microsoft.com/code/default.asp?URL=3D/code/sample.asp?url=3D/=
msd
n-files/026/002/526/msdncompositedoc.xml
Watch for URL wrapping

I use a C++ project in my solution with a .cmd file in it that runs the
commands I want. And in my solution I put it in the correct spot in my
build order.

If you like I can send you a sample project or post it here.

Martin Garins, MCSD
Vice President - Technology
e-Intersect Corp.
http://www.e-intersect.com
http://www.jppex.com

-----Original Message-----
From: Andy Smith [mailto:Click here to reveal e-mail address]=20
Sent: Wednesday, July 24, 2002 3:27 PM
To: aspngvs
Subject: [aspngvs] RE: Post-build commands

hrm,

I want my assembly to go to BOTH the project bin folder AND the wwwroot
bin folder.

I was thinking I could use the "setup project" thing you mention for
that as well... point the install at my wwwroot bin folder, but does
this mean that i'll have to step thru some install wizard for each
build? is there a "silent install" option?

__
Andy Smith
Keyboard Jockey #3a7-2.78.1

[Original message clipped]

| [aspngvs] member Click here to reveal e-mail address =3D YOUR ID=20
| http://www.asplists.com/asplists/aspngvs.asp =3D JOIN/QUIT=20
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
    
Richard Purchas
Andy

I noticed that Microsoft have a 'BuildRules' add-in available at
[http://msdn.microsoft.com/code/default.asp?URL=/code/sample.asp?url=/MSDN-F
ILES/026/002/526/msdncompositedoc.xml]

It just might do what you want.

[Original message clipped]

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification