Asp.net with Muhanad YOUNIS

August 2008 - Posts

AspNetCompiler inside Cruise Control (ccnet) Blocks

AspNetCompiler block made my go crazy in the last two days until i was able to use it with ccnet. I'll show a small sample about how to use AspNetCompiler with ccnet:

in the ccnet.config between task blocks but these lines;

                       <msbuild>
                                <executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable><!--msbuild exe directory -->
                                <workingDirectory>D:\develop\CCnet\myProject\</workingDirectory><!--your working directory -->
                                <projectFile>C:\Program Files\CruiseControl.NET\server\AspNetCompilerConfiguration.xml</projectFile><!--the configuration xml file which will hold  AspNetCompiler  lines-->
                                <logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
                        </msbuild>

 

now create a new xml file and call it AspNetCompilerConfiguration.xml which will contain the lines below;

<Project
        xmlns = "http://schemas.microsoft.com/developer/msbuild/2003"
        name = "AspNetPreCompile"
        DefaultTargets = "PrecompileWeb">
        <Target Name = "PrecompileWeb">
                <AspNetCompiler
                        VirtualPath = "DeployTemp" <!--this directory will be created in side your framework temp directory -->
                        PhysicalPath = "D:\develop\CCnet\myProject\WebSite"<!--give the path of the project that will be precompiled -->
                        TargetPath = "D:\develop\CCnet\myProject\PreCompiled"<!--your output folder-->
                        Force = "true"
                        Debug = "true"
                        Updateable = "true"/>
        </Target>
</Project>

and that is all !! hope this helps you.

 

Create CCNet ( CruiseControl.Net ) config file (ccnet.config) more easy!

 While I'm trying to setup the framework of our new project which is related with E-Government projects; i looked around for an easy way which might help me to configure the config file of the CCNet. the normal configuration file is Xml and it is not that much easy to edit. I found a visual ccnetConfig create on codeplex which helps you to create your config file easier. Hope this helps you as much as it did to me.

http://www.codeplex.com/ccnetconfig

VS 2008 SP1 Released!

Microsoft Visual Studio 2008 Service Pack 1 released.

for more information http://www.geekzone.co.nz/content.asp?ContentId=7875

to download : http://www.microsoft.com/downloads/details.aspx.....

 

Posted: Aug 12 2008, 11:53 AM by mohi88 | with no comments
Filed under: ,
Visual Studio Add-Ins

There is many ways to make your life easy with Visual  Studio. Here is some vs2005-vs2008 add-ins which you'll love to use it.

  • GHOSTDOC : this tool is free. You can use this tool to add a summary to your classes, methods, fields ..... and much more. Can be customized as you like to help you to improve your coding skills and make your code more understandable.
  • AGGIORNO : another great add-in which can be used to improve the ability of Web Developer to achieve more tasks in less time.
  • CODEKEEP : I love this tool, it helps you to keep some common code snippet to be reused again.
  • VSMOUSEBINDINGS : helps you to customize your mouse buttons behavior on visual studio.
  • WSCONTRACTFIRST : I did not use this tool, but I know that its useful while creating web services and customizing them.

Of course there is many other add-ins for visual studio, I just wanted to highlight the ones that may improve your coding skills and help you to make your life more easy.

By the way I can not end this post without mentioning SNIPPY which gives you the ability to create your own code snippet easily.

When TO SOA

  In the last few years developer start to use SOA in many applications, because of that many new developers are too much excited to use SOA and apply the architecture of it to their applications. I found out that many applications start to be more complicated (while the application is too much simple without SOA). So, when to use SOA.
First we must know what is the meaning of SOA (not as Service-oriented architecture); it’s a kind of architecture to be used over software and web applications to increase the applications flexibility according to business requirements. SOA gives the ability to software and applications to exchange data and functionality by using xml services over the network.


So let us see when to use SOA;


  1. If you have a business requirement that force you to develop an application that will be used on multiple platforms. (mobiles, desktops, laptops…)
  2. If you have to divide the application into parts (and the parts still communicate with each other) like ERP developments. ( you may divide an ERP application into parts like Financial, HR, Logistic and these part can still communicate with each other.
  3. If you need to open one of your services to another developer or company.
  4. If you want to exchange data over the network in a secured way. 

         ……… 
   There is many other ways and needs to use SOA depending on your customer application needs.
We must keep on mind that SOA include N-tier programing, but N-tier does not include or use SOA all the time. I do believe that each software or application must be build over tiers to achieve the OOP most important principle “Encapsulate what varies”.
So use tiers in all applications but use SOA according to your business demends.

Posted: Aug 02 2008, 05:41 PM by mohi88 | with no comments
Filed under: , , ,
More Posts