How to solve error of “returned exit code 1” while building UWP xamarin based app in Visual Studio?

佐手、 提交于 2019-12-13 03:50:15

问题


I am facing following error while publishing my UWP Xamarin based app on Windows Store.

Package acceptance validation error: This package wasn't built for submission to the Microsoft Store. Make sure you're uploading a Release build with the .NET Native tool chain enabled.

To remove "Windows Store" error, I have made following changes in my project After this it start another error as following while building project:

1: Error: NUTC1056:Internal Compiler Error: 0x8000ffff. Error encountered while compiling method 'instance System.Void MyProject.Views.MyPage.InitializeComponent()'. MyProject.UWP

2: Severity Code Description Project File Line Suppression State Error ILT0005: 'C:\Users\deep.soni\.nuget\packages\microsoft.net.native.compiler\2.0.0\tools\x86\ilc\Tools\nutc_driver.exe @"path\MyProject.UWP\obj\x64\Release\ilc\intermediate\MDIL\MyProject.UWP.rsp"' returned exit code 1 MyProject.UWP

  1. To solve it: From one of solution, I have found that I need to install Language Pack to resolve above error. But after installing it, error is same.
  2. Try to build after delete bin and obj folder.

Is there any version related issue than I also mention that I am using Visual Studio 2017(Enterprise) Version 15.9.2

Can anybody please suggest me how to solve above error? It will be really helpful.

Thank you.

来源:https://stackoverflow.com/questions/54709264/how-to-solve-error-of-returned-exit-code-1-while-building-uwp-xamarin-based-ap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!