Подтвердить что ты не робот

"Это приложение может работать только в контексте контейнера приложения". - Новое для Visual Studio 2015 dev

Я немного отчаялся. Я пытался решить следующую проблему часами.

Я разработал приложение, которое я теперь пытался установить, используя расширение мастера установки Visual Studio 2015. Все создает или (без ошибок), но когда я открываю приложение, он подчеркивает, что он может открываться только в контексте контейнера приложения. Что это значит? Любые советы будут высоко оценены!

Приложение работает с базой данных SQlite. Может ли это иметь какое-то отношение к зависимостям? Если да, то как я могу это сделать?

UPDATE:

# Culture = "en-US"
ConvertFrom-StringData @'
###PSLOC
    PromptYesString = &Yes
    PromptNoString = &No
    BundleFound = Found bundle: {0}
    PackageFound = Found package: {0}
    CertificateFound = Found certificate: {0}
    DependenciesFound = Found dependency package(s):
    GettingDeveloperLicense = Acquiring developer license...
    InstallingCertificate = Installing certificate...
    InstallingPackage = \nInstalling app...
    AcquireLicenseSuccessful = A developer license was successfully acquired.
    InstallCertificateSuccessful = The certificate was successfully installed.
    Success = \nSuccess: Your app was successfully installed.
    WarningInstallCert = \nYou are about to install a digital certificate to your computer Trusted People certificate store. Doing so carries serious security risk and should only be done if you trust the originator of this digital certificate.\n\nWhen you are done using this app, you should manually remove the associated digital certificate. Instructions for doing so can be found here: http://go.microsoft.com/fwlink/?LinkId=243053\n\nAre you sure you wish to continue?\n\n
    ElevateActions = \nBefore installing this app, you need to do the following:
    ElevateActionDevLicense = \t- Acquire a developer license
    ElevateActionCertificate = \t- Install the signing certificate
    ElevateActionsContinue = Administrator credentials are required to continue.  Please accept the UAC prompt and provide your administrator password if asked.
    ErrorForceElevate = You must provide administrator credentials to proceed.  Please run this script without the -Force parameter or from an elevated PowerShell window.
    ErrorForceDeveloperLicense = Acquiring a developer license requires user interaction.  Please rerun the script without the -Force parameter.
    ErrorLaunchAdminFailed = Error: Could not start a new process as administrator.
    ErrorNoScriptPath = Error: You must launch this script from a file.
    ErrorNoPackageFound = Error: No package or bundle found in the script directory.  Please make sure the package or bundle you want to install is placed in the same directory as this script.
    ErrorManyPackagesFound = Error: More than one package or bundle found in the script directory.  Please make sure only the package or bundle you want to install is placed in the same directory as this script.
    ErrorPackageUnsigned = Error: The package or bundle is not digitally signed or its signature is corrupted.
    ErrorNoCertificateFound = Error: No certificate found in the script directory.  Please make sure the certificate used to sign the package or bundle you are installing is placed in the same directory as this script.
    ErrorManyCertificatesFound = Error: More than one certificate found in the script directory.  Please make sure only the certificate used to sign the package or bundle you are installing is placed in the same directory as this script.
    ErrorBadCertificate = Error: The file "{0}" is not a valid digital certificate.  CertUtil returned with error code {1}.
    ErrorExpiredCertificate = Error: The developer certificate "{0}" has expired. One possible cause is the system clock isn't set to the correct date and time. If the system settings are correct, contact the app owner to re-create a package or bundle with a valid certificate.
    ErrorCertificateMismatch = Error: The certificate does not match the one used to sign the package or bundle.
    ErrorCertIsCA = Error: The certificate can't be a certificate authority.
    ErrorBannedKeyUsage = Error: The certificate can't have the following key usage: {0}.  Key usage must be unspecified or equal to "DigitalSignature".
    ErrorBannedEKU = Error: The certificate can't have the following extended key usage: {0}.  Only the Code Signing and Lifetime Signing EKUs are allowed.
    ErrorNoBasicConstraints = Error: The certificate is missing the basic constraints extension.
    ErrorNoCodeSigningEku = Error: The certificate is missing the extended key usage for Code Signing.
    ErrorInstallCertificateCancelled = Error: Installation of the certificate was cancelled.
    ErrorCertUtilInstallFailed = Error: Could not install the certificate.  CertUtil returned with error code {0}.
    ErrorGetDeveloperLicenseFailed = Error: Could not acquire a developer license. For more information, see http://go.microsoft.com/fwlink/?LinkID=252740.
    ErrorInstallCertificateFailed = Error: Could not install the certificate. Status: {0}. For more information, see http://go.microsoft.com/fwlink/?LinkID=252740.
    ErrorAddPackageFailed = Error: Could not install the app.
    ErrorAddPackageFailedWithCert = Error: Could not install the app.  To ensure security, please consider uninstalling the signing certificate until you can install the app.  Instructions for doing so can be found here:\nhttp://go.microsoft.com/fwlink/?LinkId=243053

ДРУГОЕ ОБНОВЛЕНИЕ: отмените загрузку установки script как adiminstrator в PowerShell и теперь получили следующую ошибку:

Пакет не может быть зарегистрирован. (Исключение из HRESULT: 0x80073CF6) Googled, но не так много результатов для разработчиков Windows 10.

4b9b3361

Ответ 1

Если это приложение store/UWP, его можно установить только через пакет appx. Обычно это должно быть через магазин.
Невозможно установить современное/хранилище/приложение UWP с MSI.

Если вы не хотите (или не можете) распространяться через магазин, вы можете создать пакет, который можно установить напрямую.

В VS перейдите к: PROJECT > Store > Create App Packages... > И выберите No для создания пакета для магазина

Прежде чем вы сможете установить приложение на компьютере, вам необходимо включить функции разработчика на этой машине:
Настройки > Обновление и безопасность > Для разработчиков > выберите: Приложения для боковой загрузки

Затем просто запустите PowerShell script, созданный с помощью пакета для его установки.

Ваш комментарий о доставке магазина в течение 7 дней звучит не правильно. Обычно заявки будут проходить через час и только в исключительных обстоятельствах занимают больше суток.

Ответ 2

Это, вероятно, приложение Metro, которое не предполагается развертывать с помощью программы установки, но, скорее, с помощью магазина.

Ответ 3

Хранить приложения можно только в командной оболочке, насколько я знаю. Поэтому попробуйте следующее:

explorer.exe shell:AppsFolder\Microsoft.WindowsAlarms_8wekyb3d8bbwe!App

Или из run (Win + R):

shell:AppsFolder\Microsoft.WindowsAlarms_8wekyb3d8bbwe!App

Взгляните на эту статью для получения более подробной информации об открытии и создании ярлыков: http://winaero.com/blog/exclusive-how-to-start-a-modern-app-from-desktop-without-going-to-the-metro-start-screen/