Commandlets de los Labs Azure en Windows x64

powershell

El otro día estaba trabajando en los Hands on Labs del SDK Azure y hay uno que tiene que ver con una lista de tareas que un commandlet PowerShell bastante práctico tenía que preparar.

¿El problema?

Registering commandlets...
Add-PSSnapin : No Windows PowerShell Snap-ins are available for version 1.
At C:UsersMadd0DocumentsAzureServicesKit-FebLabsAdvancedSQLDataServicesAssetsSDSSetup.ps1:17 char:13
+ Add-pssnapin  <<<< AzureServicesManagement

¿Por qué no habría un snap-in para la versión 1? Ahí veo la dll y tengo que suponer que Microsoft va a sacar código que funciona.

¡Fácil!

Como muchos otros problemas que los desarrolladores deben enfrentar en estos días de transición entre 32 y 64 bits, el snap-in que falta nada más necesitaba ser ejecutado en un ambiente x86, pero yo trabajo en Vista x64 (sí, yo sé, un toque masoquista…).

Así que la solución es simplemente abrir la consola Windows PowerShell (X86) y ejecutar SDSCreateStorage.cmd ahí—no olvide ejecutarlo como Administrador.

Publicités

Azure Labs commandlets on Windows x64

powershellI was doing the Hands on Labs from the Azure SDK the other day and one of them involves a task list that a very handy PowerShell commandlet is supposed to fill.

The problem?

Registering commandlets...
Add-PSSnapin : No Windows PowerShell Snap-ins are available for version 1.
At C:UsersMadd0DocumentsAzureServicesKit-FebLabsAdvancedSQLDataServicesAssetsSDSSetup.ps1:17 char:13
+ Add-pssnapin  <<<< AzureServicesManagement

Now, why wouldn’t there be any snap-ins available for version 1? I can see the dll sitting there and I can only assume that Microsoft released code that works.

Easy!

As many other problems developers face these 32-to-64-bit-transition days, the missing snap-in just needed to be executed in a x86 environment, but I happen to work on Vista x64 (yep, a little masochistic, I know…).

The solution then is simply to open the console called Windows PowerShell (X86) and execute the SDSCreateStorage.cmd command there—don’t forget to run as Administrator.

If my kids turn out like this…

As funny and cute as this little girl talking about Visual Studio 2008 might be, I’d be really, really scared if my kids turned out like this 😛 (that is, assuming anyone would actually dare have kids with me in the first place).

Oh, and did she actually test the WPF designer and XAML Intellisense? All the rest, I pretty much agree, but I’m really looking forward to better WPF and XAML support in VS 2010 😉

Compiler pour le Framework 1.1 sous Visual Studio 2005

Il est possible (on se demande si c’est utile, par contre?) de compiler des projets C# sous Visual Studio 2005 pour le Framework .NET 1.1. Plusieurs articles sur le Web expliquent comment le faire, mais ils sont en anglais. Je vais me contenter de traduire (plus ou moins fidèlement) ce post de Jomo Fisher, developpeur dans la team MSBuild. Lire la suite