Visual Studio Xamarin WebForms Full Example
Xamarin offers the alternative of creating cross-platform applications, additionally creating hybrid applications allows even greater portability to even change IDE development if necessary. Here is a basic example of WebForms implementation in Xamarin, using the amazing "AdminBSBMaterialDesign-master" template. I hope it can be helpful.
Important
when you download the xamarinWebView-master.zip file you should follow these steps:
- Right click on the .zip and select the Properties option
- In the General tab you will see a message of "Ability: This file comes from another computer and could be blocked to help protect the computer.
- Check the Unblock checkbox
- Then save the changes
- You can finally unzip the file
If you do not execute the steps described above when compiling the solution you will have the following errors:
Error The "XamlCTask" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
Error The "XamlCTask" task could not be instantiated from "C:\Users\Elidei\Desktop\test\xamarinWebView-master\xamarinWebView\packages\Xamarin.Forms.2.3.5.256-pre6\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Build.Tasks.dll". Could not load file or assembly 'Xamarin.Forms.Build.Tasks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
/-----------------------------------------------------------------------------/
Importante
cuando usted descargue el archivo xamarinWebView-master.zip debe seguir los siguientes pasos:
- Clic derecho sobre el .zip y seleccione l opción Propiedades
- en el Tab General le aparecerá un mensaje de Segutidad: Este archivo proviene de otro equipo y podría bloquearse para ayudar a proteger el equipo.
- Marque el checkbox Desbloquear
- Luego guarde los cambios
- Finalmente puede descompactar el archivo
Si no ejecuta los pasos descritos anteriormente al compilar la solución tendrá los siguientes errores:
Error The "XamlCTask" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
Error The "XamlCTask" task could not be instantiated from "C:\Users\Elidei\Desktop\test\xamarinWebView-master\xamarinWebView\packages\Xamarin.Forms.2.3.5.256-pre6\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Build.Tasks.dll". Could not load file or assembly 'Xamarin.Forms.Build.Tasks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)