Dear all readers!

Our programming topics will moved to GEEKSSHIP.COMGEEKSSHIP.COM is a new developer community for Vietnamese Developers and developers from all over the world. It supports multiple  languages and can store all edited versions of a topic. GEEKSSHIP.COM is really a new generation of developer community.

 

Thưa tất cả bạn đọc!

Tất cả các bài viết về chủ đề lập trình SFI.VN Team sẽ chuyển sang website GEEKSHIP.COM. GEEKSSHIP.COM là một thế hệ cộng đồng dành cho lập trình viên mới cho Việt Nam và các lập trình viên trên toàn thế giới. GEEKSSHIP.COM hỗ trợ đã ngôn ngữ và nó sẽ lưu tất cả các phiên bản của một chủ đề để có thể tham khảo ngược. GEEKSSHIP.COM thực sự là điểm đến mới của cộng đồng lập trình viên!

 

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

lukepro posted on December 4, 2009 19:10

 

RESAPER :

ReSharper cung cấp giải pháp:

Hiển thị  toàn bộ  lỗi và được tô sáng

Loại bỏ mã dư thừa

Đưa ra giải pháp tức thì  cho các lỗi tìm thấy , phân tích giá trị ,đưa ra khung chú thích

Tính năng hiệu chỉnh code làm cho code gọn gàng và dễ nhìn = phím nóng Ctrl+ K+D

Hỗ trợ  công cụ test ,chạy thử nghiệm và gỡ rối

Chuyển hướng tiện dụng như goto  và tính năng tìm kiếm nhanh lẹ như:

Xác định vị trí trong Solution Explorer,xem lại nhưng tìm kiếm gần đây

và rất nhiều hữu ích khác

Download: http://www.jetbrains.com/resharper/download/index.html

 

 

Jquery intellisense Dành Cho vs 2008:

Các bước cài đặt :

B1: Cài đặt thêm VS 2008 SP1 vào cho bản VS 2008(nghĩa là bạn phải có VS2008 trước)

DownLoad :http://msdn.microsoft.com/en-us/vstudio/cc533448.aspx

B2: Cài đặt VS 2008 Patch KB958502 để hổ trợ "-vsdoc.js" Intellisense Files

Download: http://code.msdn.microsoft.com/KB958502/Release/ProjectReleases.aspx?ReleaseId=1736

B3:Download file jQuery-vsdoc.js

DownLoad :http://docs.jquery.com/Downloading_jQuery#Download_jQuery

 

Cách sử dụng :

Cái thả jquery-1.3.2-vsdoc.js vào

 

 

 

 

 

 

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Posted in: .NET , ASP.NET , Visual Studio , JQuery  Tags:
lehoangdung posted on November 20, 2009 19:08

Today I will introduce a tool for Visual Studio Build Version Increment Add-In Visual Studio

I want to have automatic build version increment for my apps and libraries to avoid setting it manually again and again. After 5 minutes searching on the internetnet, I found Build Version Increment add-in for Visual Studio 2005/2008. This add-in is very simple in use but do exactly what everyone developer needs. 

You can download it here: Build Version Increment Add-In Visual Studio

 

*Example of using this tool:

After you installed the addin, fire off Visual Studio and open your favorite solution. Your tools menu should contain an entry for the increment settings.


Clicking on this will display a dialog containing a mini solution explorer. Here you can select the solution or one of the available projects and change it's auto versioning properties:


The property grid contains the following values you can modify:

  • Versioning Style. Here you can configure per version attribute the increment scheme you wish to use. Options are:
    • None: Don't update this attribute.
    • Increment: Simple +1 increment per build.
    • TimeStamp: Set the attribute to the current time. (HHMM)
    • YearStamp: Set the attribute to the current year. (YYYY)
    • DeltaBaseDate: Use the Yogesh increment scheme for this attribute.
    • YearDayOfYear: Set the attribute to the current year followed by the day of the year. (YYDDD)
    • DeltaBaseYearDayOfYear: Set the attribute to the delta base year including day of year. (YYDDD)
    • DeltaBaseYear: Set the attribute to the delta base year.
  • Update file version. Setting this to true will update the AssemblyFileVersion attribute.
  • Update assembly version. Setting this to true will update the AssemblyVersion attribute.
  • Assembly info filename. If your project or solution isn't using the default AssemblyInfo.(cs|vb|cpp) file to set the assembly attributes, you can specify it here. Note that the path is stored relative so this also works for other project members.
  • Configuration name. Set this to the configuration name (Debug, Release, ...) which should be active.
  • Start date. Set this to a custom start date if you're using one of the delta versioning types.

 


Whenever one of the projects in the solution is beeing build, the addin kicks in and updates the required attributes. If the target file containing the attributes is under source control the addin will check it out.

*Result of the above setting:

 

 

I love this addin! :)

If you feel happy with this post, please kick it! 

 

kick it on DotNetKicks.com

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Khi lập trình web, một trong những điều quan trọng nhất mà bạn cần phải quan tâm đó là dung lượng mỗi web response được trả về từ web server đến trình duyệt khách phải nhỏ nhất có thể để bảo đảm cho tốc độ của trang web.

 

Một trong những cách để giảm dung lượng trả về cho client đó là nén các Javascript file và CSS file. Yahoo đã cung cấp cho chúng ta một chương trình (viết bằng Java) để nén các file .css và .js, đó là YUI Compressor.

 

Chỉ cần máy tính của bạn có cài đặt JRE  thì bạn đã có thể sử dụng YUI Compressor bằng cách sử dụng dòng lệnh. (Bạn có thể search bằng Google để tìm hiểu). Nhưng .NET developers có cách hay hơn để nén file mà không cần phải lọ mọ gõ từng chữ, đó là biến YUI Compressor thành một External Tool (công cụ bên ngoài – dịch nôm na như vậy) của Visual Studio và có thể sử dụng nó bên trong Visual Studio.

 

Đầu tiên bạn cần download YUI Compressor và giải nén ở đâu đó.

Biến YUI Compressor thành một External Tool

Mở Visual Studio, chọn Tools -> External Tools...

 

  

 

Tiếp đó là thêm một tool mới với tên YUI Compressor và cài đặt một số tham số như dưới đây:

 

-      Title: Yui Compressor

-      Command: java.exe

-      Arguments: -jar "E:\yuicompressor-2.4.2\build\yuicompressor-2.4.2.jar" $(ItemPath) --charset "UTF8" --type js -o $(ItemFileName).min$(ItemExt)

-      Initial Directory: $(ItemDir)

-      Chọn  “Use Output Window”

Bạn đã có thể sử dụng nó và nếu như có vấn đề gì thì nó sẽ thông báo. Đầu tiên bạn sẽ chọn file *.js ở Solution Explorer. Sau đó chọn menu Tool và chọn Yui Compressor. Làm tươi (refresh) thư mục chứa file *.js của bạn và bạn sẽ thấy có thêm file *.min.js. Đó là file đã được nén.

 

Bạn cũng có thể làm điều tương tự để nén file CSS  bằng cách thay đổi giá trị của tham số -type thành css thay vì js.

 

Thêm vào Toolbar

Chọn Tools->Customize.  Sau đó chọn New…

Sau đó chọn Commands và chọn Tools

 

 

Kéo và thả External Command 1 hoặc cái là Command # nào đó tương ứng với Yui Compressor vào toolbar mà bạn mới tạo. Sau đó click vào Close (cửa sổ Customize) và bạn có thể để toolbar mới ở bất cứ nơi đâu.

Như vậy bạn đã biết được thêm một cách để làm gọn các file *.js và *.css một cách dễ dàng bằng Yui Compressor ngay bên trong Visual Studio

Lưu ý: Bài viết này được lược dịch từ blog của LavaBlast Software Blog

 

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Page List

    Calendar

    «  September 2010  »
    MoTuWeThFrSaSu
    303112345
    6789101112
    13141516171819
    20212223242526
    27282930123
    45678910
    View posts in large calendar

    Recent Comments

    Disclaimer
    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2010 SFI.VN Team