visual tools studio plugin microsoft extensions español descargar community code visual-studio cordova visual-studio-2015 uwp visual-studio-cordova

tools - Visual Studio 2015 no puede crear versiones de lanzamiento para el proyecto Cordova



visual studio 2017 community español (3)

Estoy usando Visual Studio 2015 para Cordova Tools para construir una aplicación que apunta a Windows Universal (UWP) y Android.

Puedo crear compilaciones de Debug para Android y UWP, también funciona la versión de lanzamiento para Android.

Sin embargo, Visual Studio no puede crear versiones de lanzamiento para UWP, ninguna de las Windows-AnyCPU , Windows x86 , Windows x64 y Windows ARM funciona.

Al crear versiones de versión para Windows-AnyCPU , el mensaje de error es como:

1>C:/Program Files (x86)/MSBuild/Microsoft/.NetNative/Microsoft.NetNative.targets(133,5): error MSB3779: The processor architecture of the project being built "Any CPU" is not supported by the referenced SDK "Microsoft.NET.Native.Framework.1.2, Version=1.2". Please consider changing the targeted processor architecture of your project (in Visual Studio this can be done through the Configuration Manager) to one of the architectures supported by the SDK: "x86, x64, ARM". [C:/Users/ztl87/Documents/Visual Studio 2015/Projects/UnihanHelper/UnihanHelper/platforms/windows/CordovaApp.Windows10.jsproj] 1>C:/Program Files (x86)/MSBuild/Microsoft/.NetNative/Microsoft.NetNative.targets(133,5): error MSB3779: The processor architecture of the project being built "Any CPU" is not supported by the referenced SDK "Microsoft.NET.Native.Runtime.1.1, Version=1.1". Please consider changing the targeted processor architecture of your project (in Visual Studio this can be done through the Configuration Manager) to one of the architectures supported by the SDK: "x86, x64, ARM". [C:/Users/ztl87/Documents/Visual Studio 2015/Projects/UnihanHelper/UnihanHelper/platforms/windows/CordovaApp.Windows10.jsproj] 1>C:/Program Files (x86)/MSBuild/Microsoft/.NetNative/Microsoft.NetNative.targets(248,5): error MSB4062: The "IlcErrorTask" task could not be loaded from the assembly C:/Program Files (x86)/MSBuild/Microsoft/.NetNative/x86/ilc/ilc.exe. Could not load file or assembly ''file:///C:/Program Files (x86)/MSBuild/Microsoft/.NetNative/x86/ilc/ilc.exe'' or one of its dependencies. An attempt was made to load a program with an incorrect format. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:/Users/ztl87/Documents/Visual Studio 2015/Projects/UnihanHelper/UnihanHelper/platforms/windows/CordovaApp.Windows10.jsproj] 1>MDAVSCLI : error : Error code 1 for command: C:/Program Files (x86)/MSBuild/14.0/bin/amd64/msbuild with args: C:/Users/ztl87/Documents/Visual Studio 2015/Projects/UnihanHelper/UnihanHelper/platforms/windows/CordovaApp.Windows10.jsproj,/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal,/nologo,/p:Configuration=release,/p:Platform=anycpu 1> Command finished with error code 2: cmd /s /c ""C:/Users/ztl87/Documents/Visual Studio 2015/Projects/UnihanHelper/UnihanHelper/platforms/windows/cordova/build.bat" --release "--buildConfig=C:/Users/ztl87/Documents/Visual Studio 2015/Projects/UnihanHelper/UnihanHelper/build.json" --archs=anycpu --win" 1>ERROR building one of the platforms : error : cmd: Command failed with exit code 2 1> You may not have the required environment or OS to build this project 1>MDAVSCLI : error : cmd: Command failed with exit code 2

Al crear versiones de lanzamiento para Windows x86 , Windows x64 o Windows ARM , el mensaje de error es como:

1>C:/Program Files (x86)/MSBuild/Microsoft/.NetNative/Microsoft.NetNative.targets(669,5): error MSB4062: The "SharedAssemblyApplicabilityVerifierTask" task could not be loaded from the assembly C:/Program Files (x86)/MSBuild/Microsoft/.NetNative/x64/ilc/ilc.exe. Could not load file or assembly ''file:///C:/Program Files (x86)/MSBuild/Microsoft/.NetNative/x64/ilc/ilc.exe'' or one of its dependencies. An attempt was made to load a program with an incorrect format. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:/Users/ztl87/Documents/Visual Studio 2015/Projects/UnihanHelper/UnihanHelper/platforms/windows/CordovaApp.Windows10.jsproj] 1>C:/Program Files (x86)/MSBuild/Microsoft/.NetNative/Microsoft.NetNative.targets(405,5): error MSB4062: The "ComputeManagedBinaries" task could not be loaded from the assembly C:/Program Files (x86)/MSBuild/Microsoft/.NetNative/x64/ilc/ilc.exe. Could not load file or assembly ''file:///C:/Program Files (x86)/MSBuild/Microsoft/.NetNative/x64/ilc/ilc.exe'' or one of its dependencies. An attempt was made to load a program with an incorrect format. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:/Users/ztl87/Documents/Visual Studio 2015/Projects/UnihanHelper/UnihanHelper/platforms/windows/CordovaApp.Windows10.jsproj] 1>MDAVSCLI : error : Error code 1 for command: C:/Program Files (x86)/MSBuild/14.0/bin/amd64/msbuild with args: C:/Users/ztl87/Documents/Visual Studio 2015/Projects/UnihanHelper/UnihanHelper/platforms/windows/CordovaApp.Windows10.jsproj,/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal,/nologo,/p:Configuration=release,/p:Platform=x64 1> Command finished with error code 2: cmd /s /c ""C:/Users/ztl87/Documents/Visual Studio 2015/Projects/UnihanHelper/UnihanHelper/platforms/windows/cordova/build.bat" --release "--buildConfig=C:/Users/ztl87/Documents/Visual Studio 2015/Projects/UnihanHelper/UnihanHelper/build.json" --archs=x64 --win" 1>ERROR building one of the platforms : error : cmd: Command failed with exit code 2 1> You may not have the required environment or OS to build this project 1>MDAVSCLI : error : cmd: Command failed with exit code 2

Lo que me confunde es que todas estas 4 configuraciones funcionan bien con las versiones de Debug .

Además , Visual Studio deja de funcionar cuando intento asociar la aplicación con Windows Store.

Estoy usando:

  • Visual Studio Community 2015 versión 14.0.24720.00 Actualización 1
  • Visual Studio Tools para Apache Cordova 14.0.51016.1
  • Cordova CLI versión 5.4.1

Intenté volver a instalar Visual Studio, pero no funcionó.

Gracias.


Visual Studio deja de funcionar cuando intento asociar la aplicación con Windows Store.

Este es un error que acaba de solucionarse en Visual Studio 2015 Update 2. Aquí hay un enlace al instalador: http://go.microsoft.com/fwlink/?LinkId=691129


Pasé horas luchando con esto y finalmente pude resolverlo desinstalando Node 64 bit e instalando 32 bit.


Puede especificar la arquitectura y la plataforma en la que desea construir la aplicación de Windows.

cordova build --release windows --appx=[platform] --archs=[architecture]

Opciones:

  • Plataforma: 8.1-win, 8.1-phone, uap
  • Arquitectura: x86, x64, brazo

Por ejemplo:

cordova build --release windows --appx=uap --archs=arm

Referencia: https://cordova.apache.org/docs/en/latest/guide/platforms/win8/