corert icon indicating copy to clipboard operation
corert copied to clipboard

More Visual Studio issues

Open manu-st opened this issue 10 years ago • 10 comments

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

manu-st avatar Feb 08 '16 06:02 manu-st

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?

jkotas avatar Feb 08 '16 06:02 jkotas

cc @schellap

jkotas avatar Feb 08 '16 06:02 jkotas

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.

schellap avatar Feb 08 '16 07:02 schellap

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.

manu-st avatar Feb 08 '16 07:02 manu-st

Can you share the branch name on your fork and add me as collaborator so I can add your fork as my remote?

schellap avatar Feb 08 '16 08:02 schellap

@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-st avatar Feb 08 '16 23:02 manu-st

@manu-silicon Do you still see these problems on live master now that we have switched back to current CLI?

jkotas avatar Feb 10 '16 20:02 jkotas

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

manu-st avatar Feb 12 '16 00:02 manu-st

I assume that this can be closed now.

jkotas avatar Feb 13 '16 21:02 jkotas

Yes. Thanks.

manu-st avatar Feb 14 '16 23:02 manu-st