Bulky icon indicating copy to clipboard operation
Bulky copied to clipboard

Section 8 - Lecture 1

Open importantlybig opened this issue 2 years ago • 7 comments

Hi teacher, At section 8 lecture 1, I can not add the Scaffold, when I'm trying to add it shows errors that: "There was an error running the selected code generator: 'Package restore failed. Rolling back package changes for 'ProjectName''". Although I have installed the package as similar as the video lecture.

importantlybig avatar Mar 19 '22 04:03 importantlybig

Did you find a solution to this problem?

S00083446 avatar Apr 17 '22 20:04 S00083446

Yes I have solved it, Thank you

importantlybig avatar Apr 18 '22 01:04 importantlybig

Same error while scaffolding MissingMethodException: Method not found: 'Void CoreTypeMappingParameters..ctor(System.Type, Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer, System.Func`3<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>)'.

please Help

geetagujral avatar Jul 12 '22 04:07 geetagujral

Hi teacher, At section 8 lecture 1, I can not add the Scaffold, when I'm trying to add it shows errors that: "There was an error running the selected code generator: 'Package restore failed. Rolling back package changes for 'ProjectName''". Although I have installed the package as similar as the video lecture.

well what was th e solution other's would like to know

althepal78 avatar Sep 04 '22 23:09 althepal78

Yes I have solved it, Thank you

Since you figured it out already put the solution here and close this issue. You learn something on your own, and it will be a better lesson than just rewriting.

althepal78 avatar Sep 08 '22 22:09 althepal78

I had the same problem. First I updated the libraries to the 6.0.9 version but still I got an issue when trying to scaffold identity. the problem is tracked here https://github.com/dotnet/Scaffolding/issues/2019

and you can proceed with a workaround as Bhrugen suggest in lecture 127

hope this help.

thanks.

aironangel avatar Sep 21 '22 07:09 aironangel

Hi guys, I resolve this problem with unistall all nuGet package, clear nuGet cache, and re-install all nuGet package (in my specific case, for this project I use NET 6.0 (long term) and the first time that I install nuGet package, I install with 6.011 version and, in the second time, I install all 6.013 version and all identity scaffolding works.

bertoldimatteo avatar Feb 05 '23 13:02 bertoldimatteo