dotnet icon indicating copy to clipboard operation
dotnet copied to clipboard

msbuild-roslyn-csc-15.3-r1 compilation failure

Open fluffynuts opened this issue 6 years ago • 4 comments

I'm seeing this at the end of emerging dotnetcore-sdk-bin: msbuild-roslyn-csc fails to compile with the error:

/var/tmp/portage/dev-dotnet/msbuild-roslyn-csc-15.3-r1/work/roslyn-ec1cde8b77c7bca654888681037f55aa0e62dd19/src/Compilers/Core/MSBuildTask/mono-MSBuildTask.csproj (default targets) ->                                                                             
/usr/lib64/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->                                                              
                                                                                                                                  
        CopyRefAssembly.cs(53,21): error CS0165: Use of unassigned local variable 'source'

eix msbuild-roslyn-csc only reveals one available version:

* dev-dotnet/msbuild-roslyn-csc [1]
     Available versions:  (~)15.3-r1^m {(+)debug developer doc (+)net45}
     Homepage:            https://github.com/dotnet/roslyn
     Description:         C# compiler with rich code analysis APIs

so I can't compare with any prior build. Any suggestions?

fluffynuts avatar May 13 '19 04:05 fluffynuts

BTW, I can still dotnet build on a dotnet core .sln, so I'm not sure what I should be missing?

fluffynuts avatar May 13 '19 04:05 fluffynuts

Same error here...

kalinjul avatar May 13 '19 18:05 kalinjul

Same error, here is a patch just put it into /etc/portage/patches/dev-dotnet/msbuild-roslyn-csc directory and maybe remove the txt extension which I had to add to upload it.

99-CopyRefAssemblyFix.patch.txt

bradley-jarvis avatar Jun 06 '19 11:06 bradley-jarvis

@bradley-jarvis see #378 for more discussion. Your patch has come in handy and I've included it in a "hackaround" script which has enabled me to install msbuild successfully.

fluffynuts avatar Jul 29 '19 18:07 fluffynuts