Enterprise Architect from Sparx Systems allows you to integrate NUnit unit tests into your project. As the new build of EA (8.863) now supports .net 4.0 I revisited this functionality and prepared a little walkthrough.

All of this work has been done on Windows 7 x64 with Visual Studio 2010.  In order to have as little troubles as possible you have to go for the x86 version of the tools so everything works nicely. As EA is a x86 Application using the x64 Tools will not work.

In order run this you need at least NUnit 2.5.5 – where as I went with the latest Version NUnit 2.5.7

I prepared a simple demo solution in Visual Studio 2010 that consists of an Accounts an Accounts Test Project.

img3

(weiterlesen…)

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg
The developer Tool for Windows Phone reached beta-status. And Microsoft included into the 380 mb Setup Expression Blend 4 for Windows Phone.
So far the good news.
The bad news: several things have changed from CTP.April to beta – most of all: consolidation and Namespaces. MS advices to totally rebuild your projects, and just copy the content of xaml and xaml.cs files except the template-code.
It took some time, but I got my application running again.
See a detailed list of changes on this page:

The developer Tool for Windows Phone reached beta-status! And Microsoft included Expression Blend 4 for Windows Phone into the 380 mb Setup. Get it here: MS Setup, but make sure to uninstall any CTP version before!

So far the good news.

Bad news are: several things have changed from CTP.April to beta – most of all: consolidation and Namespaces. MS advices to totally rebuild your projects, and just copy the content of xaml and xaml.cs files except the template-code.

It took some time, but I got my application running again.

See a detailed list of changes on this page: MS What’s new in beta version.

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg

For some applications this is a very useful technique to assure, the user runs the latest version.
For some applications, you may experience difficulty with settings files. Settings files in that way, that users store local data in there, and that these changes are not going to be lost on the next app-update.

There are 3 known circumstances, where your settings files will not get updated:
1) downgrade your deployment version (e.g previous version was 2.5, new version is 2.3)
2) change your deployment provider url
3) changes in public key token/certificates

So if you can make sure, that none of the 3 reasons will ever appear, let click-once setup handle your settings files.
Otherwise, you might consider moving the files to a location outside the click-once environment (e.g. the localappdata folder).
Get an idea of how to do this in this article.

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg

Just playing with Silverlight & Windows Phone 7.

Guess, the result is quite okay so far. For what you can see, I used 2 components:
- PanoramaView Control: look&feel like known from the MS presentations
- AnimateOrientation: does the animation when rotating the phone.

See the video attached for where I got so far.

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg

Wednesday I installed Visual Studio 2010 Premium, and played a while with the WPF-based editor.
Annoying  thing: I could not select any of the controls on a WPF-Application-Form. Whenever I clicked on the TextBox, the Designer added a Border-Control.

Then I discovered, that the mouse-pointer was not at first position in the toolbox. So I rightclicked the toolbox, and chose “Reset Toolbox”. And there it was again: the mouse pointer at topmost position.

I do not know, why this happend, but now I can choose the controls on a form again.

One more nasty thing: Intellisense was disabled for C#. I had to turn it on manually …

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg

Hier eine Kurzzusammenfassung der aus meiner Sicht wichtigsten Neuerungen in .Net 4.0 bezüglich COM:

1) COM (interops)
Endlich wird es möglich sein, eine interop für z.B. Excel 2003 einzubinden, und das Programm auch für Office 2007 laufen zu lassen. Bislang mußte auf Fremdkomponenten zurückgegriffen werden, oder LateBinding benutzt werden. Bei längeren Codes bricht man sich dabei schon mal die Hände.

2) Optionale Parameter
Ebenfalls in Bezug auf COM eine wesentliche Erleichterung. Beispiel: öffnet man ein Excel-Dokument, benötigt dieses 13 Parameter. Ich benötige aber nur den 1. (FileName). Die restlichen Parameter mußte ich bislang mit Type.Missing auffüllen.
In VB geht das wesentlich einfacher von der Hand, daher benutze ich dieses gerne für die Office-Programmierung.

3) Named Parameter
Ebenfalls in VB.NET schon längst bekannt, jetzt auch in C#: Excel.Open(filename:”test.xmls”)

4) Parameter “dynamic”
Die Typzuordnung erfolgt erst zur Laufzeit. Damit sind Typkonvertierungen oder Reflection bei COM nicht mehr zwingend.

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg