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

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

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

Comments

Projects
None yet
1 participant
@RandyBuchholz

RandyBuchholz commented Jul 8, 2017

There was a compatibility error with Microsoft.Composition. This is being addressed dotnet/corefx#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

This comment has been minimized.

RandyBuchholz commented Jul 8, 2017

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 join this conversation on GitHub. Already have an account? Sign in to comment