gentoo / dotnet

[MIRROR] Newer mono, .NET languages, and libraries
https://gitweb.gentoo.org/repo/proj/dotnet.git
78 stars 56 forks source link

msbuild-roslyn-csc-15.3-r1 compilation failure #426

Open fluffynuts opened 5 years ago

fluffynuts commented 5 years ago

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 commented 5 years ago

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

kalinjul commented 5 years ago

Same error here...

bradley-jarvis commented 5 years ago

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

fluffynuts commented 5 years ago

@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.