.NET 工具分類文章 顯示方式:簡文 | 列表

2008年06月9日

ReSharper 4.0 Release Candidate 3

ReSharper 4.0 Release Candidate

After months of heavy planning, designing & coding, ReSharper is finally back with state-of-the-art tools for .NET developers! ReSharper 4.0 introduces comprehensive support for Visual Studio 2008 and C# 3.0, solution-wide analysis, .NET Framework classes annotated with custom attributes for better code inspection, single-click code cleanup, brand new refactorings for both C# and VB.NET, plus a whole lot of productivity features. As before, ReSharper comes in three editions: Full, C# and VB.NET*, which are called on to bring every customer precisely what they need — and enjoy the savings.

Download ReSharper 4.0 Release Candidate to test the power of new capabilities and help us put the finishing touch on the product. Whatever edition you want, whatever version of Visual Studio you use, there's a single download file for all.

Resharper 4.0 終於從 2008/04/05 釋出第一個非常 buggy 的版本,到穩定的 night build 4/25 版本,到 5/19 beta 版本,而今天 6/6  Release Candiate 版本,真是令人高興的好消息,相信距離正式版也不遠了。 (不過原本預期四月就會有正式版本的!!!!)

加上 Resharper 4.0 前後的 Visual Stuidio 比較:See also "ReSharper 4.0 vs plain Visual Studio 2008" Comparison.
版本特色:For more details, please visit ReSharper 4.0 Release Candidate Feature set.

  • Full Support for C# 3.0 and LINQ
  • Comprehensive Insight into .NET Framework
  • Solution-Wide Analysis
  • Code Cleanup
  • New Refactorings
  • Multiple New Productivity Features
  • ASP.NET Speedup
...繼續閱讀

Posted by chhuang0123 at 樂多Roodo!22:10回應(0)引用(0)

2008年05月12日

Visual Studio 2008 Service Pack 1 Beta release

Visual Studio 2008 Service Pack 1 Beta 版本釋出,有誰想要嘗鮮試試看的嗎 ?

Visual Studio 2008 Service Pack 1 Beta release notes and a list of fixed issues

MSDN Forum: Visual Studio 2008 SP1 (Beta)

Beta Information
This article discusses a beta release of a Microsoft product. The information in this article is provided as-is and is subject to change without notice.
No formal product support is available from Microsoft for this beta product. For information about how to obtain support for a beta release, see the documentation that is included with the beta product files, or check the Web location where you downloaded the release.
Microsoft Silverlight users
Microsoft Visual Studio 2008 Service Pack 1 (SP1) Beta will not be installed if you have the Microsoft Silverlight Tools Beta 1 already installed on the computer. If you want to apply Visual Studio 2008 SP1 to the release version of Visual Studio 2008, you must first uninstall Silverlight Tools Beta 1.

主要更新項目參考:  Visual Studio 2008 and .NET Framework 3.5 Service Pack 1 Beta by ScottGu's Blog

Improvements for Web Development:

  1. ASP.NET Data Scaffolding Support (ASP.NET Dynamic Data)
  2. ASP.NET Routing Engine (System.Web.Routing)
  3. ASP.NET AJAX Back/Forward Button History Support
  4. ASP.NET AJAX Script Combining Support
  5. Visual Studio 2008 Performance Improvements HTML Designer and HTML Source Editor
  6. Visual Studio 2008 JavaScript Script Formatting and Code Preferences
  7. Better Visual Studio Javascript Intellisense for Multiple Javascript/AJAX Frameworks
  8. Visual Studio Refactoring Support for WCF Services in ASP.NET Projects
  9. Visual Studio Support for Classic ASP Intellisense and Debugging
  10. Visual Web Developer Express Edition support for Class Library and Web Application Projects

Improvements for Client Development:

  1. Application Startup and Working Set Performance Improvements
  2. New .NET Framework Client Profile Setup Package
  3. New .NET Framework Setup Bootstrapper for Client Applications
  4. ClickOnce Client Application Deployment Improvements
  5. Windows Forms Controls
  6. WPF Performance Improvements
  7. WPF Data Improvements
  8. WPF Extensible Shader Effects
  9. WPF Interoperability with Direct3D
  10. VS 2008 for WPF Improvements

Data Development Improvements:

  1. SQL 2008 Support
  2. ADO.NET Entity Framework and LINQ to Entities:
  3. ADO.NET Data Services (formerly code-named "Astoria")
  4. WCF Development Improvements

VB and C# Improvements

Team Foundation Server Improvements
 

...繼續閱讀

Posted by chhuang0123 at 樂多Roodo!9:37回應(0)引用(0)

2008年04月23日

Visual Studio 中 Object Browser 無法顯示註解

最近都在開發 Class Library 所以有機會使用 Object Browser 來看看自己寫了什麼東西,順便看看哪些地方註解忘記寫上去或是有解別錯漏字的,配合【增進撰寫註解速度的小套件 GhostDoc】更是如虎添翼。

但是,寫出來的 Class Library Dll 檔案拿到別人的電腦中引用參考,今天我卻發現在團隊的成員電腦中的 Object Browser 卻無法顯示註解!?都已經用了那麼久的 Class Library,看不到註解也不會講一聲?難怪之前有時候都會問我,那個 xxx 屬性是做什麼用的?那個 yyy 方法的回傳值是什麼?

...繼續閱讀

Posted by chhuang0123 at 樂多Roodo!0:13回應(0)引用(0)

2008年04月22日

Error 8 Task failed because sgen.exe was not found

最近開發一些 Class Library 給團隊的人員使用,而 Class Library 的原始碼都會放在 Subversion 上做版本控制。最近,團隊有位成員心血來潮將將原始碼 Check Out 出來想幫我修改一些程式碼,卻是編譯的過程中發生了奇怪的錯誤訊息。

錯誤訊息如下【Error 8: Task failed because "sgen.exe" was not found, or the .NET Framework SDK v2.0 is not installed. The task is looking for "sgen.exe" in the "bin" subdirectory beneath the location specified in the SDKInstallRootv2.0 value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework. You may be able to solve the problem by doing one of the following: 1.) Install the .NET Framework SDK v2.0. 2.) Manually set the above registry key to the correct location. 3.) Pass the correct location into the "ToolPath" parameter of the task.

我們的作業環境都是使用 Windows XP Professional With SP2,開發環境為 Visual Studio 2008 Professional,僅僅差在我的電腦上面另有保留 Visual Studio 2005 Team Suite。後來上網 Google 了一下,原來真的是少了 "sgen.exe" 檔案。所以,把我電腦中【C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\】路徑下的 "sgen.exe" 複製到他電腦【C:\WINDOWS\Microsoft.NET\Framework\v3.5\】路徑,問題就迎刃而解了。

但是,我一直搞不懂為什麼就只有他的電腦不行咧?為什麼會出現這種問題咧?


Posted by chhuang0123 at 樂多Roodo!23:24回應(0)引用(0)

2008年04月17日

Modeling PowerToys for Visual Studio 2008

因為最近都是在寫規劃與設計 Class,而管理 Class Diagram 與程式碼開發的的部分我都是使用 Visual Studio 2008 Professional Edition來實作。不過利用原先在 Visual Studio 2008 Class Designer 在畫 Class Diagram 說實在不是那麼地方便。不過自從安裝 PowerToys for the Class Designer and Distributed System Designer 之後,對於設定 Class Diagram 來說有比較容易些。主要是因為 PowerToys for the Class Designer and Distributed System Designer 有多了一些小功能,簡化了一些動作使得開發 Class 變得有效率。

...繼續閱讀

Posted by chhuang0123 at 樂多Roodo!0:53回應(0)引用(0)

2008年04月15日

.NET Framework 2.0 SP1、3.0 SP1、3.5 語言套件 Language Pack

Microsoft .NET Framework 2.0 Service Pack 1 (x86) 語言套件 (繁體中文)

Microsoft .NET Framework 3.0 Service Pack 1 語言套件(繁體中文)

Microsoft .NET Framework 3.5 語言套件 (繁體中文)

Microsoft .NET Framework 語言套件包含非英語的翻譯文字 (例如,錯誤訊息)。若未安裝語言套件,則預設會以英文顯示這些訊息。
 

...繼續閱讀

Posted by chhuang0123 at 樂多Roodo!22:38回應(0)引用(0)

2008年04月14日

Windows Live Writer 文章備份

昨天晚上在亂玩 Live Writer,覺得【草稿】與【最近張貼的內容】區塊的內容實在太多了,所以想動手清一清,但是卻造成悲劇。

...繼續閱讀

Posted by chhuang0123 at 樂多Roodo!13:19回應(0)引用(0)

2008年04月8日

增進撰寫註解速度的小套件 GhostDoc

GhostDoc 是 C# 程式設計師撰寫 XML 註解好幫手,由 Roland Weigelt 所開發,Visual Studio 2008、Visual Studio 2005 與 Visual Studio 2003 都有版本可供支援。


...繼續閱讀

Posted by chhuang0123 at 樂多Roodo!23:41回應(0)引用(0)

2008年04月3日

Spell Checker 2.1 - Visual Studio 的拼字檢查小套件

Spell CheckerMikhail Arkhipov (MSFT) 開發的 Visual Studio 拼字檢查小套件。Spell Checker 真的是一款優當不錯的套件,因為它除了幫忙你檢查程式註解中是否有英文單字錯誤,還會提供拼字建議,支援檢查的註解包含:

  • HTML style comments <-- HTML -->
  • ASP.NET server side comments: <%-- ASP.NET --%>
  • JScript, C# and C++ comments: // C++ style comments
  • CSS and C style comments: /* C style comments */
  • VB and VBScript style comments: 'This is VB comment

Spell Checker 不僅支援 Visual Studio 2008 也可相容於  Visual Studio 2005,英文底子不好或是常常需要寫英文的朋友可以試試看!

參考與下載:

  1. Spell checker for HTML, ASP.NET, JScript, VB, C#, CSS and C++ for Visual Studio 2005 and 2008
  2. Spell checker update 2.1: a few bug fixes and couple of new features

讓 Spell Check 支援多國語言

  1. Spell checker for HTML and ASP.NET: multilanguage edition
  2. How to select language for spell checking in code comments

執行畫面:

SpellChecker-0011

圖一、註解中有一錯誤單字

SpellChecker-0012

圖二、Tools -> Spell Checker 執行拼字檢查功能

SpellChecker-0013

圖三、檢查到註解中有一錯誤單字,疑似錯誤單字處會以波浪紋顯示

SpellChecker-0014

圖四、利用滑鼠雙擊單字,會出現拼字建議清單,可以利用該清單來訂定單字忽略錯誤或是加入字典

SpellChecker-0015

圖五、完成修正

...繼續閱讀

Posted by chhuang0123 at 樂多Roodo!22:51回應(0)引用(0)

2008年04月1日

CodeSmith - 快速產生欄位 (Field) 與屬性 (Property)

最近,我在公司裡面的角色有點變動,終於從原本的程式勞工 (Code) 變成比較像是程式設計師 (Programmer)

(雖然說是程式設計師,但是 SA、SD、MIS、DBA、寫文件、跟客戶交涉...通通我都不會少。 Orz MSDN 技術論壇討論: 超大資料表分頁的效能問題 看的也不知道怎麼講,不過我也沒有那麼惡劣就是了!)

怎麼說呢?原因就是,之前手上的專案雖然都遵循 Spiral 模型,慢慢將專案建置起來,但是專案裡面的程式就是不夠 OO,而且畫面與程式設計也切得不是很乾淨。而且,大家都是覺得認為非必要不可,覺得不會寫成類別,寫成 User Control ,導致程式碼無法 Re-Use,而且也難以管理。

一直重複地發明輪子也不是辦法,加上頂頭上司一直很想將部門導向正統的開發專案的路線,從 WBS 分配工作項目給每位程式設計師,然後每個人埋頭苦幹,之後在整合測試然後補齊一堆文件的現況中作一些改變。真的想從 SA -> SD -> Programming 一步一步來,所以現在我大部分的時間都是在寫類別資料庫。

Class0001.

一直在設計類別資料庫,就覺得產生欄位 (Field) 與屬性 (Property) 實在是單調的事情,沒有比較快速的辦法嗎?幸好,最近是用了一套軟體 Code Smith 可以幫忙從資料庫的欄位,將各欄位抽取出來快速產生欄位 (Field) 與屬性 (Property) 的程式碼,讓我輕鬆了不少。以下試用小心得:

CodeSmith-0000
圖一、CodeSmith 的歡迎畫面

CodeSmith-0001

圖二、Schema Explorer

由於,要從資料庫中抽取欄位,所以第一步就是在圖二中 Schema Explorer 中,點擊紅色按鈕新增資料庫連線。透過 Data Source 視窗,就可以設定連線名稱、設定連線字串,如下圖三所示。 (連線字串也可以透過圖三紅色框線所指示位置按鈕工具,會跳出圖四的設定畫面,介面如 Visual Studio 應該很熟悉吧)

CodeSmith-0003
圖三、Data Source 設定

CodeSmith-0004
圖四、Connection Properties 視窗幫助設定 Connection String

新增完連線字串後,點擊畫面中【OK】按鈕完成設定,如圖五:

CodeSmith-0005

圖五、Data Source 設定

完成後,Schema Explorer 就會出現剛剛新增的資料庫了,在把目光移到右邊的 Template Explorer (圖六)。Template Explorer 預設的 ActiveSinnpets 底下就有產生 Filed 與 Property 的執行檔案,以 CSharp 目錄為例在 TableProperties.cst 按下右鍵選擇 Excute,就會跳出 TableProperties.cst 執行視窗 (圖七)。

CodeSmith-0006

圖六、Template Explorer 畫面

CodeSmith-0007

圖七、TableProperties.cst 執行視窗

在 TableProperties.cst 執行視窗,我們就可以選擇剛剛新建立的資料庫中的資料表,例如 dbo.Customers,在點擊 Generate 按鈕,所有欄位會依照 SQL Server 的資料型態轉換成 .Net 平台上相對應的資料型態來產生程式碼,如圖八所示:

CodeSmith-0008

圖八、TableProperties.cst 執行結果,產生了欄位 (Field) 與屬性 (Property)

當然,有時候欄位的對應或是資料型態對應有小誤差,可以自己手動調整,不過總比通通自己 key-in 好多了!

...繼續閱讀

Posted by chhuang0123 at 樂多Roodo!18:28回應(0)引用(0)
 [1]  [2]  [3]  [4]  [5]  [最終頁]