Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / February 2007

Tip: Looking for answers? Try searching our database.

Build process question - C# project

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jokerekpl - 15 Feb 2007 10:46 GMT
Hi,
I would like to create add-in that will integrate with VS 8 build process. I
would like to execute custom task after project compilation but before
linking, or before project build. I would like to make some temporary changes
to source files (before compilation) and some resource files (after
compilation but before linking).
Does any one know if its possible and how can i achieve that?
Thanks for any tips.

Regards.
Shaun C McDonnell - 15 Feb 2007 15:15 GMT
MsBuild custom tasks is the way to do this.

Shaun McDonnell

> Hi,
> I would like to create add-in that will integrate with VS 8 build process.
[quoted text clipped - 8 lines]
>
> Regards.
jokerekpl - 15 Feb 2007 16:26 GMT
Hi,
For custom MSBuild project or for my VS Projet?
I was thinking about changing source files that are in project and save it
to temporary location and use it for compilation. I want to revert this
changes after compilation.
I can watch for OnBuildBegin event on DTE and make my changes and save file
and revert it after build but if changed file was opened in editor user will
get information about file changes to reload and i don't want this.  
Or maybe i don't need to integrate with DevEnv? Does it use common tasks
defined in .NET Framework directory while compilation?

> MsBuild custom tasks is the way to do this.
>
> Shaun McDonnell
Shaun C McDonnell - 15 Feb 2007 18:23 GMT
Yes, you can use all common tasks within the .NET Framework and can create
your own.  In Visual Studio 2005, the Solution Files (.sln) are the MsBuild
files.

Shaun  McDonnell

> Hi,
> For custom MSBuild project or for my VS Projet?
[quoted text clipped - 12 lines]
>>
>> Shaun McDonnell
jokerekpl - 16 Feb 2007 09:06 GMT
Thank you for your help.

> Yes, you can use all common tasks within the .NET Framework and can create
> your own.  In Visual Studio 2005, the Solution Files (.sln) are the MsBuild
> files.
>
> Shaun  McDonnell

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.