Open jaredpar opened 9 years ago
I like this idea to make the error message more user friendly and helpful to determine runtimes to manage in a project.
On Nov 5, 2015, at 12:12, Jared Parsons notifications@github.com wrote:
Was trying to add System.Net.Sockets to my project today and ended up with the following errors:
System.Security.Cryptography.Encoding 4.0.0-beta-23428 provides a compile-time reference assembly for System.Security.Cryptography.Encoding on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64. System.Security.Cryptography.X509Certificates 4.0.0-beta-23428 provides a compile-time reference assembly for System.Security.Cryptography.X509Certificates on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64. Some packages are not compatible with DNXCore,Version=v5.0 (win7-x64). System.Net.NameResolution 4.0.0-beta-23428 provides a compile-time reference assembly for System.Net.NameResolution on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.14.04-x64. Some packages are not compatible with DNXCore,Version=v5.0 (ubuntu.14.04-x64). System.Net.NameResolution 4.0.0-beta-23428 provides a compile-time reference assembly for System.Net.NameResolution on DNXCore,Version=v5.0, but there is no run-time assembly compatible with osx.10.10-x64. Some packages are not compatible with DNXCore,Version=v5.0 (osx.10.10-x64). The message here is clear about the problem: the runtime I've chosen is incompatible with the package. However the error message doesn't help me resolve the issue because it doesn't tell me what runtimes are available for the given package.
It would be great if this error message told me what runtimes were an option here. In this particular case I was using too specific of a runtime specifier and I was easily able to fix it by picking a more general one. But to get this information I had to dig into the package runtime.json file in the .nuget\packages folder. Would be great to just have this on the command line.
— Reply to this email directly or view it on GitHub.
Was trying to add
System.Net.Sockets
to my project today and ended up with the following errors:The message here is clear about the problem: the runtime I've chosen is incompatible with the package. However the error message doesn't help me resolve the issue because it doesn't tell me what runtimes are available for the given package.
It would be great if this error message told me what runtimes were an option here. In this particular case I was using too specific of a runtime specifier and I was easily able to fix it by picking a more general one. But to get this information I had to dig into the package runtime.json file in the .nuget\packages folder. Would be great to just have this on the command line.