1.Nuget package restore failed for project tests\System.Data/Sqlclient.Manualtesting.Tests for 'test-runtime' 2.Unable to resolve test-runtime for .NETCoreApp, Version=v1.0
I am trying to build sqlclient (System.Data.SqlClient) from the source available from github. But i get these issues when i trying to build it. I tried uninstalled and re-installed nuget packet manager, still it doesn't solve the issue. What else i am missing ?
How are you trying to build it? from Visual Studio or from build.cmd or something else?
I am trying to build it from visual studio 2015
Here is how my error list looks like
Error NuGet Package restore failed for project tests\System.Data.SqlClient.ManualTesting.Tests for 'test-runtime '. 0
Error Unable to resolve test-runtime for .NETCoreApp,Version=v1.0. 0
Error Unable to resolve test-runtime for .NETCoreApp,Version=v1.0. 0
Error NuGet Package restore failed for project tests\System.Data.SqlClient.Tests for 'test-runtime '. 0
@sravan1022 some questions for you:
- Did you run init-tools.cmd from the repo root before trying to open the project in VS?
- Which version of Visual Studio are you running? VS 2015 Update 1 or higher?
- I can see those errors on VS myself as well, but when I look in the Output window for Build, I see that the build actually succeeded despite of those "errors". Do you see this as well?
I have a repro for this, and it is not corefx related. The Issue seems to be nugget extension in VS related. You can still build in VS and even though you see those errors in the error list, you'll see how the build output says that the build succeeded. I suggest we should open an issue in nuget's repo instead so that they can triage it.
Closing this issue since I have copied the issue to NuGet/Home repo. @sravan1022 feel free to reopen or add more info to this issue if needed.