DCSIMG
.NET - Shai Raiten's Blog

Shai Raiten's Blog

It's all about code...

Browse by Tags

All Tags » .NET (RSS)
מפגש קבוצת ALM בנושא אוטומציה ב–Visual Studio 2012
בשנתיים האחרונות שאני שומע רק על Coded UI  ב – Visual Studio אבל יש עוד כ”כ הרבה מעבר, במפגש הקרוב אני אדבר על כל יכולות האוטומציה ב – Visual Studio 2012 עבור מפתחים ואנשי אוטומציה. נדבר על Unit Test ויכולת ה – Fakes החדשה שמגיעה עם Visual Studio 2012 (מחליף את Pex & Moles) ממשק Web Test Manager שמגיע עם Update 2, אשר מאפשר עבודה עם בדיקות ללא MTM. חידושים ודרכים יעילות לכתיבת Coded UI ועבודה עם דפדפנים שונים כגון FireFox ו – Chrome. Web Performance Test Load Testing בנוסף לא כדאי להפסיד...
הרצת בדיקות על דפדפנים שונים עם Coded UI Testing
לאחרונה נתקלתי במספר טענות שלא ניתן להריץ בדיקות Coded UI  על דפדפנים שונים למעט Internet Explorer, אז רק להבהיר – אכן אפשר! אתם צריכים את הדברים הבאים על מנת שהתוסף יעבוד ויאפשר לכם להריץ בדיקות Coded UI על דפדפנים שונים: Visual Studio 2012 Update 1 Chrome 21+ Firefox 15+ IE 9/10 Windows 7,8 and Server 2008 R2 SP1 במידה ואתם עובדים עם Visual Studio 2010 אין צורך לשדרג את השרת, רק להתקין Visual Studio 2012 שיכול לעבוד במקביל עם Visual Studio 2010. ראשית יש להוריד את Selenium components for Coded...
TFS API Part 49 – Delete Team Project
There are many improvements in TFS API for 2012 version, in my previous post I’ve talked about TFS API Part 48 – WorkItemControl And Bypass Work Item Rules that allow work item creation with bypass rule mode in WorkItemStore that allow you to create and change any field value without applying the WorkItem template rules. in this post I’ll show how to delete Team Project using TFS API, be aware Delete Team Project is unrecoverable! Download Demo Project Step 1: Connect TFS and Getting Team Projects...
Run Windows Store Apps From Desktop
When customers ask me how they can run Windows Store app from Desktop usually the answer is – You Can’t, but if you really want there is a way to do that. The reason I usually answer is You Can’t is because – In order to run Windows Store app from Desktop you need to install Windows App Certification Kit , this pack contains “ microsoft.windows.softwarelogo.appxlauncher.exe ” file that can run a Windows Store app by his application model id. So if you plan on publishing your app you can’t assume...
WinRT Toast Notification From Desktop Application
The post title maintained Toast Notification but after reading this post we'll be able to perform API calls to WinRT from your Desktop application. As you know WinRT exposing API’s for three developer languages: C#, C++ and JavaScript, this means that from each language you’ll be able to perform WinRT calls. The idea is based on Windows Metadata File (winmd) that expose those APIs that can be consumed across a variety of technologies and languages. Download Demo Project So why not using those...
How To: Compress Files In WinRT
Windows Store apps are aligned with PLM philosophy (Only active application will use device resources), and because of this most Windows Store apps needs to save their data locally until the next application execution. Windows Store apps can also use the Roaming folder to save files and settings that will be sync with the user Windows Live account, when saving settings or files to Roaming folder you need to make sure those files are not too big so Windows 8 will be able to sync the Roaming folder...
Windows.BackgroundTasks contract or is not installed
Yesterday I did some work on BackgroundTasks (CS) for customer application, while building the structure I faced an unfamiliar error and application crash when the Task was triggered. I’ve look into Windows Event Log and fond a error related to my application: Activation of app fcf446e9-4a89-4d56-b3ae-def1bab41ac2_d824bndbbbqn4!App failed with error: This app does not support the contract specified or is not installed. See the Microsoft-Windows-TWinUI/Operational log for additional information. So...
BackgroundExecutionManager.RequestAccessAsync() Element not found.
Working on Background Task for Windows Store app I faced a annoying issue, while calling: await BackgroundExecutionManager.RequestAccessAsync(); I’ve received the following error: The problem was I put BreakPoint before the line, once I’ve removed the breakpoint below that line everything works just fine. I don’t know why this is happening but this is how I “Solved” the problem. Enjoy
Visual Source Safe Upgrade Tool for Team Foundation Server
If for some reason you or your company is still using VSS it’s time to move forward! Team Foundation server supports VSS Migration, until today there were a command line tool allowing you to migrate VSS repository to TFS Source Control – this tool is called – VSSConverter. VSSConverter command line tool requires configuration file that need manual authoring, but no More! Microsoft has announce a new wizard based UI tool for upgrading VSS repositories to Team Foundation Server 2012/2010. Open the...
Windows 8 Metro – Code Behind
When I develop Windows 8 Metro App I usually use Windows Store app samples to see code examples features but sometimes you want more… For example I really want to know how “Mail” metro app works: How getting access to other email account, sending email and more. So in order to to that I had to gain access to “Mail” metro app… Let’s start the Hack: Problem: WindowsApps folder is blocked and by default you can’t open this folder. Solution : First open Windows Explorer and navigate into “C:\Program...
Using Live SDK in Windows 8 – C#
Tweet Live SDK provides a set of controls and APIs that enable applications to integrate single sign-on (SSO) with Microsoft accounts and access information from SkyDrive, Hotmail, and Windows Live Messenger on Windows Phone and Windows 8. Live SDK support several platforms such as: iOS, Android and of course Windows Phone and Windows 8 applications using C# and JS. In this demo I’ll show how to use Live SDK with Windows 8, so in order to follow this article you need to have the following installed...
Windows 8 RTM JavaScript–Change Lock Screen Image
Tweet In the past couple of months I’ve worked a lot with Windows 8 JavaScript and C#, I’ve also wrote plenty of posts on that subject and there is much more stuff to talk about. In this post I’ll show two things: Using File Picker using JavaScript Change Windows 8 Lock Screen Image Programmatically Download Demo Project Step 1: Create Blank JavaScript Project In the app.onactivated function we add the following code to listen the Choose Picture button and calling the displayCurrentImg function....
Windows 8 RTM C# – Capture Media
Tweet I left JavaScript and started to work on Windows 8 Metro using C# and XAML, in this post I’ll demonstrate how to use WinRT for Camera, File Picker and Audio Recording. Download Demo Project Step 1: Create Blank Metro Project and Initialize MediaCapture Taking pictures using Camera or File Picker is pretty easy using WinRT, we going to use the MediaCapture class for Audio Recording, CameraCaptureUI for taking Picture from the built in Camera and FileOpenPicker for choosing pictures from local...
How To: Bing Maps Custom Tile Overlay - Google Maps
Tweet I got a question from a friend who wanted to replace Bing Maps Tiles with Google Maps Tiles . You might ask yourself why? If you want Google Tiles just replace Bing Control and work with Google Maps…..  In this case I want to work with Bing Map Control because the benefits I get in Metro Applications in Windows 8 for C#, C++, VB.NET and JavaScript.  And I also want Google Maps language support . Download Demo Project Currently Bing Maps doesn't support any language except English...
How To: Bing Maps For Windows 8 Metro Apps - JavaScript
In my last post I talked about Bing Map for C# , but you can also do the same of JavaScript projects using Bing Maps SDK. Download Demo Project Step 1: Maps Developer Account Before you can use Bing Sdk from Windows 8 Metro App you need Maps Developer Account, open http://www.bingmapsportal.com/ , create or enter with existing Windows Live account. Choose “ Create or view keys ” and create new Key for your application. Step 2: Create Bing Maps Metro Application Download the latest bits - Bing Maps...
More Posts Next page »