Archive for category Visual Studio 2010

[#VS2010] Error working with ASP.NET MVC and IIS in Windows 8

image

Buenas,

today was about to begin work on a brand new project of ASP.NET MVC in my Visual Studio 2010 on Windows 8, when I came across the following:

image

—————————
Microsoft Visual Studio
—————————
ASP.NET 4.0 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.0 in order for your site to run correctly.
—————————
OK Help
—————————

Chan! new Windows 8 making mischief, but clear in reality was I that trying a few scripts I delete some features of Windows. So from the option "Turn Windows features on or off", simply choose which are necessary for ASP.NET 3.5 and ASP.Net 4.5 and ready!

image

If it is that, these days I fix one thing and break 2!

 

Saludos @ Home

El Bruno

image image image

Dejar un comentario

[#VS2010] Error con ASP.Net MVC y el IIS en Windows 8

image

Buenas,

hoy estaba por comenzar a trabajar en un flamante proyecto de ASP.Net MVC en mi Visual Studio 2010 sobre Windows 8, cuando me encontré con lo siguiente:

image

—————————
Microsoft Visual Studio
—————————
ASP.NET 4.0 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.0 in order for your site to run correctly.
—————————
OK   Help  
—————————

Chan! de nuevo Windows 8 haciendo de las suyas, pero claro en realidad fui yo que probando unos scripts eliminé unas features de Windows. Así que desde la opción “Turn Windows features on or off”, simplemente elegimos las que son necesarias para ASP.Net 3.5 y ASP.Net 4.5 y listo!

image

si es que, estos días arreglo una cosa y rompo 2 !!!

Saludos @ Home

El Bruno

image image image

Dejar un comentario

[# VS11] May I work on the same project with Visual Studio 2010 and Visual Studio 11?

image

Buenas,

First we go with the answer to the question:

If. It is possible to work on the same project with Visual Studio 2010 and Visual Studio 11 .

Now a little it more than details based on the experience of the past half year. With the arrival of Visual Studio 11, again we see in the manual "project compatibility" between projects in Visual Studio 2010 andVisual Studio 11. This story we know it from VS2005, VS2008 and VS2010; and we know that it is not so simple.

When you migraba a VS2010 project updated the project (.csproj) file and if you worked with Crystal Reports reports, or setup projects, because usually you have one or more problems that can easily live VS2005 and VS2010.

Visual Studio 11 takes a different approach and promises to not change the project files. But taking into account several changes we have in Visual Studio 11, better to see scenarios supports.

For example, I’ve created a solution with 17 projects representative of what it found almost "out of the box" in Visual Studio 2010. Since ASP projects.NET MVC 2 until Office extensions. I have included, only by way of example a project for Windows Phone, although I know that Visual Studio 11 not open it.

image

However, when we opened this solution with Visual Studio 11, the first thing we see is that the Visual Studio Installer project type is deprecated. This is not new, because we knew for some time, but to take this into account.

image

Another error, but this time configuration:

image

There is a little touch the innards of Visual Studio 11 to make it work with an earlier version of SQL Express.

But after a second migration we have ready the project in Visual Studio 11

image

Now, if you were working with ASP projects.NET MVC 2.0, you won’t other than update you to the latest version. ASP projects.NET MVC 2.0 not support and kindly suggest you that you upgrade them to version ASP.NET MVC 3 .

ASPNETMVC2WEBAPPLICATION1_NET4\ASPNETMVC2WEBAPPLICATION1_NET4. CSPROJ:THE PROJECT FILE ‘E:\SRCELBRUNO\TESTS\PROJECTCOMPATIBILITY\TESTFORVS11\ASPNETMVC2WEBAPPLICATION1_NET4\ASPNETMVC2WEBAPPLICATION1_NET4.CSPROJ’ CANNOT BE OPENED. THERE IS A MISSING INTERNET PROJECT. INTERNET: ‘{F85E285D-A4E0-4152-9332-AB1D724D3325}’ IS UNSUPPORTED BY THIS INSTALLATION.HTTP://GO.MICROSOFT.COM/FWLINK/?PRD=12395 & PVER = 11 & SBP = PROJECTTYPEDEPRECATED & PLCID = 0 × 409 & CLCID = 0 × 409 & AR = MSDN & SAR = PROJECTCOMPATIBILITY & O1 = {F85E285D-A4E0-4152-9332-AB1D724D3325 }}

Obviously, Windows Phone projects are not yet supported in Visual Studio 11 .

PhoneApp1_Net4\PhoneApp1_Net4. csproj:The project file ‘E:\srcElBruno\Tests\ProjectCompatibility\TestForVs11\PhoneApp1_Net4\PhoneApp1_Net4.csproj’ cannot be opened. There is a missing Internet project. Internet: ‘{C089C8C0-30E0-4E22-80C0-CE093F111A43}’ is unsupported by this installation. http://go.microsoft.com/fwlink/?prd=12395 & pver = 11 & sbp = ProjectTypeDeprecated & plcid = 0 × 409 & clcid = 0 × 409 & ar = MSDN & sar = ProjectCompatibility & o1 = {C089C8C0-30E0-4E22-80C0-CE093F111A43 }}

Now, the Solution Explorer panel us makes clear, what types of projects are supported, which could not be loaded and which are incompatible.

image

If we try to compile the project, we will see that the same compiled correctly. But now comes the litmus test:

You can Visual Studio 2010 open the new solution and compile the modified projects?

And the answer is…. NOT! The first thing we see is the conversion wizard and perversely did so to the project of ASP.NET MVC 2.

image

The question at this time, dear reader, is to how demons amending this file if the Visual Studio 11 crack has told me that it can not load?. Therefore if, modify and much to the csproj file, and it is for this reason that at this point Visual Studio 2010 understands that you need to update it.

So if you update it with VS2010, so there is no more problems, unless you want to work in mixed-mode on your computer with VS2010 and VS11.

So the endpoints to be taken into account are as follows:

  • Until today Visual Studio 11 cannot be used to develop for Windows Phone.
  • With developments for AZURE, Visual Studio 11 does not yet support a clean upgrade from VS2010, but that is grounds for a full post
  • There is no support for projects of Visual Studio Installer in VS11
  • Be careful with ASP projects.NET MVC 2.0 if you think working with Visual Studio 11

The good thing about all this garden is then really work "side by side" between both Visual Studios without complications, something that before from VS2005 to VS2010 for example wasn’t so easy.

 

Saludos @ Home

El Bruno

image image image

2 comentarios

[#VS11] Puedo trabajar en un mismo proyecto con Visual Studio 2010 y Visual Studio 11?

image

Buenas,

en primer lugar vamos con la respuesta a la pregunta:

SI. Es posible trabajar en un mismo proyecto con Visual Studio 2010 y Visual Studio 11.

Ahora un poco más de detalles basados en la experiencia de este último medio año. Con la llegada de Visual Studio 11, de nuevo vemos en el manual que hay “project compatibility” entre proyectos de Visual Studio 2010 y Visual Studio 11. A esta historia la conocemos de VS2005, VS2008 y VS2010; y sabemos que no es tan simple.

Cuando se migraba un proyecto a VS2010 se actualizaba el archivo de proyecto (.csproj) y si trabajabas con informes de Crystal Reports, o proyectos de setup, pues por lo general tenías uno o más problemas para que puedan convivir fácilmente VS2005 y VS2010.

Visual Studio 11 toma un enfoque diferente y promete no cambiar los archivos de proyecto. Pero teniendo en cuenta varios cambios que tenemos en Visual Studio 11, más vale que veamos que escenarios soporta.

Por ejemplo, he creado una solución con 17 proyectos representativos de lo que encontramos casi “out of the box” en Visual Studio 2010. Desde proyectos de ASP.Net MVC 2 hasta extensiones de Office. He incluido, solo a modo de ejemplo un proyecto para Windows Phone, aunque sé que Visual Studio 11 no lo abrirá.

image

Ahora bien, cuando abrimos esta solución con Visual Studio 11, lo primero que vemos es que el tipo de proyecto de Visual Studio Installer está deprecado. Esto no es novedad, ya que lo sabíamos desde hace un tiempo, pero a tenerlo en cuenta.

image

Otro error, pero esta de vez de configuración:

image

Hay que tocar un poco las tripas de Visual Studio 11 para que funcione con una versión anterior de SQL Express.

Pero después de un segundo de migración ya tenemos listo el proyecto en Visual Studio 11

image

Ahora bien, si estabas trabajando con proyectos de ASP.Net MVC 2.0, no te quedará otra más que actualizarte a la ultima versión. Los proyectos de ASP.Net MVC 2.0 no se soportar y te sugieren amablemente que los actualices a la versión ASP.Net MVC 3.

AspNetMvc2WebApplication1_Net4\AspNetMvc2WebApplication1_Net4.csproj: The project file ‘E:\srcElBruno\Tests\ProjectCompatibility\TestForVs11\AspNetMvc2WebApplication1_Net4\AspNetMvc2WebApplication1_Net4.csproj’ cannot be opened. There is a missing project subtype. Subtype: ‘{F85E285D-A4E0-4152-9332-AB1D724D3325}’ is unsupported by this installation. http://go.microsoft.com/fwlink/?prd=12395&pver=11&sbp=ProjectTypeDeprecated&plcid=0×409&clcid=0×409&ar=MSDN&sar=ProjectCompatibility&o1={F85E285D-A4E0-4152-9332-AB1D724D3325}

Obviamente, los proyectos de Windows Phone no están soportados todavía en Visual Studio 11.

PhoneApp1_Net4\PhoneApp1_Net4.csproj: The project file ‘E:\srcElBruno\Tests\ProjectCompatibility\TestForVs11\PhoneApp1_Net4\PhoneApp1_Net4.csproj’ cannot be opened. There is a missing project subtype. Subtype: ‘{C089C8C0-30E0-4E22-80C0-CE093F111A43}’ is unsupported by this installation. http://go.microsoft.com/fwlink/?prd=12395&pver=11&sbp=ProjectTypeDeprecated&plcid=0×409&clcid=0×409&ar=MSDN&sar=ProjectCompatibility&o1={C089C8C0-30E0-4E22-80C0-CE093F111A43}

Ahora bien, el panel del Solution Explorer nos deja muy en claro, qué tipos de proyectos están soportados, cuales no se pudieron cargar y cuales son incompatibles.

image

Si intentamos compilar los proyectos, veremos que los mismos compilan correctamente. Pero ahora viene la prueba de fuego:

¿podrá Visual Studio 2010 abrir la nueva solución y compilar los proyectos modificados?

Y la respuesta es …. NO !!! Lo primero que vemos es el asistente para conversiones y curiosamente apunta al proyecto de ASP.Net MVC 2.

image

La pregunta en este momento, estimado lector, es ¿cómo demonios se modifica este archivo si el crack de Visual Studio 11 me ha dicho que no lo puede cargar?. Pues si, lo modifica y mucho al archivo csproj, y es por esto que en este punto Visual Studio 2010 entiende que tiene que actualizarlo.

Así que si lo actualizas con VS2010, pues ya no hay más problemas, salvo que quieras trabajar en modo mixto en tu equipo con VS2010 y VS11.

Así que los puntos finales a tener en cuenta son los siguientes:

  • Hasta el día de hoy Visual Studio 11 no se puede utilizar para desarrollar para Windows Phone.
  • Con desarrollos para AZURE, Visual Studio 11 todavía no soporta un upgrade limpio desde VS2010, pero ese es motivo de un post completo
  • No hay soporte para proyectos de Visual Studio Installer en VS11
  • Cuidado con los proyectos de ASP.Net MVC 2.0 si piensas trabajar con Visual Studio 11

Lo bueno de todo este jardín, es que luego realmente el trabajo es “side by side” entre ambos Visual Studios sin complicaciones, algo que antes entre VS2005 y VS2010 por ejemplo no era tan fácil.

Saludos @ Home

El Bruno

image image image

Dejar un comentario

[# WP] HowTo: Install Microsoft.Xna.Framework reference for Windows Phone development in # Windows8

image

Buenas,

I am not a developer of Windows Phone applications, so are the cracks (@ RafaSermed or @ JosueYerayfor example), but since I have Windows 8 installed as main working platform, because I missed in face to finish a few touches to an application of WP.

Now that we have the Windows Phone SDK 7.1.1 Update that already allows us to install WP on Windows 8 development tools, because I thought that it was all fixed. But… zas! the first on the face, to the point of wanting to compile the project, because I realize that I’m lacking in XNA.

image

So ignorant of me, I think that installing Microsoft XNA Game Studio 4.0 it would solve my problems, but of course

trying to install XNA in Windows 8 is just as easy to scratch the back with knee

So he plays a little read installation logs, and after a while I realise that the fundamental problem seems to be related to a product that did not know until the day of today: Game for Windows Client.

And of course, the problem is the following:

  • The installer of Windows Phone tries to install a version of XNA, but cannot
  • Actually it can not, because the XNA Installer tries to install a version of Game for Windows Client and Windows 8 says NOT IN MY WATCH!

So slowly and lovingly, the steps to get everything to work are as follows:

That Yes, the interesting evening of Logs that I noticed today the does me anyone Risa

Downloads:

Saludos @ Home

El Bruno

image image image

5 comentarios

[#WP] HowTo: Install Microsoft.Xna.Framework reference for Windows Phone development in #Windows8

 image

Buenas,

no soy un desarrollador de aplicaciones de Windows Phone, para eso están los cracks (@RafaSermed o @JosueYeray por ejemplo), pero desde que tengo Windows 8 instalado como plataforma principal de trabajo, pues echaba en cara poder terminar de dar unos toques a una aplicación de WP.

Ahora que tenemos el Windows Phone SDK 7.1.1 Update que ya nos permite instalar las herramientas de desarrollo de WP sobre Windows 8, pues pensé que tenía todo solucionado. Pero … zas! la primera en la cara, al momento de querer compilar el proyecto, pues me doy cuenta de que ando falto de XNA.

image

Así que ignorante de mí, pienso que instalando Microsoft XNA Game Studio 4.0 solucionaría mis problemas, pero claro

intentar instalar XNA en Windows 8 es igual de fácil que rascarse la espalda con la rodilla

Así que toca leer un poco los logs de instalación, y después de un rato me doy cuenta de que el problema de fondo parece que está relacionado con un producto que no conocía hasta el día de hoy: Game for Windows Client.

Y claro, el problema es el siguiente:

  • El instalador de Windows Phone intenta instalar una versión de XNA, aunque no puede
  • En realidad no puede, porque el instalador de XNA intenta instalar una versión de Game for Windows Client y Windows 8 dice NOT IN MY WATCH !!!

Así que de a poco y con cariño, los pasos para lograr que todo funcione son los siguientes:

Eso sí, la tarde interesante de Logs que me he dado hoy no me la quita nadie Risa

 

Descargas:

 

Saludos @ Home

El Bruno

image image image

3 comentarios

[#VS11] CodeMaid: Excellent extension with the 3 things that you always need

image

Buenas,

those who know me know that I am a staunch enemy of the mouse. Eye! This does not mean that he is a friend of the touch, but rather than attempt to always work with keyboard shortcuts.

So was that a couple of days ago I installed an extension in Visual Studio called CodeMaid, but it wasn’t until yesterday that I had the opportunity to use it. In fact, one of the keyboard shortcuts for keyboard "stepped" with another that I use and there I realized that had the installed extension.

I’ve been 2 days and the truth is that CodeMaid, I like. I like it because it is free, because it is open source, because it points to simple but effective things and because it works on the latest 4 updates for Visual Studio.

image

For example, has struck me how well it works the "Cleanup" option. This action is responsible for "clean" our code looking for details as

  • unused using statements
  • removes unnecessary whitespace
  • delete consecutive blank lines
  • etc.

So I’ve implemented a couple of files that I knew that they had room for improvement, and it has done really well.

Another option that I like is "Reorganize" a class. This option reorganizes the code of a class based on the specifications of StyleCop. If we then execute the analysis of StyleCop, we will see that it takes us much work above.

Note: recalls that in Avanade Spain , is highly probable that you touch pass a review with StyleCop as mandatory for the coding style rule.

Finally, an action which I think is great. The ability to switch between related files. As usual we usually do when edit WPF between the XAML and the XAML.cs

image

As well, only emphasize those 3 things although I know has more. CodeMaid has been worth for 2 days of work.

Meanwhile, I shall return to activate ReSharper and will work with it that gives me the same options Sonrisa and know him much better.

Download: http://www.codemaid.net/

 

Saludos @ Home

El Bruno

image image image

Dejar un comentario

[#VS11] CodeMaid: Excelente extensión con las 3 cosas que siempre te faltan

image

Buenas,

los que me conocen saben que soy un enemigo acérrimo del mouse. Ojo! eso no significa que sea un amigo de lo táctil, sino más bien que intento siempre trabajar con atajos de teclado.

Así fue que hace un par de días me instalé una extensión en Visual Studio llamada CodeMaid, pero no fue hasta ayer que tuve la oportunidad de utilizarla. En realidad, uno de los atajos de teclado de teclado “se pisó” con otro de los que utilizo y ahí me di cuenta de que tenía la extensión instalada.

Llevo 2 días y la verdad es que CodeMaid, me gusta. Me gusta porque es gratis, porque es de código abierto, porque apunta a cosas sencillas pero efectivas y porque funciona en las últimas 4 versiones de Visual Studio.

image

Por ejemplo, me ha llamado la atención lo bien que funciona la opción “Cleanup”. Esta acción se encarga de “limpiar” nuestro código buscando detalles como

  • sentencias using no utilizadas
  • elimina espacios en blanco no necesarios
  • elimina líneas en blanco consecutivas
  • etc.

Lo he ejecutado en un par de ficheros que sabía que tenían margen de mejora y lo ha hecho realmente bien.

Otra opción que me gusta es “Reorganize” una clase. Esta opción reorganiza el código de una clase basado en las especificaciones de StyleCop. Si luego ejecutamos el análisis de StyleCop, veremos que nos saca mucho trabajo de arriba.

Nota: Recuerda que en Avanade Spain, es altamente probable que te toque pasar una revisión con StyleCop como regla obligatoria para el estilo de código.

Finalmente, una acción que me parece genial. La capacidad de cambiar entre archivos relacionados. Lo más usual que solemos hacer cuando editamos WPF entre el XAML y el XAML.cs

image

Pues bien, solo remarcar esas 3 cosillas aunque sé que tiene más. CodeMaid ha merecido la pena para los 2 días de trabajo.

Mientras, volveré a activar ReSharper y trabajaré con el mismo que me da las mismas opciones Sonrisa y lo conozco bastante mejor.

Descarga: http://www.codemaid.net/

Saludos @ Home

El Bruno

image image image

Dejar un comentario

[# VS2010] New date of expiration for the virtual machines of Visual Studio 2010 ALM

image

Buenas,

those who are still using the virtual machine Visual Studio 2010 ALM for demos and testing, we have the good news that the expiry date of the same has been extended from April 9 to September 10, 2012, 2012. Risa

Download data can be seen from http://elbruno.com/2012/03/02/vs1-maquinas-virtuales-para-probar-visual-studio-11-alm-y-visual-studio-2010-alm/

Saludos @ Home

El Bruno

image image image

Source: http://blogs.msdn.com/b/briankel/archive/2012/03/27/updated-visual-studio-2010-alm-virtual-machine.aspx

Dejar un comentario

[#VS2010] Nueva fecha de vencimiento para las maquinas virtuales de Visual Studio 2010 ALM

image

Buenas,

los que seguimos utilizando la máquina virtual de Visual Studio 2010 ALM para demos y pruebas, sabemos que dentro de unos días se nos acaba el período de prueba.

Por suerte el gran Brian Keller, nos confirma en un post que que la fecha de expiración de la misma se ha extendido desde el 9 de Abril del 2012 al 10 de Septiembre de 2012. Risa

Los datos de descarga se pueden ver desde http://elbruno.com/2012/03/02/vs1-maquinas-virtuales-para-probar-visual-studio-11-alm-y-visual-studio-2010-alm/

 

Saludos @ Home

El Bruno

image image image

Fuente: http://blogs.msdn.com/b/briankel/archive/2012/03/27/updated-visual-studio-2010-alm-virtual-machine.aspx

Dejar un comentario

Seguir

Get every new post delivered to your Inbox.

Únete a otros 908 seguidores