Search:
Namespaces
Discussions
.NET v1.1
Feedback
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...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com