6

Windows アプリをリリース モードでパッケージ化しようとしましたが、2 つのテストに失敗しました。

1.バイナリアナライザーが失敗しました

Binary analyzer
•Error Found: The binary analyzer test detected the following errors:
  ◦File C:\Program Files\WindowsApps\***_1.0.0.0_x64__2qz35x103g***\clrcompression.dll has failed the AppContainerCheck check.
  ◦File C:\Program Files\WindowsApps\***.MStube_1.0.0.0_x64__2qz35x103g***\clrjit.dll has failed the AppContainerCheck check.  
•Impact if not fixed: If the app doesn’t use the available Windows protections, it can increase the vulnerability of the customer's computer to malware.
•How to fix: Apply the required linker options - SAFESEH, DYNAMICBASE, NXCOMPAT, and APPCONTAINER - when you link the app. See links below for more information:

2. サポートされている API のテストに失敗しました

•Error Found: The supported APIs test detected the following errors:
◦API RtlCaptureContext in api-ms-win-core-rtlsupport-l1-1-0.dll is not supported for this application type. clrcompression.dll calls this API.
◦API RtlVirtualUnwind in api-ms-win-core-rtlsupport-l1-1-0.dll is not supported for this application type. clrcompression.dll calls this API.
◦API _XcptFilter in msvcrt.dll is not supported for this application type. clrcompression.dll calls this API.
◦API __C_specific_handler in msvcrt.dll is not supported for this application type. clrcompression.dll calls this API.
◦API _amsg_exit in msvcrt.dll is not supported for this application type. clrcompression.dll calls this API.
◦API _initterm in msvcrt.dll is not supported for this application type. clrcompression.dll calls this API.
◦API free in msvcrt.dll is not supported for this application type. clrcompression.dll calls this API.
◦API malloc in msvcrt.dll is not supported for this application type. clrcompression.dll calls this API.
◦API memcpy in msvcrt.dll is not supported for this application type. clrcompression.dll calls this API.
◦API memset in msvcrt.dll is not supported for this application type. clrcompression.dll calls this API.

•Impact if not fixed:  Using an API that is not part of the Windows SDK for Windows Store apps violates the Windows Store certification requirements. 

•How to fix:  Review the error messages to identify the API that is not part of the Windows SDK for Windows Store apps. Please note, C++ apps that are built in a debug configuration will fail this test even if it only uses APIs from the Windows SDK for Windows Store apps. See the link below for more information: 
 Alternatives to Windows APIs in Windows Store apps. 

それらを解決する方法がありません...2 つのエラーを修正して、アプリケーションを正しくパッケージ化できるようにするにはどうすればよいですか?

ありがとう。

4

6 に答える 6

1

Microsoft.NETCore.UniversalWindowsPlatform 6.1.9 もあり、同じ問題があります。

はい、.netネイティブ ツールチェーンがチェックされます。x86 と x64 を試してみましたが、うまくいきません。出力ディレクトリには常に and が含まれclrjit.dllていclrcompression.dllます。

どのコードにも EntityFramework への参照がないため、それが問題であるかどうかはわかりません。

上記の corefx リンクには、新しい問題へのリンクがあります - https://github.com/dotnet/corefx/issues/30594

Microsoft.NETCore.Portable.Compatibilityは、新しいバージョンの Microsoft.NETCore.UniversalWindowsPlatform では不要になったようです。

Microsoft.NETCore.Portable.Compatibility を削除すると、問題が解決しました。

于 2019-02-22T08:57:38.157 に答える
0

これは .NET のバグです。 https://github.com/dotnet/corefx/issues/13214およびhttps://github.com/aspnet/EntityFramework/issues/6905を参照してください。

回避策として、x64 バージョンなしでアプリ パッケージをビルドできる場合があります。

于 2016-11-05T11:19:20.037 に答える