Buenas,
pues eso, 1 imágen que lo dice todo
Saludos @ Home
El Bruno
Buenas,
Today he has a tutorial on those fast which I hope to save you some time, instead of investigating how to do it.What we want to do is simple: publish a WPF application with ClickOnce using a website of Azure as our point of distributing and updating. We are going with the step by step.
1. AZURE portal (www.azure.com) create a new item of type “COMPUTE / / WEB SITE / QUICK CREATE”.
2. For this demo created website is identified with
http://elbrunoclickonce.azurewebsites.net
.
3. AZURE ready, now go to Visual Studio 2012 and create a new WPF Application project. In this case I’ve called it “ElBrunoClickOnce”.
4. This step is optional but comes in handy to test our deployments, we will show the version number of the deployment of ClickOnce in the MainWindow title.
5. We add a reference to System.Deployment.
6 We modify the code of the MainWindow
1: using System.Windows;
2:
3: namespace ElBrunoClickOnce
4: {
5: public partial class MainWindow : Window
6: {
7: public MainWindow()
8: {
9: InitializeComponent();
10: DisplayVersion();
11: }
12:
13: private void DisplayVersion()
14: {
15: var version = string.Format("assembly: {0}", ((System.Reflection.AssemblyFileVersionAttribute)
16: (System.Reflection.Assembly.GetExecutingAssembly().
17: GetCustomAttributes(typeof(System.Reflection.AssemblyFileVersionAttribute),
18: false)[0])).Version);
19:
20: if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)
21: {
22: System.Deployment.Application.ApplicationDeployment ad =
23: System.Deployment.Application.ApplicationDeployment.CurrentDeployment;
24: version = string.Format("ClickOnce: {0}", ad.CurrentVersion.ToString());
25: }
26: Title = version;
27: }
28: }
29: }
7. If we run the application we will see the version number by default of the Assembly
8. Now that we have our application, we will proceed to publish the same in Azure website. For this, we will first add a project ASP.Net MVC 4 to our solution. In this case I called it “ElBrunoClickOncePublish”.
9. Inside of the new project we created a folder called “install”
10. Now we will publish our web project to Azure. Luckily the friends of Microsoft have done more easier and, with each new upgrade of AZURE. We’re going for the easy way of all: we select our project Web, deplegamos the context menu and select “Publish”
11. Then select a profile for the publication. You can download this profile from the AZURE of our website management console.
12. A more simple, available since the last update of AZURE, method is to select “Import” and select the target website using our credentials of AZURE,.
13. Once imported profile we can follow the step by step Publishing Wizard. The final step allows us to make a preview of the items to publish and launch the publication.
14. Once published we can see the site online
15. Now we are going to configure ClickOnce deployment. We access the WPF project properties and in the Publish section we complete the following values:
Publishing Folder:…\ElBrunoClickOncePublish\install\ (this configuration publishes ClickOnce files directly to the Web site project directory)
Installation Folder:
http://elbrunoclickonce.azurewebsites.net/install/
16. In the updates section, we defined that our application should be validated by new versions before launching and define again the upgrade path.
17 We complete the settings in the section “Options”
18 It is important to define a publication for our project page, in this case > publish.htm
19 And we’re ready, click “Publish Now” and launched a publication.
20. When you have finished publishing, selected the option to show all files in the web project and see that the ClickOnce publishing elements are inside the folder “install”
21 Add them as part of the website and launched a publication to AZURE from our website.
22. Our url of publication is ready, in this case it is
http://elbrunoclickonce.azurewebsites.net/install/publish.htm
, if we sailed it we will see that we have the installation of our app page.
23. An important detail. As I haven’t used any “good” certificate for the publication, at the time of install Win8 warns us that this may be a software of dubious origin. As in this case, it comes from my own, select the option “more info” and then “run anyway”
24. Then we can install the application.
25 Then again validate the security, already we can see our application running and displaying the ClickOnce version number.
26. Now we will generate a new version of the WPF app. We do a publish it again and we will see in the web project, we have 2 versions
27. Now we add to the project the generated version and I aconsejor remove the previous version. (I.e. AZURE, the space is paid!)
28. Publish our web project back to AZURE and if we navigate the installation page will see that it has been updated.
29. Now, try ClickOnce. We launched the application and see that we have an available update.
30. We apply the update, a pair of security warnings and ready! We have the updated version
And only 30 steps
Saludos @ Home
El Bruno
Buenas,
hoy toca un tutorial de esos rápidos que espero que te ahorre un poco de tiempo, en lugar de investigar como hacerlo. Lo que queremos hacer es simple: publicar una aplicacion WPF con ClickOnce, utilizando un website de Azure como nuestro punto de distribución y actualización. Vamos con el paso a paso.
1. En el portal de AZURE (www.azure.com) creamos un nuevo elemento de tipo “COMPUTE // WEB SITE / QUICK CREATE”.
2. Para esta demo el website creado se identifica con
http://elbrunoclickonce.azurewebsites.net
.
3. Listo AZURE, ahora vamos a Visual Studio 2012 y creamos un nuevo proyecto de tipo WPF Application. En este caso la he llamado “ElBrunoClickOnce”.
4. Este paso es opcional pero viene bien para probar nuestros despliegues, mostraremos el número de versión del despliegue de ClickOnce en el título del MainWindow.
5. Agregamos una referencia a System.Deployment.
6. Modificamos el código del MainWindow
1: using System.Windows;
2:
3: namespace ElBrunoClickOnce
4: {
5: public partial class MainWindow : Window
6: {
7: public MainWindow()
8: {
9: InitializeComponent();
10: DisplayVersion();
11: }
12:
13: private void DisplayVersion()
14: {
15: var version = string.Format("assembly: {0}", ((System.Reflection.AssemblyFileVersionAttribute)
16: (System.Reflection.Assembly.GetExecutingAssembly().
17: GetCustomAttributes(typeof(System.Reflection.AssemblyFileVersionAttribute),
18: false)[0])).Version);
19:
20: if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)
21: {
22: System.Deployment.Application.ApplicationDeployment ad =
23: System.Deployment.Application.ApplicationDeployment.CurrentDeployment;
24: version = string.Format("ClickOnce: {0}", ad.CurrentVersion.ToString());
25: }
26: Title = version;
27: }
28: }
29: }
7. Si ejecutamos la aplicación veremos el número de versión por defecto del ensamblado
8. Ahora que tenemos nuestra aplicación, procederemos a publicar la misma en website de Azure. Para esto primero agregaremos un proyecto de tipo ASP.Net MVC 4 a nuestra solución. En este caso lo he llamado “ElBrunoClickOncePublish”.
9. Dentro del nuevo proyecto creamos una carpeta llamada “install”
10. Ahora publicaremos nuestro proyecto web a Azure. Por suerte los amigos de Microsoft lo han hecho cada vez más fácil, con cada nuevo upgrade de AZURE. Vamos por el camino más fácil de todos: seleccionamos nuestro proyecto Web, deplegamos el context menu y seleccionamos “Publish”
11. A continuación debemos seleccionar un perfil para la publicación. Podemos descargar este perfil desde la consola de administración de AZURE de nuestro website.
12. Un método más simple, disponible desde el último update de AZURE, es seleccionar “Import” y con nuestras credenciales de AZURE, seleccionar el website de target.
13. Una vez importado el perfil podemos seguir el asistente paso a paso para la publicación. El paso final nos permite hacer un preview de los elementos a publicar y lanzar la publicación.
14. Una vez publicado podemos ver el site online
15. Ahora vamos a configurar el despliegue de ClickOnce. Accedemos a las propiedades del proyecto WPF y en la sección Publish completamos los siguientes valores:
Publishing Folder: ..\ElBrunoClickOncePublish\install\ (Esta configuración publica los archivos de ClickOnce directamente al directorio de proyecto del website)
Installation Folder:
http://elbrunoclickonce.azurewebsites.net/install/
16. En la sección updates, definimos que nuestra aplicación deberá validar por nuevas versiones antes de lanzarse y definimos una vez más la ruta de actualización.
17. Completamos los valores de la sección “Options”
18. Es importante definir una página de publicación para nuestro proyecto, en este caso > publish.htm
19. Y ya estamos listos, presionamos “Publish Now” y lanzamos una publicación.
20. Cuando ha terminado la publicación, en el proyecto web seleccionamos la opción de mostrar todos los archivos y vemos que los elementos de la publicación de ClickOnce están dentro de la carpeta “install”
21. Los agregamos como parte del website y lanzamos una publicación a AZURE de nuestro website.
22. Nuestra url de publicación ya está lista, en este caso es
http://elbrunoclickonce.azurewebsites.net/install/publish.htm
, si navegamos la misma veremos que tenemos la página de instalación de nuestra app.
23. Un detalle importante. Como no he utilizado ningún certificado “bueno” para la publicación, al momento de instalar Win8 nos avisa que este puede ser un software de procedencia dudosa. Como en este caso procede de mi mismo, seleccionamos la opción ”more info” y luego “run anyway”
24. Luego ya podemos instalar la aplicación.
25. Luego de validar nuevamente la seguridad, ya podemos ver nuestra aplicación funcionando y mostrando el nro de versión de ClickOnce.
26. Ahora vamos a generar una nueva versión de la app WPF. Hacemos un publish de la misma nuevamente y veremos que en el proyecto web, tenemos las 2 versiones
27. Ahora agregamos al proyecto la versión generada y yo aconsejor eliminar la versión anterior. (Esto es AZURE, el espacio se paga!)
28. Publicamos nuevamente nuestro proyecto web a AZURE y si navegamos la página de instalación veremos que la misma se ha actualizado.
29. Ahora bien, probemos ClickOnce. Lanzamos la aplicación y vemos que tenemos un update disponible.
30. Aplicamos el update, un par de warnings de seguridad y listo !!! tenemos la versión actualizada
Y solo en 30 pasos ![]()
Saludos @ Home
El Bruno
Buenas,
Today it had intended writing about AZURE and ClickOnce, but I found this project really making that the year 2013 will become one of the best…
I said, speechless and with the code available at
https://github.com/fatihboy/Robosapien
Source:
http://channel9.msdn.com/coding4fun/kinect/Kinect–Robosapien-Source-Cool?utm_source=feedly
Saludos @ Home
El Bruno
Buenas,
hoy tenía pensado escribir sobre AZURE y ClickOnce, pero me he encontrado con este proyecto que realmente hace que el año 2013 se convierta en uno de los mejores …
Lo dicho, sin palabras y con el código disponible en
https://github.com/fatihboy/Robosapien
Fuente:
http://channel9.msdn.com/coding4fun/kinect/Kinect–Robosapien-Source-Cool?utm_source=feedly
Saludos @ La Finca
El Bruno
Buenas,
a few days ago I mentioned the release of Enterprise Library 6 . Today updating me of what me looses during the weekend, I see that a new Wave (wave) related to EntLib has left a few days ago. Actually the core remains the same, but in this release we have some interesting things
Let’s go is a boost for next great to have along with EntLib training material.
Source:
http://blogs.msdn.com/b/agile/archive/2013/05/24/microsoft-enterprise-library-6-wave-2-release.aspx
Saludos @ Home
El Bruno
Buenas,
hace unos días comenté el lanzamiento de Enterprise Library 6. Hoy poniéndome al día de lo que se me atrasa durante el fin de semana veo que una nueva Wave (oleada) relacionada con EntLib ha salido hace unos días. En realidad el core sigue siendo el mismo, sin embargo en este lanzamiento tenemos algunas cosillas interesantes
Vamos que es un empujón de material de formación que viene genial para tener junto a EntLib.
Fuente:
http://blogs.msdn.com/b/agile/archive/2013/05/24/microsoft-enterprise-library-6-wave-2-release.aspx
Saludos @ Home
El Bruno
Buenas,
al final mi mujer terminará teniendo razón (como siempre) y tendré que aceptar que yo solito me meto en estos líos. Después de que ayer escribiese un post sobre las novedades del nuevo Kinect, ya más de uno comenzó a preguntar cuando se podrá comenzar a probar el mismo.
Si conoces el esquema de promoción de productos de Microsoft, seguramente sabes que es diferente al de Apple. Ms no presenta un producto que al día siguiente esté a la venta. Por ejemplo, en el caso de Kinect (project Natal) pasaron 2 años hasta que estuvo disponible de forma masiva.
Pues con la nueva Kinect pasa algo parecido, HAY QUE ESPERAR HASTA EL 2014. Lo que estamos viendo es impresionante, lo que veremos en 2 semanas será mas impresionante aún, pero tendremos que esperar hasta el 2014 para poder comprar una en la esquina de casa.
Eso sí, en este caso, cuando salga a la venta el Kinect, también se podrá descargar el SDK para Windows de Kinect, eso sí que está asegurado.
Saludos @ Barcelona
El Bruno
Good,
2 days ago that presented the new XBox One, and one of the things that most had us intrigued was that had the new KINECT.
If you’re not aware, I summarize what you at points that I consider to be the most important.
The new XBox One is more ugly than bite sand. And the new Kinect is not far behind. The good news is that behind the appearance of seedy gadget of a movie from the 80′s the new kinect has
And now we are going with the features…
If we talk about the Skeleton tracking, kinect has moved from version 1.0 to version 2.0. They are now detected more Joints, can be detected in the same rotation, fingers, etc. are detected We’ll it’s awesome
Another interesting feature is the ability to analyze the forces acting on each Joint. The following image shows how to pass weight one foot to the other, it turns red to indicate an excess of force in the same (if che, sounds like a Jedi)
Here is another good, analysing the acceleration of the body elements and crossing this information with the force that is applied in the same, it is possible to identify and see something like “impacts”. In the WIRED video journalist makes a… of the Street Figther which is to die of joy!
If if if it seems a bit of science fiction but now you can have access to information with the heartbeat of every user. Analyzing changes in the skin, you can estimate keystrokes per minute, etc. I guess clinical applications with this front
Advanced facial recognition
Autologon using facial recognition
Detection of up to 6 players
and much more!
By the way, this information is published. You can see in the following video of the cracks of WIRED that has happened to me the Edu.
Source:
http://video.wired.com/watch/new-xbox-kinect-exclusive-wired-video-398878
Saludos @ La Finca
El Bruno
Buenas,
hace 2 días que se presentó la nueva XBox One, y una de las cosas que más nos tenía intrigados era QUE TENÏA EL NUEVO KINECT.
Si todavía no estás al tanto, te lo resumo en los puntos que yo considero que son los más importantes.
Pues la nueva XBox One es más fea que morder arena. Y el nuevo Kinect no se queda atrás. Lo bueno es que detrás de la apariencia de gadget cutre de una película de los 80’s el nuevo kinect tiene
Y ahora vamos con las features …
Si hablamos del Skeleton tracking, el kinect ha pasado de una versión 1.0 a una version 2.0. Ahora se detectan mas Joints, se puede detectar la rotación de los mismos, se detectan dedos, etc. Vamos que es impresionante
Otra feature interesante es la capacidad de analizar las fuerzas que actuan sobre cada Joint. La siguiente imagen muestra como al pasar el peso de un pie al otro, el mismo se pone de color rojo para indicar un exceso de la fuerza en el mismo (si che, suena a Jedi)
Aqui va otra de las buenas, analizando la aceleración de los elementos del cuerpo y cruzando esta información con la fuerza que se aplica en los mismos, es posible identificar y ver algo parecido a “impactos”. En el video de WIRED el periodista hace un … del Street Figther que es para morir de la alegría!
Si si si, parece un poco de ciencia ficción pero ahora puedes tener acceso a la información con los latidos del corazón de cada user. Analizando los cambios en la piel, se puede estimar las pulsaciones por minutos, etc. Imagino aplicaciones clínicas con esto delante
Reconocimiento facial avanzado
Inicio de sesión automático utilizando reconocimiento facial
Detección de hasta 6 jugadores
y mucho más !!!
Por cierto, esta información ES PUBLICA. Se puede ver en el siguiente video de los cracks de WIRED que me ha pasado el Edu.
Fuente:
http://video.wired.com/watch/new-xbox-kinect-exclusive-wired-video-398878
Saludos @ La Finca
El Bruno