Skip to content
This repository has been archived by the owner on Apr 11, 2020. It is now read-only.

Outdated Reference in ...CodeGeneration.Design" Version="2.0.0-preview2-final" #1051

Open
RandyBuchholz opened this issue Jul 8, 2017 · 1 comment

Comments

@RandyBuchholz
Copy link

There was a compatibility error with Microsoft.Composition. This is being addressed https://github.com/dotnet/corefx/issues/18452.

CodeGeneration.Design is still referencing the old version and gives:
Package 'Microsoft.Composition 1.0.27' was restored using '.NETFramework,Version=v4.6.1' instead the project target framework...

The correct version is 1.0.31.

image

@RandyBuchholz
Copy link
Author

Workaround. For a new project this seems to get things right.
In VS2017-3

  1. Create a new MVC project. It will bring in three references. AspNetCore.All, EntityFrameworkCore.Tools, CodeGeneration.Design. There will be a warning on Design.
  2. Remove CodeGeneration.Design from your project file.
  3. In PackageManager add Microsoft.Composition 1.0.31
  4. In PackageManager add CodeGeneration.Design

The subs to Design are different now and everything seems to work
image

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

No branches or pull requests

1 participant