Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UAP10 "Microsoft.NETCore.UniversalWindowsPlatform": "5.2.0" is too high? #57

Open
xied75 opened this issue Aug 5, 2016 · 0 comments
Open

Comments

@xied75
Copy link

xied75 commented Aug 5, 2016

The current project.json specified dependency as 5.2.0, yet the default template for UWP app is 5.1.0. Therefore the two can't work correctly together.

To repro:

1, use VS 2015 update 3 to create a new UWP app, it compiles alright.
2, add SSH.NET in by NuGet, then F6 will give us these errors:

Detected package downgrade: Microsoft.Win32.Primitives from 4.0.1 to 4.0.0 
 App3 (>= 1.0.0) -> Microsoft.NETCore.UniversalWindowsPlatform (>= 5.1.0) -> Microsoft.NETCore (>= 5.0.0) -> System.Net.Primitives (>= 4.0.10) -> runtime.win.System.Net.Primitives (>= 4.0.11) -> Microsoft.Win32.Primitives (>= 4.0.1) 
 App3 (>= 1.0.0) -> Microsoft.NETCore.UniversalWindowsPlatform (>= 5.1.0) -> Microsoft.Win32.Primitives (>= 4.0.0)
Detected package downgrade: Microsoft.Win32.Primitives from 4.0.1 to 4.0.0 
 App3 (>= 1.0.0) -> Microsoft.NETCore.UniversalWindowsPlatform (>= 5.1.0) -> System.Net.Requests (>= 4.0.10) -> System.Net.Primitives (>= 4.0.10) -> runtime.win.System.Net.Primitives (>= 4.0.11) -> Microsoft.Win32.Primitives (>= 4.0.1) 
 App3 (>= 1.0.0) -> Microsoft.NETCore.UniversalWindowsPlatform (>= 5.1.0) -> Microsoft.Win32.Primitives (>= 4.0.0)
...
1>------ Build started: Project: App3, Configuration: Debug x86 ------
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed.
1>  App3 -> c:\scratch\App3\App3\bin\x86\Debug\App3.exe
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1692,5): error APPX1101: Payload contains two or more files with the same destination path 'Microsoft.Win32.Primitives.dll'. Source files: 
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1692,5): error APPX1101: C:\Users\dong\.nuget\packages\Microsoft.Win32.Primitives\4.0.0\lib\dotnet\Microsoft.Win32.Primitives.dll
...

If we change the UWP app json to 5.2.0, then all those will be gone. But this is probably prohibited for some people/project.

If there is no specific reason to require 5.2.0, can we change it to 5.1.0 so that it works out of box?

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant