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.
Related
I'm tearing my hair out trying to build a windows app using Cordova. The build error I'm getting is:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\
MSBuild\Microsoft\NuGet\15.0\Microsoft.NuGet.targets(377, 5):
error : The package System.Collections.Specialized with version 4.0.0
could not be found in C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\.
Run a NuGet package restore to download the package.
[C:\cygwin64\home\Owner\src\apps\mytestapp-
gen\platforms\windows\CordovaApp.Windows10.jsproj]
In visual studio, I attempt to add the version of the package to the project and I get the following error:
Severity Code Description Project File Line Suppression State
Error Could not install package 'System.Collections.Specialized
4.0.0'. You are trying to install this package into a project that targets
'native,Version=v0.0', but the package does not contain any assembly
references or content files that are compatible with that framework. For
more information, contact the package author.
Can anyone advise how to resolve this?
I've looked at this very old question How can I make my managed NuGet package support C++/CLI projects? but I can't find anything (particually from the VS2017 era) that helps
May be, this helps others to solve the issue:
My Visual Studio 2017 installation must obviously have been damaged when removing the Visual Studio 2015 installation from that same machine. After I performed a repair of Visual Studio 2017 via Visual Studio Installer the isuue disappeared.
dotnet Version: 1.1.0 (global.json)
NuGet Version : 4.4.1.4656
VS2017 v15.5.2 (as Administrator)
.NET Core 1.1
The solution I am trying to build
Update I:
I just changed the project to run under target framework .NET Core v2.0 & sdk version 2.1.3 and I only get these kind of errors:
Severity Code Description Project File Line Suppression State
Error NU1202 Package Microsoft.Extensions.FileProviders.Physical 1.1.0
is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0).
Package Microsoft.Extensions.FileProviders.Physical 1.1.0 does not
support any target
frameworks. AspNetCoreExample C:\Users\Admin\Source\Repos\Examples\src\AspNetCoreExample\AspNetCoreExample.csproj 1
Update II:
While the following solves the current issue, i am not sure if it solves the root cause for this issue.
Delete the global nuget.config file %AppData%/Nuget/Nuget.config.
I fixed this issue by doing the following:
I migrated the project to .net core 2.0 and changed the global.json to point to sdk 2.1.3.
Removed all references in AspNetCoreExample manually and added the latest version for all of them.
Issues with target framework 1.1
When doing a restore from the solution in VS 2017:
When doing the restore from cmd (dotnet restore)
Running dotnet restore in Package Manager Console
NuGet.targets(103,5): error : Access to the path 'System.Runtime.dll'
is denied
.NET Core SDKs installed:
.NET Host
Now when opening the solution I get:
Comparing the log entries you pasted to their AppVeyor build,
https://ci.appveyor.com/project/Autofac/examples
Your machine's NuGet configuration seems to be broken. Analyze that and fix the issues.
You should add this code to your .csproj file
<RuntimeFramework>2.0.3</RuntimeFramework>
This worked for me.
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
Complete VS noob. Fresh install of Visual Studio Community 2015. New project. Trying to install FsLab with NuGet ends with this error:
Unable to find a version of 'Deedle' that is compatible with 'FsLab 1.0.2 constraint: Deedle (= 1.2.5)'
When I search for Deedle the version that NuGet shows is v1.2.5.
I suspect this is a NuGet problem after reading about some issues with its dependency resolution management.
I tried installing Deedle separately and setting NuGet's Dependency behavior to Highest with no luck. In the end I installed Paket which worked with no problems. No time to debug this further for now.
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}