Blog Home  Home Feed your aggregator (RSS 2.0)  
Peter Nowaks Mobile Blog - VisualStudio
Windows Phone in the cloud
 
 Thursday, January 14, 2010

Wer aktuell versucht mobile Anwendungen oder Installationsdateien mit den Zertifikaten des Windows Mobile SDKs zu signieren erlebt eine kleine böse Überraschung: Die Zertifikate sind nicht mehr gültig.
Der Grund hierfür liegt darin, dass die Zertifikate mit dem 31.12.2009 abgelaufen sind.

Aus diesem Grund wurden neue Zertifikate im Windows Mobile Blog zur Verfügung gestellt. Zu finden sind diese mit entsprechenden Installationsanleitungen hier: http://windowsteamblog.com/blogs/wmdev/archive/2010/01/12/new-windows-mobile-developer-certificates.aspx

Thursday, January 14, 2010 6:47:26 AM (W. Europe Standard Time, UTC+01:00)  #    Comments [0]   .NET Compact Framework | .NET Compact Framework 3.5 | Visual Studio | Windows Mobile  |  Trackback
 Thursday, May 28, 2009

As a few people already realized, the VS 2010 Beta documentation states:

“Support for smart device development has been removed from Visual Studio 2010.”

Short answer: VS 2010 won’t support WM 6.5 / CE 6.0 and earlier, but will support the following versions.

 

Long answer: Read this official statement from Microsofts Technical Evangelist Frank Prengel.

Thursday, May 28, 2009 6:49:25 AM (W. Europe Standard Time, UTC+01:00)  #    Comments [1]   Visual Studio  |  Trackback
 Friday, July 25, 2008

Alex Feinman wies mich gestern darauf hin, dass es anscheinend beim Erstellen von CAB Dateien mit lokalisierten Ressourcen unter Visual Studio 2008 zu einem Fehler kommt. Dies konnte ich selbst nachstellen.

Eine Variante zur Reproduktion:

1. Erstellen einer Geräteanwendung als C# oder VB.NET project
2. Hinzufügen einer neuen Ressource "Resource.en-US.resx"
3. Hinzufügen einer neuen Ressource "Resource.zh-TW.resx"
4. Hinzufügen einiger Strings zu den Ressource-Dateien
5. Erstellen des Projektes. Beachten Sie dabei, dass die entspr. erstellten Ressource-Dateien in den Unterordnern en-US and zh-TW abgelegt werden-
6. Hinzufügen eines CAB-Projektes für intelligente Geräte zur Projektmappe.
7. Hinzufügen der Projektausgabe/Primäre Ausgabe
8. Hinzufügen der Projektausgabe/Lokalisierte Ressourcen
9. Erstellen der CAB Datei. Installieren auf einem mobilen Gerät, wonach die installierten Resource-DLLs vom Zielverzeichnis des Gerätes auf die Desktop Machine kopiert werden.
10. Analysieren der DLLs mit ILDASM auf die MANIFEST/.locale. Alternativ: Reflector

Ergebnis:

Beide Ressource-DLLs sind identisch. Im konkreten Fall sind beide Dateien die der Sprache zh-TW.

Durch weitere Recherche stellte sich heraus, dass es sich hierbei um einen bereits bekannten Bug im CAB Wizard handelt. Somit geschieht dieser Fehler bei der manuellen Erstellung einer CAB Datei, als auch im Visual Studio.

 

Ilya Tumanov beschreibt hier hierzu einen Workaround:

...

Here's a workaround:

1. In main project which produces resource files run a post build procedure
which would create copies of these files with unique name.

For example, "fr\CONVENO Sales.resources.dll" would be copied to
fr\fr_CONVENO Sales.resources.dll

2. In your CAB project add files with unique names instead of originals.

3. Select these files one by one, choose "Rename" in context menu and type
original name.

Here's sample INF. Note files are unique now, but original names would be
restored on device.

Also note I've added files to "Application folder" so %InstallDir% macro is
actually used.

This macro can be redirected to storage card upon installation.

[Version]
Signature="$Windows NT$"
Provider="Microsoft"
CESignature="$Windows CE$"

[CEStrings]
AppName="PPC_CAB_1"
InstallDir=%CE1%\%AppName%

[Strings]
Manufacturer="Microsoft"

[CEDevice]
VersionMin=4.0
VersionMax=5.99
BuildMax=0xE0000000

[DefaultInstall]
CEShortcuts=Shortcuts
AddReg=RegKeys
CopyFiles=Files.Common1,Files.Common2,Files.Common3

[SourceDisksNames]
1=,"Common1",,"C:\Projects\LVTest\LVTest\bin\Debug\Fr\"
2=,"Common2",,"C:\Projects\LVTest\LVTest\bin\Debug\"
3=,"Common3",,"C:\Projects\LVTest\LVTest\bin\Debug\Gr\"

[SourceDisksFiles]
"fr_test.txt"=1
"LVTest.exe"=2
"gr_test.txt"=3

[DestinationDirs]
Shortcuts=0,%CE2%\Start Menu
Files.Common1=0,"%InstallDir%\Fr"
Files.Common2=0,"%InstallDir%"
Files.Common3=0,"%InstallDir%\Gr"

[Files.Common1]
"test.txt","fr_test.txt",,0

[Files.Common2]
"LVTest.exe","LVTest.exe",,0

[Files.Common3]
"test.txt","gr_test.txt",,0

[Shortcuts]

[RegKeys]

--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

...

 

Andere Alternative: WinCE CAB Manager von ocpSoftware.

 

Angeblich ist dieser Bug schon länger bekannt, doch ein Fix ist seitens MS nicht in Sicht.

 

Danke Alex und Ilya, für die Information.

 

- English Version -

 

Alex Feinman informend me, that on creating CAB files including localized ressources under Visual Studio 2008 it can come to an error. I've been able to reproduce this behaviour.

One way of Reproduction:

1. Create a Form-based SmartDevice C# or VB.NET project
2. Add a new resource called Resource.en-US.resx
3. Add a new resource called Resource.zh-TW.resx
4. Add some strings to the resource files
5. Build the project. Observe that the resource DLLs are correctly
generated and placed into subdirectories en-US and zh-TW
6. Add a SmartCab deployment project to the solution.
7. Add Project Output/Primary Output
8. Add project Output/Localized Resource Assemblies
9. Build the cab file. Install it on the device and copy the resource
DLLs from the device install directory to the desktop machine.
10. Examine the DLLs with ILDASM tool checking MANIFEST/.locale. Or use Reflector.

Result:

Both resource DLLs are identical. In this case both are from the language zh-TW.

Trough further investigation it turned out, that this is a well known bug within the CAB Wizard. Therefore this bug affect manual building CAB files as well as building them from inside Visual Studio.

 

Ilya Tumanov describes here a Workaround:

...

Here's a workaround:

1. In main project which produces resource files run a post build procedure
which would create copies of these files with unique name.

For example, "fr\CONVENO Sales.resources.dll" would be copied to
fr\fr_CONVENO Sales.resources.dll

2. In your CAB project add files with unique names instead of originals.

3. Select these files one by one, choose "Rename" in context menu and type
original name.

Here's sample INF. Note files are unique now, but original names would be
restored on device.

Also note I've added files to "Application folder" so %InstallDir% macro is
actually used.

This macro can be redirected to storage card upon installation.

[Version]
Signature="$Windows NT$"
Provider="Microsoft"
CESignature="$Windows CE$"

[CEStrings]
AppName="PPC_CAB_1"
InstallDir=%CE1%\%AppName%

[Strings]
Manufacturer="Microsoft"

[CEDevice]
VersionMin=4.0
VersionMax=5.99
BuildMax=0xE0000000

[DefaultInstall]
CEShortcuts=Shortcuts
AddReg=RegKeys
CopyFiles=Files.Common1,Files.Common2,Files.Common3

[SourceDisksNames]
1=,"Common1",,"C:\Projects\LVTest\LVTest\bin\Debug\Fr\"
2=,"Common2",,"C:\Projects\LVTest\LVTest\bin\Debug\"
3=,"Common3",,"C:\Projects\LVTest\LVTest\bin\Debug\Gr\"

[SourceDisksFiles]
"fr_test.txt"=1
"LVTest.exe"=2
"gr_test.txt"=3

[DestinationDirs]
Shortcuts=0,%CE2%\Start Menu
Files.Common1=0,"%InstallDir%\Fr"
Files.Common2=0,"%InstallDir%"
Files.Common3=0,"%InstallDir%\Gr"

[Files.Common1]
"test.txt","fr_test.txt",,0

[Files.Common2]
"LVTest.exe","LVTest.exe",,0

[Files.Common3]
"test.txt","gr_test.txt",,0

[Shortcuts]

[RegKeys]

--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

...

 

Alternative: WinCE CAB Manager von ocpSoftware.

 

This bug is said to be known for a longer period of time but no fix from MS it to be seen on this.

 

Thanks Alex and Ilya for this information.

Friday, July 25, 2008 6:05:52 AM (W. Europe Standard Time, UTC+01:00)  #    Comments [0]   mobile Tools | Visual Studio  |  Trackback
 Monday, November 19, 2007

Für diejenigen, welche in den letzten Monaten auf meiner Session zum Thema "Neuerungen im Visual Studio 2008 für mobile Entwickler" waren, können jetzt nun endlich selbst Hand anlegen: Visual Studio 2008 ist da. Doch leider nicht für alle. Während man als MSDN Abonnement die Software (zumindest in der Team Edition ab Premium Subscription) die Software bereits herunterladen können (weitere Editionen wurden noch nicht entdeckt - Stand 19.11.2007  14:32 Uhr), müssen sich reguläre Käufer noch bis Februar 2008 gedulden. Dann erst gibt es die Software regulär zu kaufen.

English Version

For those who have attended to my session "New stuff around Visual Studio 2008 for mobile developers" in the last several month now have the possibility to get dirty: Visual Studio 2008 is released, but not for everyone:  While the software can be downloaded via MSDN Subscription (it is VS 2008 Team Edition via MSDN Premium Subscription, other versions haven't been spotted yet - 2007/11/19 2:32 PM)) persons who want to buy the software have to wait for the official release in february

Monday, November 19, 2007 2:40:53 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0]   .NET Compact Framework | .NET Compact Framework 3.5 | Visual Studio  |  Trackback
 Tuesday, October 02, 2007

Wie versprochen nun auch mal die Folien und die zugehörigen Visual Studio 2008 Beispiele als Download, welche ich beim .NET Summercamp am 27. / 28. September in Leipzig, als auch bei der Usergroup Paderborn am 1. Oktober in Paderborn vorgestellt habe.

Die Folien selbst sind als PDF Datei verfügbar, verpackt als RAR-Archiv.
Die Beispiele sind einzeln erhältlich als ZIP-Archiv in der Reihenfolge, in welcher Sie vorgestellt wurden:

  1. LINQ to Dataset, LINQ to Objects und LINQ to XML mit dem .NET Compact Framework 3.5
  2. WCF / E von der Pieke auf
  3. WCF / E via ServiceProxy

Vielen Dank an alle die teilgenommen haben. Mir hat es viel Spaß gemacht dabei zu sein. Besonderer Dank geht an die Duisburger Jungs, welche extra für den Vortrag nach Paderborn gekommen sind.

- English Version -

Like promised, here are the slides (german only) and according Visual Studio 2008 Samples for Download, which have been presented at the.NET Summercamp 27th / 28th of September in Leipzig as well as at the Usergroup Paderborn on October 1st.

The slides are in PDF-Format available, packed as RAR.
The Samples packed as ZIP are available in the order, in which they have been presented:

  1. LINQ to Dataset, LINQ to Objects und LINQ to XML with the .NET Compact Framework 3.5
  2. WCF / E from Scratch
  3. WCF / E via ServiceProxy Tool

Many thanks to all that have attended. I've enjoyed the time being. Special thanks goes out to the guys from Duisburger, who have traveled a long way to attend to the session.

01. SmartDeviceProjectLinq.zip (20,98 KB) 02. WcfServiceLibraryHelloWorld.zip (25,29 KB) 03. SmartDeviceProjectWCF2.zip (27,62 KB) VS_2008_B2_und_NetCF_3.5.rar (1,18 MB)

Tuesday, October 02, 2007 3:22:45 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0]   .NET Compact Framework 3.5 | Veranstaltung | Visual Studio  |  Trackback
Copyright © 2010 Peter Nowak. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.