Closed JohnGalt1717 closed 5 years ago
We need either your whole project, or a complete self-contained repro. Or a crash dump.
Please provide instructions for how to create the crash dump.
https://docs.microsoft.com/en-us/windows/desktop/wer/collecting-user-mode-dumps should help. The process we care about is called "VBCSCompiler.exe"
Sorry for the delay. I have the files, but given it might contain senstitive information about my computer and work, I'd rather not just post it here. Who can I send a OneDrive link to?
Bump...
Some more information:
If I use SDK 2.2.106 it builds fine.
If I use SDK 2.2.203 it fails with the above and this detail when using dotnet.exe to build it: Unexpected value 'Beq' of type 'System.Reflection.Metadata.ILOpCode'
The machine is a brand new Windows 10 machine fully patched with ONLY VS.net 2019 on it. I installed 2.2.106 manually from dot.net to test.
Hopefully that issolates the actual issue.
And, even using .106 with VS.net 2019 you still get the same error.
We are having a similar issue. I have reduced the code as much as possible here: ClassLibrary1.zip
I'am unable to collect dumps for "VBCSCompiler.exe" but I collected for "dotnet.exe" if that is of any help ClassLibrary1Dump.zip
Edit: Managed to get a dump of VBCSCompiler. VBCSCompiler.dmp.zip
@ldy985 thanks for the repro!
I can confirm that in docker running dotnet publish, it works fine in 2.2.105 of the SDK but breaks with 2.2.106 of the SDK.
This should be straight forward to figure out what broke it.
This was fixed in https://github.com/dotnet/roslyn/pull/34791
This isn't fixed. Just had it happened with 2.2.207 (I know, not supported but we're screwed because of the disaster that is ef core 3.x.)
@JohnGalt1717 Do you believe that #34971 is included in 2.2.207?
@gafter I'm not sure because of the phycotic nature of the numbering scheme for 2.2.x releases of the SDK, but according to the 2.2 SDK homepage for downloads 2.2.207 is the most recent release. (and the alternative 2.2.110 listed in the same release area doesn't have a docker image)
Version Used: 2.2.203 .NET Core VS.NET 2019 16.0
Steps to Reproduce:
Here's my CSProj:
Expected Behavior:
Should build normally like dotnet.exe does.
Actual Behavior:
Crashes with this in the output: Microsoft.CSharp.Core.targets(58,5): error MSB6006: "csc.exe" exited with code -2146232797.