richardschneider / net-ipfs-core

The core objects and interfaces of the interplanetary file system (IPFS)
https://richardschneider.github.io/net-ipfs-core/
MIT License
102 stars 58 forks source link

Cannot discover unit tests #83

Closed richardschneider closed 5 years ago

richardschneider commented 5 years ago

I'm using VS 2017 and with the latest pull from master I can no longer run the unit tests. VS cannot discover any tests because it cannot find System,RunTime.

[14/06/2019 2:16:38 PM Informational] ------ Discover test started ------
[14/06/2019 2:16:41 PM Warning] [MSTest][Discovery][C:\Users\Owner\Documents\GitHub\net-ipfs-core\test\bin\Debug\net45\IpfsCoreTests.dll] 
Failed to discover tests from assembly C:\Users\Owner\Documents\GitHub\net-ipfs-core\test\bin\Debug\net45\IpfsCoreTests.dll. 
Reason:Could not load file or assembly 'System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
[14/06/2019 2:16:41 PM Warning] No test is available in C:\Users\Owner\Documents\GitHub\net-ipfs-core\src\bin\Debug\netstandard14\Ipfs.Core.dll C:\Users\Owner\Documents\GitHub\net-ipfs-core\test\bin\Debug\net45\IpfsCoreTests.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.

cc: @hanabi1224

richardschneider commented 5 years ago

I'm installing the latest version of VS 2017. Hopefully it will resolve it.

richardschneider commented 5 years ago

The CI is no longer able to build the documentation

[19-06-14 02:00:16.337]Warning:[MetadataCommand.ExtractMetadata]Fail to find MSBuild >= 16.0 on machine. Please install Visual Studio 2019 with MSBuild >= 16.0: https://visualstudio.microsoft.com/vs/
[19-06-14 02:00:18.201]Warning:[MetadataCommand.ExtractMetadata](C:/projects/net-ipfs-core/src/IpfsCore.csproj)Workspace failed with: [Failure] Msbuild failed when processing the file 'C:\projects\net-ipfs-core\src\IpfsCore.csproj' with message: The SDK 'Microsoft.NET.Sdk' specified could not be found.  C:\projects\net-ipfs-core\src\IpfsCore.csproj
[19-06-14 02:00:18.328]Warning:[MetadataCommand.ExtractMetadata]Project 'C:\projects\net-ipfs-core\src\IpfsCore.csproj' does not contain any documents.

@hanabi1224 It looks like your previous commit is forcing VS 2019 to be used!

richardschneider commented 5 years ago

@hanabi1224 If I revert you last two commits it is working. I'll incrementally add your changes to hopefully find the issue.

hanabi1224 commented 5 years ago

@richardschneider sry about that. I dont have vs2017 right now, bit it must be Microsoft.NET.Test.Sdk Try use 15.x it should fix the problem

richardschneider commented 5 years ago

It looks like two issues are present

So, I'll go ahead and create a branch and see what happens. Hopefully I will not revert your great changes.

richardschneider commented 5 years ago

Fixed via #85