Skip to content

develedio/xamarinWebView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

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:

  1. Right click on the .zip and select the Properties option
  2. 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.
  3. Check the Unblock checkbox
  4. Then save the changes
  5. 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:

  1. Clic derecho sobre el .zip y seleccione l opción Propiedades
  2. 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.
  3. Marque el checkbox Desbloquear
  4. Luego guarde los cambios
  5. 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)