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

Trying to build projects with project references that target different SDK versions explodes #352

Closed
NTaylorMullen opened this issue Nov 3, 2016 · 1 comment

Comments

@NTaylorMullen
Copy link
Contributor

Attached is a set of projects where Project1 => Project2 => Project3

Project1 and Project3 hve Microsoft.NET.Sdk 1.0.0-alpha-20161029-1. Project2 has Microsoft.NET.Sdk 1.0.0-alpha-20161026-2.

try and restore/build Project1. It results in:

"C:\Users\nimullen\Documents\temp\bug\src\Project1\Project1.csproj" (Build target) (1) ->
       (RunResolvePackageDependencies target) ->
         C:\Users\nimullen\.nuget\packages\microsoft.net.sdk\1.0.0-alpha-20161029-1\build\Microsoft.PackageDependencyResolution.targets(138,5): error MSB4062: The "Microsoft.NET.Build.Tasks.ResolvePackageDependencies" task could not be loaded from the assembly C:\Users\nimullen\.nuget\packages\microsoft.net.sdk\1.0.0-alpha-20161029-1\build\..\tools\netcoreapp1.0/Microsoft.NET.Build.Tasks.dll. Assembly with same name is already loaded 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. [C:\Users\nimullen\Documents\temp\bug\src\Project1\Project1.csproj]

Now, I get that a lot of this is an msbuildism but it's an awful experience 😄

@srivatsn
Copy link
Contributor

With the moved to the SDK attribute a direct version is not specified and we will build with compatible SDKs. This problem is alleviated.

sbomer pushed a commit to sbomer/sdk that referenced this issue Sep 19, 2017
Bump minor versions of packages to move to next release
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

2 participants