Efcore: After upgrading to 2.1.0-rc1-final can't compile and VS 2017 crashes.

Created on 18 May 2018  路  7Comments  路  Source: dotnet/efcore

I had a working project running with .NET Core 2.0, EntityFrameworkCore 2.0.

I upgraded to VS 2017 15.7.1
.Net Core 2.1 (netcoreapp2.1)
EntityFrameworkCore 2.1.0-rc1-final

Now when I compile the application I get the following error:

Line    Suppression State
Error   MSB6006 "csc.exe" exited with code -1073741571. OrgModel    
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn\Microsoft.CSharp.Core.targets    52  

I've narrowed the problem down to the attached class. When I open the class up in VS, VS will hang and crash.

If I comment out all of the context.Database.ExecuteSqlCommand lines, then it will open in VS without crashing and it will compile.

I built a full project that demonstrates the issue:
MigrationHelpTest.zip

Any ideas?

Thanks,

Jason

closed-fixed customer-reported type-bug

Most helpful comment

@anpete The release/2.1 branch is now open for 2.1.1 patch issues. Can we get this merged ASAP?

All 7 comments

@anpete Do you think this could be an analyzer issue?

Looks like it. I was able to repro in our tests.

Removing patch-proposed until we are ready to take this to shiproom.

This is approved by shiproom for 2.1.1 patch, but please wait for the branch to be open before merging.

@anpete The release/2.1 branch is now open for 2.1.1 patch issues. Can we get this merged ASAP?

@vankooch This fix was shipped with the 2.1.1 update of EF Core.

Was this page helpful?
0 / 5 - 0 ratings