TAILIEUCHUNG - Lập trình .net 4.0 và visual studio 2010 part 35

Nhiều nhà phát triển sử dụng file để giữ các cài đặt ứng dụng cụ thể, chẳng hạn như: dây kết nối cơ sở dữ liệu. Những rắc rối với là khi bạn triển khai các ứng dụng của bạn, bạn thường phải thay đổi các thiết lập này. VS2010 cung cấp khả năng tạo ra một xây dựng cấu hình cho phép bạn chỉnh sửa nội dung của file cho xây dựng các cấu hình khác nhau. Lưu ý bạn cũng có thể sử dụng tính năng này vào file trong các thư mục phụ | CHAPTER 10 Table 10-2. Continued Shortcut Notes script Client script block scriptr scriptref select Server script block Client script reference span style table ul xhtml10f XHTML 1 frameset declaration xhtml10s XHTML Strict document declaration xhtml10t XHTML Transitional document declaration xhtml11 XHTML doctype Deployment I think one of the biggest and most valuable changes in is the new deployment functionality. VS2010 makes it easier than ever before deploy your application. VS2010 allows you to Perform transformations on for different build configurations. Create web packages zip files that contain your application database and settings in a single file . Install your application and all its settings with just one click one-click publishing . Automating your deployment processes is a smart move because it reduces mistakes saves you time and creates a repeatable and self-documented process. Transformation Many developers use file to hold application specific settings such as database connection strings. The trouble with Web. config is that when you deploy your applications you normally have to change these settings. VS2010 offers the ability to create a build configuration that allows you to modify the contents of the file for different build configurations. Note you can also use this feature on Web .config files in sub folders. VS2010 actually uses this functionality already when you switch between debug release mode let s take a look at this now. 231 CHAPTER 10 1. Create a new web application called . 2. Click the Show All Files option in Solution Explorer. 3. Expand . Note how has two files nested beneath it and . 4. Open . It will have code similar to the following shortened for brevity configuration xmlns xdt http .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.