More Visual Studio issues
Whenever I compile the ILCompiler solution, I'm getting the following errors in the Error List window. Although they are present they do not cause the build to fail:
Error Microsoft.DiaSymReader 1.0.6 is not compatible with DNXCore,Version=v5.0. 0
Error Some packages are not compatible with DNXCore,Version=v5.0. 0
Error System.IO.MemoryMappedFiles 4.0.0-rc2-23616 is not compatible with .NETPlatform,Version=v5.0. 0
Error Some packages are not compatible with .NETPlatform,Version=v5.0. 0
Error Microsoft.DiaSymReader 1.0.6 is not compatible with DNXCore,Version=v5.0. 0
Error Some packages are not compatible with DNXCore,Version=v5.0. 0
Error System.IO.MemoryMappedFiles 4.0.0-rc2-23616 is not compatible with .NETPlatform,Version=v5.0. 0
Error System.Console 4.0.0-rc2-23616 is not compatible with .NETPlatform,Version=v5.0. 0
Error System.Runtime.InteropServices.RuntimeInformation 4.0.0-rc2-23616 is not compatible with .NETPlatform,Version=v5.0. 0
Error Some packages are not compatible with .NETPlatform,Version=v5.0. 0
Looks like it is an issue while restoring packages. The MSBuild output is more precise about the error:
Restoring packages for C:\work\Microsoft\corert\src\ILCompiler.Compiler\src\project.json...
Microsoft.DiaSymReader 1.0.6 is not compatible with DNXCore,Version=v5.0.
Some packages are not compatible with DNXCore,Version=v5.0.
System.IO.MemoryMappedFiles 4.0.0-rc2-23616 is not compatible with .NETPlatform,Version=v5.0.
Some packages are not compatible with .NETPlatform,Version=v5.0.
Package restore failed for 'ILCompiler.Compiler'.
...
Restoring packages for C:\work\Microsoft\corert\src\ILCompiler\src\project.json...
Microsoft.DiaSymReader 1.0.6 is not compatible with DNXCore,Version=v5.0.
Some packages are not compatible with DNXCore,Version=v5.0.
System.IO.MemoryMappedFiles 4.0.0-rc2-23616 is not compatible with .NETPlatform,Version=v5.0.
System.Console 4.0.0-rc2-23616 is not compatible with .NETPlatform,Version=v5.0.
System.Runtime.InteropServices.RuntimeInformation 4.0.0-rc2-23616 is not compatible with .NETPlatform,Version=v5.0.
Some packages are not compatible with .NETPlatform,Version=v5.0.
Package restore failed for 'ILCompiler'.
It is likely caused by some left over stale nuget bit. Could you please try cleaning untracked files (e.g. git clean -x -d -f), followed by build.cmd and check whether the problem goes away?
cc @schellap
That should work.
rmdir bin\\tools\\cli would work as well.
The CLI is cached, so you are using a newer CLI. Got reverted to 1.0.0.000973.
I thought I had done this this morning, but just to be sure I redid git clean -xfd to delete everything. It is still causing those errors.
Can you share the branch name on your fork and add me as collaborator so I can add your fork as my remote?
@schellap The repo and branch is at this url: https://github.com/manu-silicon/corert/tree/cpp
However I don't think my fork as any difference in the way projects are built.
@manu-silicon Do you still see these problems on live master now that we have switched back to current CLI?
I think I still had this problem after the update. Today I tried again, but this time I deleted the .nuget folder in my home and recompiled everything. The errors are gone. So I'm not so sure if this is the .nuget folder or the current CLI that actually solved it.
Regardless, there are 2 warnings when you compile in VS:
Restoring packages for C:\work\Microsoft\corert\src\ILCompiler\desktop\project.json...
Dependency specified was System.Collections.Immutable (≥ 1.1.37) but ended up with System.Collections.Immutable 1.2.0-rc2-23704.
Dependency specified was System.Reflection.Metadata (≥ 1.1.0) but ended up with System.Reflection.Metadata 1.2.0-rc2-23704.
I've fixed them in the project.json file in the PR #855
I assume that this can be closed now.
Yes. Thanks.