Open Dabbel opened 6 years ago
Could you provide one example csproj? for example, GSTouch.Android.csproj. looks like the restored packages are different between MacOS and windows
@zhili1208 only the csproj file, without any other files?
If you want to try to restore the packages yourself this will not work because we use a private nuget server with own nuget packages. But how could the restored packages be different as both calls has the same value for "-Source" and the "-NoCache" parameter?
@Dabbel Firstly I want to understand why package graph is different for the same csproj. If all referenced package are public, I can start from only csproj. Otherwise, I might also needs the project.asset.json file. Yes, the restored packages should be the same. But for example, I can find package "Microsoft.AspNet.Web.Optimization.de" are restored on mac, but can't find it in the windows log. so I'm trying to figure out why.
Here are already the two project.asset.json from the obj folder, for the csproj file im waiting for the permission NuGet.zip
And the csproj file GSTouch.Android.csproj.txt
Hope this will help
Could you find any project which referenced Microsoft.AspNet.Web.Optimization.de in your solution?
In the solution there is no project that has a direct reference on Microsoft.AspNet.Web.Optimization.de and none of our own NuGet Packages has a dependency on that package two.
I now have a second project with a similar problem, the restore fails on mac but works on windows.
This project is simpler and i could provide it to you, is there any way i can do this private?
Please send to my email, lzhi[at]microsoft.com
Have send you a mail with project and all nuget packages that we created ourselfs
Any updates on this?
@Dabbel can you please check the dotnet sdk and runtime on your windows vs mac? It looks like you've different dotnet sdk versions in different environment which is making it to resolve some of the package's version differently which is why it's throwing restore error in one case.
You can run dotnet --info
command to see the versions on both the machines or may be copy it here as well.
On the Mac the latest version of Visual Studio for Mac is installed
.NET-Befehlszeilentools (2.1.201)
Product Information:
Version: 2.1.201
Commit SHA-1 hash: 7932dc6179
Runtime Environment:
OS Name: Windows
OS Version: 10.0.17134
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.1.201\
Microsoft .NET Core Shared Framework Host
Version : 2.0.7
Build : 2d61d0b043915bc948ebf98836fefe9ba942be11
.NET Command Line Tools (2.1.4)
Product Information:
Version: 2.1.4
Commit SHA-1 hash: 5e8add2190
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.13
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /user/local/share/dotnet/sdk/2.1.4
Microsoft .NET Core Shared Framework Host
Version : 2.0.5
Build : 17373eb129b3b05aa18ece963f8795d65ef8ea54
Updated dotnet to version 2.1.201 on mac and still getting the same errors.
This bug is very critical for us because we can't build our software anymore
@zhili1208 @jainaashish ANY news on this would be good
@zhili1208 Have you looked at this yet?
Still no new news? In my opinion this is a crtitical bug and ne response for nearly 2 month
Details about Problem
NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe): NuGet.exe
NuGet version (x.x.x.xxx): 4.6.2.5055
OS version (i.e. win10 v1607 (14393.321)): MacOS: 10.12.6 Windows 10: v1803 (17134.48)
Verbose Logs
Restore_OSX.log Restore_Windows.log