Error DEP0700 0x80073cf3 during Windows 10 UWP application deployment with Visual Studio - powershell

I'm unable to deploy my UWP project anymore in the Release/x64 configuration with .NET Native.
It appears that it can't find the x86 version of the .NET Native Runtime package during deployment, while it has built a x64 package on the target platform that is really x64.
The error is below:
Error : DEP0700 : Registration of the app failed. Windows cannot install package XXXXXXXXX-d24ead15699e because this package depends on another package that couldn't be found.
This package requires minimum version 1.2.23231.0 of framework Microsoft.NET.Native.Runtime.1.2 published by CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US to install;
The frameworks with name Microsoft.NET.Native.Runtime.1.2 available to the user are Microsoft.NET.Native.Runtime.1.2_1.2.23231.0_x86__8wekyb3d8bbwe.
Provide the correct framework along with this package. (0x80073cf3)
In fact this problems appeared after trying to install the app package with the Powershell script instead of from Visual Studio (ie on the development computer where Visual Studio is installed and that is used for debugging).
I had generated an deployment application package for both x86 & x64 platform at the same time. it seems now that there is a conflict in Microsoft.NET.Native.Framework referencing or between different kinds of deployment (with VS2015 or with PowerShell) on the PC but I don't know why and how resolve it.
Any help would be greatly appreciate.
Thanks,
Thibault

I had to manually add this to my project to get the CoreRuntime appx to deploy as a dependency when debugging. I assume you can do something similar with the native runtime
<ItemGroup>
<SDKReference Include="Microsoft.NET.CoreRuntime, Version=1.0">
<Name>Microsoft .NET Core Runtime Package for Windows</Name>
</SDKReference>
</ItemGroup>

For me, changing the Guids in the Package.appmanifest file helped:
<Identity Name="04135591-f637-4b60-ac7d-aa2fda03651d" ... />
<mp:PhoneIdentity PhoneProductId="04135591-f637-4b60-ac7d-aa2fda03651d" ... />
Replace with a new Guid.

My problem is solved by modify vs 2017 installation, adding ".NET Core cross-platform development". Along with the installation, ".NET Core 2.0 development tools" is installed. I guess it is required by vs deployment.
The error I got before,
DEP0700: Registration of the app failed. [0x80073CF3]
Windows cannot install package d6ff9b9c-06f8-4ead-a5cb-9389bd79cb13_2.3.0.0_x86__5xzajrpst8fmr
because this package depends on a framework that could not be found. Provide the framework "Microsoft.NET.CoreRuntime.2.1"
published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x86 processor architecture and minimum version 10.0.16299.0,
along with this package to install. The frameworks with name "Microsoft.NET.CoreRuntime.2.1"
currently installed are: {Microsoft.NET.CoreRuntime.2.1_2.1.26124.5_x86__8wekyb3d8bbwe}

Related

How to implement step 3 of MIKROS Integration Unity Guide?

Currently, I am having issues integrating Mikros sdk. I downloaded the Mikros 1.1.0 SDK and using Unity 2021.3.6f1. What I have done so for is register an account on Mikros, created a project and was able to get it approved.
When I try to import Mikros 1.1.0 SDK to my project on Unity, I get this error:
Assembly
'Packages/com.tatumgames.mikros/Runtime/Plugins/MikrosLibrary.dll'
will not be loaded due to errors: MikrosLibrary references strong
named Newtonsoft.Json Assembly references: 12.0.0.0 Found in project:
13.0.0.0. Assembly Version Validation can be disabled in Player Settings "Assembly Version Validation"
When I tried to look up how to fix this error with Newtonsoft.Json, I read these:
ref- Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0 issue using Google.Apis.*
ref-Could not load file or assembly 'NewtonSoft.Json, Version=12.0.0.0'
From what I've been researching, I am able to configure an app.config file using a bindingredirect for the Newtonsoft.json file that the package references 12.0.0.0 to 13.0.0.0, but I don't quite understand how to do that as I am still researching how that works.
I have also learned that Unity 2021.3.6f1 comes packaged out the box with Newtonsoft.Json version 13 because I have also tried downgrading my Newtonsoft.Json version to 12 to match with the package.
Here are screenshots of the specific steps I have taken on Unity.
Import Custom Package:
Import Mikros SDK 1.1.0 with default selection(all files to be imported):
Error 1:
Error 2:
I have also learned that Unity 2021.3.6f1 comes packaged out the box with Newtonsoft.Json version 13 because I have also tried downgrading my Newtonsoft.Json version to 12 to match with the package.
This seems to be the solution. But maybe you didn't do it correct. You should ensure that all projects and dependencies are using the same version. You can do this by running the following command and check the results:
update-package Newtonsoft.Json -reinstall
You may want to also look at your web.config:
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
You can also reinstall while choosing a specific version like this,
update-package Newtonsoft.Json -version 12.0.0 -reinstall

UWP Deployment Microsoft.NET.Native.Runtime.1.7 not found error

I have recently installed a few updates to windows / visual studio 2017, and now when I create a package of my UWP app and try deploying it to any of the machine where it used to work just fine - installation fails and there is this error message in windows error log:
AppX Deployment operation failed for package 92211ab1-5481-4a1a-9111-a3dd87b81b72_1.0.26.0_neutral_~_n78qa84z3g9aj with error 0x80073CF3. The specific error text for this failure is: Windows cannot install package 92211ab1-5481-4a1a-9111-a3dd87b81b72_1.0.26.0_x86__n78qa84z3g9aj because this package depends on a framework that could not be found. Provide the framework "Microsoft.NET.Native.Runtime.1.7" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x86 processor architecture and minimum version 1.7.25531.0, along with this package to install. The frameworks with name "Microsoft.NET.Native.Runtime.1.7" currently installed are: {}
I can not find any reference on the web for this package.
The package installs just fine on the developement machine.
Any help would be greatly appreciated.
EDIT 1:
Screenshot of my dependencies folder below:
UWP Deployment Microsoft.NET.Native.Runtime.1.7 not found
The problem is that there is no Microsoft.NET.Native.Runtime.1.7 dependence in current OS system. And you could install Microsoft.NET.Native.Runtime.1.7 dependence manually.
The Microsoft.NET.Native.Runtime.1.7 dependence will be stored in the Dependencies folder where under the appx folder.
Update1
I have checked your screenshot. It seems that you generate your package in debug mode and I can reproduce the same dependency in this way. The .NET Native tool chain is checked by default in the release mode. So you could regenerate your package in release mode to get files above.
Looks like these dependencies only appear on a Release build, and not in Debug.

I'm having issues using postsharp 5.0.31 and .net core 1.1 on macOS Sierra, I'm getting a build error

I'm trying to build a .netcore 1.1 console project using postsharp 5.0.31 on macOS Sierra, but when I run the command line:
dotnet build
The build fail and show the next output;
MacBook-Pro:PostsharpSample userx$ dotnet build
Microsoft (R) Build Engine version 15.1.548.43366
Copyright (C) Microsoft Corporation. All rights reserved.
PostsharpSample -> /Users/userx/Documents/VSCode/netcore/PostsharpSample/bin/Debug/netcoreapp1.1/PostsharpSample.dll/Users/userx/.nuget/packages/postsharp/5.0.31/build/PostSharp.targets(564,5): error MSB4062:
The "PostSharp.MSBuild.PostSharp30ChangeAppConfig" task could not be loaded from the assembly /Users/userx/.nuget/packages/postsharp/5.0.31/build/PostSharp.MSBuild.v5.0.31.Release.dll.
Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
The system cannot find the file specified. [/Users/userx/Documents/VSCode/netcore/PostsharpSample/PostsharpSample.csproj]/Users/userx/.nuget/packages/postsharp/5.0.31/build/PostSharp.targets(564,5):
error MSB4062: 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. [/Users/userx/Documents/VSCode/netcore/PostsharpSample/PostsharpSample.csproj]
It is possible to use .netcore and Postsharp on macOS Sierra?
I need specific configuration?
As of version 5.0, PostSharp does not support building under any OS other the Windows. .NET Core is supported only as a target framework for your projects.
Please refer to http://doc.postsharp.net/requirements for latest information on compatibility.
You can also vote for adding support for .NET Core as a build platform on this UserVoice page: Support for CoreCLR as a build platform (including Linux, iOS).

Ask the developer for a new app package. This package may conflict with a package already installed

I have converted an .EXE application using DesktopAppConverter, I have the .appX file. I installed the auto-generated certificate. Now When I try to install the appX file in my computer I get this error
Ask the developer for a new app package. This package may conflict with a package already installed, or it depends on things not installed here (package dependencies), or is made for a different architecture (0x80073CF3)
How Can I fix this??
the converter at one point says
VERBOSE: Added a new framework package dependency based on file 'C:\vfs0\Users\ContainerAdministrator\AppData\Local\Fun
Money\msvcp120.dll'. Package name: 'Microsoft.VCLibs.120.00.UWPDesktop'
WARNING: DesktopAppConverter : warning 'W_PACKAGE_DEPENDENCY_ADDED': A dependency on framework package
'Microsoft.VCLibs.120.00.UWPDesktop' was added to the AppxManifest.xml. See
'http://go.microsoft.com/fwlink/?LinkId=821959' for guidance on installing the package prior to local deployment.
Otherwise, if this is in error, remove the corresponding entry from Dependencies in the AppxManifest.xml before
packaging and deploying your application.
VERBOSE: --------------------------------------------------
I did visit go.microsoft.com/fwlink/?LinkId=821959 and I installed VC 14, 12 and 11. But Still The same error.
Note The appManifest.xml in .appX file (used winrar to open it) have this dependencies
<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14393.0" MaxVersionTested="10.0.14393.0" />
<PackageDependency Name="Microsoft.VCLibs.120.00.UWPDesktop" MinVersion="12.0.40652.5" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" />
</Dependencies>
Yet when I visit C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs.Desktop\14.0
I only have the 14.0 version to install no 12.0 folder exists.
I'm not sure if this note helps fixing the problem but I added just in case.
When sideloading an .appx package that has dependencies, those dependencies are not downloaded from the Windows Store automatically. You will need to explicitly install them on the target machine. Users who get your app from the Store won't need to do this, the Store will install for them.
Here is how you do it in the sideloading scenario:
- open a powershell command prompt
- locate the .appx package for your dependency (in this case 'Microsoft.VCLibs.x86.12.00.Universal.appx')
- run Add-AppxPackage Microsoft.VCLibs.x86.12.00.Universal.appx
- now try deploying your app package again
Thanks,
Stefan Wick - Windows Developer Platform

Installing MonoGame_3.0.1.mpack in XamarinStudio in Mac OS x I got this error "The Packacge 'Core v4.0' could not be found in any repository"

I'm trying to configure my development environment in my Mac with Xamarin and MonoGame but when I tried to add "MonoGame_3.0.1.mpack" in the Add-in Manager I got this error:
The Packacge 'Core v4.0' could not be found in any repository
The Packacge 'Ide v4.0' could not be found in any repository
This what I have installed on my Mac with no errors:
-Installed XamarinStudio
-Installed MonoFramework-MDK-3.8.0.macos10.xamarin.x86.pkg
-Installed MonoFramework-MRE-3.8.0.macos10.xamarin.x86.pkg
I'll really appreciate if any of you knows how can install MonoGame_3.0.1.mpack in Xamarin on Mac OS x
The issue is that that version of the template is not compatible with the version of Xamarian Studio you have installed. Until the newest version of Xamarian Studio is released for Mac, you won't be able to install that template.
However, you can download the template from here. It is compatible with the Mac OS X build version 5.5.2 of Xamarian Studio.