Closed AdamSpeight2008 closed 9 years ago
Those are often caused by nugget update wrecking havoc in the various .config runtime assembly binding redirects. Resetting those via git or blanking them out and letting msbuild recreate them usually gets things back in order.
Also, that seems related to issue #3388.
@codespare @Pilchie Tried created a new branch based on the latest master
still same issue.
What would be causing this issue #3618. It seem to be an issue with the compiler-generated code files
The problem is that the new RC3 compilers require version 1.1.36 of System.Collections.Immutable. We assume that this is loaded by the compiler (since it also requires this library at runtime), but RC bits load an older version of System.Collections.Immutable hence the warnings (which have been converted to errors since we're compiling with warnings-as-error). To work around this, do not compile with warnings as errors.
@jmarolf Tried that still does want me to build.
Is there another error you get other than BC42376 and CS8032?
@AdamSpeight2008 do you have Xamarin installed per chance?
@ghuntley Nope. Just VS2013 and VS2015RC
Think I've fixed had to pull the nuget packages from the daily build.
This is how I build at the moment, using MSBuild 12/VS 2013, so not getting the 2015 pieces, but obtaining a strong named output that ngens while being distinguishable from the official releases:
$scriptDirectory = Split-Path $PSCommandPath -Parent
Write-Host "In $(Get-Location)"
pushd $scriptDirectory
$latest = (gci . -Directory | select -Last 1)
pushd $latest
Write-Host "Switched to $(Get-Location)"
Set-ProcessEnvironment $EnvironmentConfig.VSSDK2103
$keyDir = '.\src\Tools\Microsoft.CodeAnalysis.Toolset.Open\Strong Name Keys'
$keyFile = '35MSSharedLib1024.snk'
$keyPath = Join-Path -Path $keyDir -ChildPath $keyFile
$keySha1Hash = (Get-Hash -Path $keyPath -Algorithm SHA1).HashString
$srcKeySha1Hash = 'CE2C1EAE0F938D5099A28243354E36AD5638BF31'
if ($keySha1Hash -ieq $srcKeySha1Hash) {
$keyKeepFile = '35MSSharedLib1024-src.snk'
$keyKeepPath = Join-Path -Path $keyDir -ChildPath $keyKeepFile
copy $keyPath $keyKeepPath
sn.exe -k $keyPath
}
MSBuild.exe .\build\Toolset.sln /P:Configuration=Release /P:Platform='Mixed Platforms' /T:Clean
MSBuild.exe .\build\Toolset.sln /P:Configuration=Release /P:Platform='Any CPU' /T:Clean
MSBuild.exe .\BuildAndTest.proj /P:Configuration=Release /P:Platform='Mixed Platforms' /T:Clean
MSBuild.exe .\BuildAndTest.proj /P:Configuration=Release /P:Platform='Any CPU' /T:Clean
rmdir .\Binaries -Recurse
MSBuild.exe .\build\Toolset.sln /P:Configuration=Release /P:Platform='Mixed Platforms' /P:RoslynSemanticVersion=0.9.9 /P:BuildVersion=0.9.9.0 /m /v:m /P:SignAssembly=true /P:DelaySign=false /P:NonShipping=true
MSBuild.exe .\build\Toolset.sln /P:Configuration=Release /P:Platform='Any CPU' /P:RoslynSemanticVersion=0.9.9 /P:BuildVersion=0.9.9.0 /m /v:m /P:SignAssembly=true /P:DelaySign=false /P:NonShipping=true
MSBuild.exe .\BuildAndTest.proj /P:Configuration=Release /P:Platform='Mixed Platforms' /P:RoslynSemanticVersion=0.9.9 /P:BuildVersion=0.9.9.0 /m /v:m /P:SignAssembly=true /P:DelaySign=false /P:NonShipping=true
MSBuild.exe .\BuildAndTest.proj /P:Configuration=Release /P:Platform='Any CPU' /P:RoslynSemanticVersion=0.9.9 /P:BuildVersion=0.9.9.0 /m /v:m /P:SignAssembly=true /P:DelaySign=false /P:NonShipping=true
#robocopy .\Binaries\Release ..\..\..\plant\roslyn /MIR /MOVE
popd
popd
Still no luck Text from build
Well it's all warnings, not so bleak :) More seriously, what would be the output of cd c:\ dir /s System.Collections.Immutable.dll from a regular command prompt on that host?
@codespare
c:\>dir /s System.Collections.Immutable.dll
Volume in drive C is Win8.1 SSD
Volume Serial Number is F2E3-FD4D
Directory of c:\$Recycle.Bin\S-1-5-21-2848396786-1788430068-692082123-1001\$RDB
64V6
30/05/2015 22:23 204,544 System.Collections.Immutable.dll
1 File(s) 204,544 bytes
Directory of c:\$Recycle.Bin\S-1-5-21-2848396786-1788430068-692082123-1001\$RII
5G15
30/05/2015 22:23 204,544 System.Collections.Immutable.dll
1 File(s) 204,544 bytes
Directory of c:\$Recycle.Bin\S-1-5-21-2848396786-1788430068-692082123-1001\$RK6
LGO7.0-rc3-20150616-02\tools
21/06/2015 19:11 204,544 System.Collections.Immutable.dll
1 File(s) 204,544 bytes
Directory of c:\$Recycle.Bin\S-1-5-21-2848396786-1788430068-692082123-1001\$RTN
MZTP.2\tools
21/06/2015 19:11 230,624 System.Collections.Immutable.dll
1 File(s) 230,624 bytes
Directory of c:\$Recycle.Bin\S-1-5-21-2848396786-1788430068-692082123-1001\$RTO
GEY1.36\lib\portable-net45+win8+wp8+wpa81
21/06/2015 19:11 204,544 System.Collections.Immutable.dll
1 File(s) 204,544 bytes
Directory of c:\$Recycle.Bin\S-1-5-21-2848396786-1788430068-692082123-1001\$RTU
JBFR\FakeSign.0.9.2\tools
30/05/2015 22:23 230,624 System.Collections.Immutable.dll
1 File(s) 230,624 bytes
Directory of c:\$Recycle.Bin\S-1-5-21-2848396786-1788430068-692082123-1001\$RTU
JBFR\Microsoft.Net.Compilers.1.0.0-rc3-20150616-02\tools
21/06/2015 19:01 204,544 System.Collections.Immutable.dll
1 File(s) 204,544 bytes
Directory of c:\$Recycle.Bin\S-1-5-21-2848396786-1788430068-692082123-1001\$RTU
JBFR\Microsoft.Net.ToolsetCompilers.1.0.0-rc3-20150510-01\tools
30/05/2015 22:24 233,688 System.Collections.Immutable.dll
1 File(s) 233,688 bytes
Directory of c:\$Recycle.Bin\S-1-5-21-2848396786-1788430068-692082123-1001\$RTU
JBFR\System.Collections.Immutable.1.1.36\lib\portable-net45+win8+wp8+wpa81
30/05/2015 22:23 204,544 System.Collections.Immutable.dll
1 File(s) 204,544 bytes
Directory of c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Pr
ivateAssemblies
02/04/2015 17:35 230,624 System.Collections.Immutable.dll
1 File(s) 230,624 bytes
Directory of c:\Program Files (x86)\MSBuild\14.0\Bin
02/04/2015 17:34 230,624 System.Collections.Immutable.dll
1 File(s) 230,624 bytes
Directory of c:\Program Files (x86)\MSBuild\14.0\Bin\amd64
27/03/2015 15:32 230,624 System.Collections.Immutable.dll
1 File(s) 230,624 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0\Extensions
\2yqn3f0n.mwj
28/09/2014 23:22 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0\Extensions
\ho4hh1x3.0yx
22/07/2014 19:24 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0\Extensions
\m3bu3fwa.cbk
02/08/2014 00:17 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0\Extensions
\o3hosrpg.kay
23/07/2014 14:20 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0\Extensions
\uxpii2bv.1nw
22/07/2014 19:24 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0\Extensions
\xzfu5avg.qyr
28/09/2014 23:23 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0Exp\Extensi
ons\Extensions-12.0\f5amgsbl.leg
25/07/2014 09:47 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0Exp\Extensi
ons\Extensions-12.0\ho4hh1x3.0yx
22/07/2014 19:24 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0Exp\Extensi
ons\Extensions-12.0\m3bu3fwa.cbk
02/08/2014 00:17 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0Exp\Extensi
ons\Extensions-12.0\o3hosrpg.kay
23/07/2014 14:20 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0Exp\Extensi
ons\Extensions-12.0\uxpii2bv.1nw
22/07/2014 19:24 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0Roslyn\Exte
nsions\AdamSpeight2008\String Format Diagnostic (CS)\1.13
25/09/2014 10:48 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0Roslyn\Exte
nsions\AdamSpeight2008\String Format Diagnostic (VB)\1.13
25/09/2014 10:48 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0Roslyn\Exte
nsions\b3fsgivh.b3f
08/10/2014 02:41 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0Roslyn\Exte
nsions\Extensions-12.0\uxpii2bv.1nw
22/07/2014 19:24 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0Roslyn\Exte
nsions\lsnun4qz.qol
08/10/2014 02:41 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0Roslyn\Exte
nsions\Roslyn ()\BadConstructorAssignment\1.0
01/11/2014 16:46 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0Roslyn\Exte
nsions\Roslyn ()\Diagnostic1\1.0
25/09/2014 10:48 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0Roslyn\Exte
nsions\Roslyn ()\Diagnostic_VB\1.0
25/09/2014 10:48 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\12.0Roslyn\Exte
nsions\v2kk3ebk.par
08/10/2014 02:41 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\14.0\Extensions
\ycqtabui.xxp
30/04/2015 13:21 210,136 System.Collections.Immutable.dll
1 File(s) 210,136 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\14.0Roslyn\Exte
nsions\MSOpenTech\OpenSourceDebug\0.7
01/07/2015 01:18 204,544 System.Collections.Immutable.dll
1 File(s) 204,544 bytes
Directory of c:\Users\Adam\AppData\Local\Microsoft\VisualStudio\14.0RoslynDev\E
xtensions\Microsoft\FxCopRulesSetup\42.42.42.42
01/07/2015 01:18 204,544 System.Collections.Immutable.dll
1 File(s) 204,544 bytes
Directory of c:\Users\Adam\AppData\Local\Temp\RoslynTests\5573f157-c12b-42e3-b8
6c-ffe198fbfd43
30/05/2015 22:23 204,544 System.Collections.Immutable.dll
1 File(s) 204,544 bytes
Directory of c:\Users\Adam\Source\Repos\roslyn4\Binaries\Debug
01/07/2015 01:18 204,544 System.Collections.Immutable.dll
1 File(s) 204,544 bytes
Directory of c:\Users\Adam\Source\Repos\roslyn4\packages\FakeSign.0.9.2\tools
01/07/2015 01:18 230,624 System.Collections.Immutable.dll
1 File(s) 230,624 bytes
Directory of c:\Users\Adam\Source\Repos\roslyn4\packages\Microsoft.Net.Compiler
s.1.0.0-rc3-20150616-02\tools
01/07/2015 01:18 204,544 System.Collections.Immutable.dll
1 File(s) 204,544 bytes
Directory of c:\Users\Adam\Source\Repos\roslyn4\packages\System.Collections.Imm
utable.1.1.36\lib\portable-net45+win8+wp8+wpa81
02/08/2014 05:20 211,192 System.Collections.Immutable.dll
1 File(s) 211,192 bytes
Directory of c:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Collections.Immu
table\v4.0_1.1.33.0__b03f5f7f11d50a3a
30/04/2015 04:04 230,624 System.Collections.Immutable.dll
1 File(s) 230,624 bytes
Total Files Listed:
203 File(s) 43,039,952 bytes
0 Dir(s) 91,726,393,344 bytes free
c:\>
The System.Collections.Immutable.dll in c:\Users\Adam\Source\Repos\roslyn4\packages\System.Collections.Immutable.1.1.36\lib\portable-net45+win8+wp8+wpa81 is odd, I can't match it with one of the versions lying in the /packages I have here, but 1.1.36 looks more like what you have in c:\Users\Adam\Source\Repos\roslyn4\packages\Microsoft.Net.Compiler s.1.0.0-rc3-20150616-02\tools: 204,544->1.1.36 233,688->1.1.34rc 230,624->1.1.33beta maybe simply replace it manually in that first directory for a quick try?
@codespare The "strange" one could be the one pulled from the nightly build here
There is no System.Collections.Immutable I can see there right now, it could have been removed. In any case, v1.1.36 should be the same irrespective of the source.
DiaSymReader is another example: Microsoft.DiaSymReader v1.0.1-rc1 5 months ago on myget while current as of today is v1.0.5. A little cleanup to do in september after shipping and some rest I guess.
System.Collections.Immutable varying DLL versions is what seems to be the error/warnings when trying to build the Visual Basic samples.
@AdamSpeight2008, (in the spirit of showing mercy on scrollbar) just a friendly tip; you can post GitHub's gist link for verbose logs etc. https://gist.github.com/ (also available in navbar on top of this page) instead of stuffing the whole blob in issue post. :wink:
@AdamSpeight2008 What happens when you run .\cibuild
from a recent master branch?
I also have trouble building the project.
When in Visual Studio Community 2015, I have now 4 errors (number seems to vary due to factors I don't understand, it's been down from 25 to 800 and up to 2000+).
@gafter The computer is was using dead. (I accidently damaged the cpu and motherboard). I don't have the resources yet to replace it or them yet. The netbook I'm using for replies is just about powerful enough to run a web browser alongside notepad or Linqpad.
@Pvlerick cibuild is failing due to fakesign issue
C:\Users\Phil\Documents\GitHub\Roslyn\build\Targets\VSL.Imports.targets(280,5): error MSB3073: The command "C:\Users\Phil\.nuget\packages\FakeSign\0.9.2\tools\FakeSign.exe "C:\Users\Phil\Documents\GitHub\Roslyn\Binaries\Obj\BasicVisualStudio\Debug\Microsoft.VisualStudio.LanguageServices.VisualBasic.dll"" exited with code 1. [C:\Users\Phil\Documents\GitHub\Roslyn\src\VisualStudio\VisualBasic\Impl\prrj3eq4.tmp_proj]
If you run that command from the commandline what is the output?
Would Anti-Virus software cause this?
@jmarolf I get the following
C:\Users\Phil\Documents\GitHub\Roslyn>C:\Users\Phil\.nuget\packages\FakeSign\0.9.2\tools\FakeSign.exe "C:\Users\Phil\Documents\GitHub\Roslyn\Binaries\Obj\BasicVisualStudio\Debug\Microsoft.VisualStudio.LanguageServices.VisualBasic.dll"
PE file is already strong-name signed.
Use the -f (force) option to sign C:\Users\Phil\Documents\GitHub\Roslyn\Binaries\Obj\BasicVisualStudio\Debug\Microsoft.VisualStudio.LanguageServices.VisualBasic.dll anyway.
This issue is quite stale, and the computer on which the problem occurred apparently is no longer in working condition, so I'm closing this.