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
@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?
Is this already released? I've still problems with my VS see https://developercommunity.visualstudio.com/content/problem/278419/fromsql-makes-crash-visual-studio.html
@vankooch This fix was shipped with the 2.1.1 update of EF Core.
Most helpful comment
@anpete The release/2.1 branch is now open for 2.1.1 patch issues. Can we get this merged ASAP?