Question

Guo Jie on Mon, 21 Jan 2019 08:47:07


When creating submission build (appxupload), we met a problem: if we create it using VS 2017, it passed Windows App Cert Kit; if we create it using msbuild, it failed Windows App Cert Kit with error of 'clrjit.dll has failed the AppContainerCheck check'. Could someone helps to give us some suggestions?

Our expectation is that build created by msbuild command line can pass MS binary analyser so that we can submit submission build created via our CI to MS Store.

Here are the steps that we followed:

  • VS2017
    • right click and select 'Store' - 'Create App Package'
    • select 'X64', 'Release'
    • then click 'create'
  • msbuild command line
    • For command 'build-release.cmd', we use command 'msbuild /t:Rebuild /p:Configuration=Release;Platform=x64;UapAppxPackageBuildMode=StoreUpload;AppxPackageDir=AppPackages'
  • it is mentioned in document 'https://docs.microsoft.com/en-us/windows/uwp/packaging/auto-build-package-uwp-apps' that msbuild command can create submission build, but our build created by msbuild command line failed MS binary analyser when we try to test it using  Windows App Cert Kit in our local environment.

Replies

Daisy Tian on Tue, 22 Jan 2019 08:22:47


Hi Guo Jie,

>'clrjit.dll has failed the AppContainerCheck check

This seems the 'clrjit.dll'  shouldn't exist in the output directory or inside appx package for the Store submission.Could you make checkbox "Project Properties -> Build -> Compile with .NET Native tool chain" be checked (for Release configuration) or set the UseDotNetNativeToolchain property to true to try again?

Best regards

Daisy  Tian


MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

Guo Jie on Tue, 22 Jan 2019 10:17:06


Hi Daisy,

Thank you very much for you reply, and we have already set UseDotNetNativeToolchain to be true in our .jsproj file, please refer to the screenshot. About 'checkbox "Project Properties -> Build -> Compile with .NET Native tool chain" be checked', it is for VS2015 and we are using VS2017, and in VS2017, there is no such checkbox in Project Properties window (and if we use VS2017 to create submission build, there is no issue when trying the Windows App Cert Kit, and if we use msbuild command line to create submission build, we met the issue of clrjit.dll)

What we have also tried:

update windows software SDK to latest version 10.1.17763.132, then recreated release build on local environment. The solution is based on https://docs.microsoft.com/en-us/previous-versions/windows/hh920280(v=win.10)#binscope: 'If a managed executable fails the test, make sure that you used the latest compiler and linker, such as Microsoft Visual Studio, to build the Windows Store app.'


Upgrade Microsoft.NETCore.UniversalWindowsPlatform to 6.0.0. The solution is based on https://github.com/dotnet/corefx/issues/30594


Daisy Tian on Wed, 23 Jan 2019 05:43:43


Hi Guo Jie,

>in VS2017, there is no such checkbox in Project Properties window

My Visual Studio is 2017 and I can see the checkbox, as the picture show:

Best regards

Daisy  Tian

Guo Jie on Wed, 23 Jan 2019 09:04:18


Hi Daisy,

I could not find the check box of 'Compile with .NET Native tool chain' when I go to 'project properties - build', please refer to the screenshot. Could you please help me?

Daisy Tian on Thu, 24 Jan 2019 07:44:16


Hi Guo Jie,

This is a Class Library project, the Native tool chain seems available for Application. Could you check this checkbox in your application project?

Best regards

Daisy  Tian

Guo Jie on Thu, 24 Jan 2019 08:41:51


Hi Daisy,

Our application project is a JS project, so if I select the application project, then right-click 'properties', it shows the screenshots as below, and there is no checkbox of 'Native tool chain '.



Guo Jie on Mon, 28 Jan 2019 09:21:55


Hi Daisy Tian,

Any updates on it?

Thanks a lot.


Daisy Tian on Thu, 31 Jan 2019 09:15:20


Hi Guo Jie,

Sorry for the delay reply.Could you package a sample with Msbuild to  see if it can pass the local WACK test? Did your ever submit the app which package with msbuild command to the Store? If you did and encountered the issue, you could make a ticket  to ask to team(they could track your app submission) for help directly.

Best regards

Daisy  Tian


MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

Guo Jie on Fri, 01 Feb 2019 11:16:51


Hi Daisy,

I will provide a sample project for you tomorrow.

Thanks again.

Guo Jie on Sat, 02 Feb 2019 10:25:33


Hi Daisy,

I have created a sample project named 'Demo Js App' with a reference named 'ClassLibrary1', please find the project via https://www.dropbox.com/s/n7xiff41w0emt0e/Demo%20Js%20App.zip?dl=0. Could you pleaes have a loook?

If I right click  'Demo Js App', and select 'Properties', here is the screenshot.

If I right click  'ClassLibrary1', and select 'Properties', here is the screenshot.

Guo Jie on Sat, 02 Feb 2019 10:29:11


We are developing software for our client, and our client is responsible for submitting build to MS Store. The client is not good at technical stuff, so he do not think that he might be able to describle the problem clearly when creating tickets in MS Store. Then the client ask us to provide some help.

Chinese new year is coming, so we will be off in the next few days, and happ new year!

Daisy Tian on Mon, 11 Feb 2019 06:53:01


Hi Guo Jie,

Sorry for the delay reply. The link you provided seems not correct.Every time I clicked , it says:This site can't be reached.Could you check it and give me a correct link.Thanks for your understanding.

Best regards

Daisy  Tian

Guo Jie on Mon, 11 Feb 2019 09:15:08


Hi Daisy,

Could you please try this?

https://www.dropbox.com/s/n7xiff41w0emt0e/Demo%20Js%20App.zip?dl=0

Thanks,

Guo Jie on Mon, 11 Feb 2019 09:33:57


if you find that the link does not work, could you please send me an email cibe****@126.com, so that I can send you the demo project via email?

Daisy Tian on Tue, 12 Feb 2019 07:10:07


Hi Guo Jie,

The forum is a public place, it's not a good idea to share your email here. With your sample, I can't encounter the same issue with you. My package pass the local WACK test.Could you try to package your app on other machine?Here is my test result.

Best regards

Daisy  Tian

Guo Jie on Tue, 12 Feb 2019 09:58:19


Hi Daisy,

My bad. The above sample project is to show that we could not find the checkbox of 'Native tool chain'. I recreated a project with reference of 'AdpativeStreaming' (which is the reference that our real project uses), and it will lead to the problem of 'AppContainerCheck'. 

Could you please download the new sample project https://www.dropbox.com/s/n7xiff41w0emt0e/Demo%20Js%20App.zip?dl=0 and try again? for this sample project, if we use VS2017 to create submisison build, the it can pass Windows App Cert Kit test (please ignore that failed part of mainefest resource because it is a sample project and I did not added related images to this project); but if we use MSBUILD command (msbuild /t:Rebuild /p:Configuration=Release;Platform=x64;UapAppxPackageBuildMode=StoreUpload;AppxPackageDir=AppPackages) to create submission build, it will fail Windows App Cert Kit test for the part of 'Binary Analyzer'.

Guo Jie on Mon, 25 Feb 2019 07:13:04


Hi Daisy,

Any updates on this?

Thanks,