Archive

Archive for the ‘Generic’ Category

Deploy the right app.config every time with build events

May 22nd, 2009 3 comments

It’s been a while since i have been “searching” build events but recently i made a mistake in creating setup for a customer by packing my own app.config so i have to do this all over again(poor me) so i decided to find a way to deploy the “right” app.config file every time.

Of course you can use many apps/procedures to do this and in large teams you can use servers just for this thing (along with unit testing and stuff of course …) but for a poor developer like me which comes from the all-time-classic-keeping-things-simple-DOS-age this is the most sufficient solution. Here it goes(i suppose you have a windows project with a app.config file ready)…

 

Create a app_deploy.config file in project directory

 

test1

 

then while app_deploy.config is selected go to properties (F4) and change the “Do not copy” property to “Copy if newer”

 

test2

 

after that right click on project and select “Properties”, select “Build Events” tab and push the “edit post-build” button

 

test3

 

finally you can write this script into the window (or you can write your own DOS-like scripts using the macros described there)

IF $(ConfigurationName) == Debug GOTO end
md c:\Build\TestProject
copy $(TargetPath) c:\Build\TestProject
copy $(TargetDir)app_deploy.config c:\Build\TestProject\$(ProjectName).exe.config
copy $(TargetDir)*.dll c:\Build\TestProject
:end

 

this line is checking that it isn’t debug mode

IF $(ConfigurationName) == Debug GOTO end

second line makes a build directory

md c:\Build\TestProject

the third line copies the .exe file to output directory

copy $(TargetPath) c:\Build\TestProject

the forth line deploy our configuration file and rename’s it to match the exe file

copy $(TargetDir)app_deploy.config c:\Build\TestProject\$(ProjectName).exe.config

the fifth line copies the necessary dll’s that application requires

copy $(TargetDir)*.dll c:\Build\TestProject

and the last is the “escape” line of the debug mode

 

after this you can build your project in any other mode than debug and then the “deployable” files in c:\Build\TestProject

 

Thank you for reading this and see you soon!!!

Categories: Build, Generic, Visual Studio Tags:

All links to Office 2007 SP2 products

May 1st, 2009 1 comment

I have followed all the Office SP2 product updates so far and i want to share with you in one single post, so here they are

  1. Windows SharePoint Services 3.0 SP2, x86 & x64. http://www.microsoft.com/downloads/details.aspx?FamilyId=79BADA82-C13F-44C1-BDC1-D0447337051B&displaylang=en
  2. Office SharePoint Server 2007 SP2, x86 & x64. http://www.microsoft.com/downloads/details.aspx?FamilyId=B7816D90-5FC6-4347-89B0-A80DEB27A082&displaylang=en
  3. Windows SharePoint Services 3.0 with SP2 slipstream version, x64 http://www.microsoft.com/downloads/details.aspx?FamilyId=9FB41E51-CB03-4B47-B89A-396786492CBA&displaylang=en
  4. Windows SharePoint Services 3.0 with SP2 slipstream version, x86 http://www.microsoft.com/downloads/details.aspx?FamilyId=EF93E453-75F1-45DF-8C6F-4565E8549C2A&displaylang=en
  5. Office 2007 SP2 http://www.microsoft.com/downloads/details.aspx?FamilyID=b444bf18-79ea-46c6-8a81-9db49b4ab6e5&displaylang=en

If you want a more detailed explanation of these downloads refer to Sharepoint Team blog and for the office update in KB968774

Categories: Generic Tags:

Welcome to stelios.gr

April 28th, 2009 No comments

As you can see i have turn the language to engish and changed the theme to show that have been and will be some changes in the blog. Hope to update it more frequently.

Things you can see is that i have updated my blogengine installation to v1.4.5 and changed my datasource from mssql to mysql (it seems to me the right choice for this site)

Thank you for now and hope to post something interesting sonn!

Categories: Generic Tags: