1. 程式人生 > 實用技巧 >Visual Studio 11 Express Beta for Web中沒有任何功能的通知

Visual Studio 11 Express Beta for Web中沒有任何功能的通知

There's a bunch of new stuff in Visual Studio 11 Express for Web that I suspect not everyone noticed. Remember that Express is our free version of Visual Studio. Sometimes I hear folks complain that Express isn't advanced enough, even though its free.

我懷疑不是所有人都注意到了Visual Studio 11 Express for Web中的許多新功能。 請記住,Express是我們的Visual Studio的免費

版本。 有時我聽到人們抱怨Express不夠先進,即使它是免費的。

單元測試內建在Visual Studio Express中 (Unit Testing is Built-into Visual Studio Express)

For example, no one noticed that Unit Testing is in Express. You can add a Unit Test to an existing Web Solution. I'll add a Unit Test Project, the right click on References and add a reference to System.Web.Mvc to my ASP.NET MVC Application.

例如,沒有人注意到單元測試在Express中。 您可以將單元測試新增到現有的Web解決方案。 我將新增一個單元測試專案,右鍵單擊“引用”,然後將對System.Web.Mvc的引用新增到我的ASP.NET MVC應用程式中。

Note the new Add Reference dialog? It's got a search box, it's multi-threaded, and I can add multiple references by checkbox. That's new stuff, friends. Subtle, but it is one of those "death by a thousand tiny cuts" things that the team is trying to fix.

注意新的“新增引用”對話方塊嗎? 它有一個搜尋框,它是多執行緒的,我可以通過複選框新增多個引用。 朋友,那是新東西。 很微妙,但這是團隊試圖解決的“千篇一律的死亡”之一。

Reference Manager

I can setup a bunch of tests for my ASP.NET MVC application and run them by right clicking "Run Tests."

我可以為ASP.NET MVC應用程式設定一堆測試,然後通過右鍵單擊“執行測試”來執行它們。

Unit Test Explorer in Express

工具欄中的瀏覽器選擇器/啟動器 (Browser Chooser/Launcher in the Toolbar)

When you hit F5 or Ctrl-F5 to check out or debug your website you often want to try it in different browsers. You can easily switch between browsers now, directly:

當您按F5或Ctrl-F5簽出或除錯您的網站時,您通常想在其他瀏覽器中進行嘗試。 您現在可以直接在瀏覽器之間輕鬆切換:

Browser Switcher built into the toolbar

解決方案資源管理器中懸停時的影象縮圖 (Image Thumbnails on Hover in the Solution Explorer)

If you hover over an image in the Solution Explorer you'll see a preview thumbnail of that image.

如果將滑鼠懸停在解決方案資源管理器中的影象上,您將看到該影象的預覽縮圖。

Hover preview

內建CSS拾色器 (CSS Color Picker built-in)

Not only does the new CSS editor support lots of snippets like @media as well as outlining and vendor-specific prefixes, it also has a lovely color picture that is smart about your color scheme. Hint: select a color in a CSS file and press Ctrl-J.

新CSS編輯器不僅支援許多片段,例如@media以及概述和特定於供應商的字首,而且還具有漂亮的彩色圖片,使您的配色方案更加聰明。 提示:在CSS檔案中選擇一種顏色,然後按Ctrl-J。

CSS Color Picker

快速啟動 (Quick Launch)

You know how you're always going Tools | Options | Text Editor | Languages | JavaScript | References, blah blah blah? Now just press Ctrl-Q and type "references" (or whatever), and go right to it. Don't remember how to get there, just go there.

您知道自己一直在前進嗎? 選項| 文字編輯器| 語言| JavaScript | 引用,等等等等嗎? 現在,只需按Ctrl-Q並鍵入“引用”(或其他),然後直接轉到它即可。 忘記了如何到達那裡,只是去那裡。

Quick Launch

更聰明JavaScript參考 (Smarter JavaScript references)

If you do make it into the JavaScript references dialog, check out the relative references.js file. You can put in your global-scoped JS files with documentation and get nice JavaScript intellisense WITH documentation...

如果確實將其放入“ JavaScript引用”對話方塊,請簽出相對的references.js檔案。 您可以將全球範圍內的JS檔案與文件一起放入,並隨文件獲得不錯JavaScript intellisense ...

JavaScript References

...that looks like this. That's lovely jQuery documentation, as you type.

...看起來像這樣鍵入時,這是可愛的jQuery文件。

Great JavaScript Intellisense

頁面檢查器 (Page Inspector)

Sometimes when you get partial views inside master pages with editor templates and other nested things in a large application it can be hard to figure out the answer to something simple like "what line of code made THAT line of HTML?" There's a new feature built into Visual Studio Express for Web called "Page Inspector."

有時,當您在母版頁中獲得帶有編輯器模板的部分檢視以及大型應用程式中的其他巢狀內容時,可能很難找出簡單的答案,例如“是哪一行程式碼使那一行HTML? Visual Studio Express for Web內建了一項稱為“頁面檢查器”的新功能。

It's hard to explain, so here's an animation. You hover over an item in the browser and it shows you what line of code make that HTML. You can also do live CSS editing.

很難解釋,所以這是一個動畫。 您將滑鼠懸停在瀏覽器中的某個專案上,它會向您顯示使該HTML的程式碼行。 您還可以進行實時CSS編輯。

往返 (Round Tripping)

You know how you never want to install a new version of Visual Studio because you're afraid it will upgrade your existing project files and mess up the whole team? Round Tripping works now between Visual Studio 2010 SP1 and Visual Studio 11. Here's the same .NET 4 application opened in the VS11Beta and in VS2010SP1. Oh, and by the way, don't sweat the color thing, I'm confident it will turn out OK.

您知道如何永遠都不想安裝Visual Studio的新版本,因為您擔心它會升級現有的專案檔案並弄亂整個團隊嗎? 往返執行現在可以在Visual Studio 2010 SP1和Visual Studio 11之間工作。這是在VS11Beta和VS2010SP1中開啟的同一.NET 4應用程式。 哦,順便說一句,不要流汗彩色的東西,我相信它會好起來的。

VS2010 and Dev11 living together and no one is freaking out

Note the dropdown in VS11 Beta. I can develop any .NET app from .NET 2 (!) and up with the one IDE. I'm using the beta as my main IDE currently.

請注意VS11 Beta中的下拉列表。 我可以從.NET 2(!)到一個IDE一起開發任何.NET應用程式。 我目前使用Beta作為我的主要IDE。

IIS Express (IIS Express)

IIS Express is now the default website host inside of the older "ASP.NET Development Server." That means you can test on a real IIS without being Admin. It runs when you run your app, then it goes away. Things that works in IIS Express should work the same way in IIS because it's the same core web server. As my friend Damian showed me, I can even test under SSL with just a doubleclick:

IIS Express現在是較舊的“ ASP.NET開發伺服器”內部的預設網站主機。 這意味著您無需管理員即可在真實的IIS上進行測試。 它在您執行應用程式時執行,然後消失了。 在IIS Express中工作的事物應該在IIS中以相同的方式工作,因為它是同一核心Web伺服器。 正如我的朋友達米安(Damian)向我展示的那樣,我什至只需雙擊即可在SSL下進行測試:

SSL Enabled = True

沒有人注意到的大祕密 (The Big Secret Thing No One Noticed)

I'm surprised no one has figured this one out yet, but I'll post on it a little more as I start to share more of the "One ASP.NET" plan. Check out Tools | Extensions. See those template packages? ASP.NET templates (those are the File | New things) are actually extensions...VSIXs, in fact. We can update them as we like now. ASP.NET can do interesting and innovative things (and NuGet plays a part in this) without waiting for a new version of Visual Studio. Starting to see why that'd be useful?

令我驚訝的是,還沒有人想到這一點,但是當我開始分享更多的“ One ASP.NET”計劃時,我會在上面多貼一些。 檢出工具| 擴充套件程式。 看到那些模板包? 實際上,ASP.NET模板(即檔案|新事物)實際上是擴充套件... VSIX。 我們可以立即更新它們。 ASP.NET可以執行有趣且創新的事情(NuGet參與其中),而無需等待Visual Studio的新版本。 開始明白為什麼這樣做會有用嗎?

ASP.NET Templates are extensions now

That's just the stuff I can think of off the top of my head. Point is, better free tools and more open source continues to be the goal with our team. There's lots more details and videos up at http://www.asp.net/vnext. You can get Visual Studio 11 Express for Web here. Let me know if you find any good bugs and I'll get them straight to the team, or better yet, put feedback on our UserVoice site.

那只是我能想到的東西。 重點是,更好的免費工具和更多的開源仍然是我們團隊的目標。 在http://www.asp.net/vnext上有更多詳細資訊和視訊。 您可以在此處獲得Visual Studio 11 Express for Web 。 如果您發現任何不錯的錯誤,請讓我知道,我會直接將它們傳送給團隊,或者更好的是,在UserVoice網站上提供反饋

相關連結 (Related Links)



Sponsor: My thanks to DevExpress for sponsoring this week's feed. There is no better time to discover DevExpress. Visual Studio 11 beta is here and DevExpress tools are ready! Experience next generation tools, today.

贊助商:非常感謝DevExpress贊助了本週的提要。 沒有更好的時間來發現DevExpress。 Visual Studio 11 beta已釋出,DevExpress工具已準備就緒! 立即體驗下一代工具。

關於斯科特 (About Scott)

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

斯科特·漢塞爾曼(Scott Hanselman)是前教授,前金融首席架構師,現在是演講者,顧問,父親,糖尿病患者和Microsoft員工。 他是一位失敗的單口相聲漫畫家,一個玉米種植者和一本書的作者。

facebook twitter subscribe About 關於 Newsletter 時事通訊 Hosting By 主持人 Hosted in an Azure App Service

翻譯自: https://www.hanselman.com/blog/features-no-one-noticed-in-visual-studio-11-express-beta-for-web