Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialVitor Leonardo Gaya de Mira
Courses Plus Student 6,408 PointsI think I completed the tasks, but still the unit tests do not run. "Could not find dependent assembly..."
Output Window [1/23/2018 1:27:58 PM Informational] ------ Load Playlist started ------ [1/23/2018 1:27:58 PM Informational] ========== Load Playlist finished (0:00:00.0069989) ========== [1/23/2018 1:27:58 PM Informational] ------ Discover test started ------ [1/23/2018 1:28:00 PM Warning] [xUnit.net 00:00:00.0267158] Skipping: IssueTrackerShared (could not find dependent assembly 'Microsoft.Extensions.DependencyModel, Version=1.1.0') [1/23/2018 1:28:00 PM Warning] [xUnit.net 00:00:00.0346071] Skipping: IssueTrackerTests (could not find dependent assembly 'Microsoft.Extensions.DependencyModel, Version=1.1.0') [1/23/2018 1:28:00 PM Warning] [xUnit.net 00:00:00.0365440] Skipping: IssueTracker (could not find dependent assembly 'Microsoft.Extensions.DependencyModel, Version=1.1.0') [1/23/2018 1:28:01 PM Informational] [xUnit.net 00:00:00.7005554] Discovering: IssueTrackerTests [1/23/2018 1:28:01 PM Informational] [xUnit.net 00:00:00.9963855] Discovered: IssueTrackerTests [1/23/2018 1:28:01 PM Informational] ========== Discover test finished: 5 found (0:00:03.066023) ========== [1/23/2018 1:28:17 PM Informational] ------ Run test started ------ [1/23/2018 1:28:17 PM Warning] Multiple test adapters with the same uri 'executor://xunit/VsTestRunner2' were found. Ignoring adapter 'Xunit.Runner.VisualStudio.TestAdapter.VsTestRunner'. Please uninstall the conflicting adapter(s) to avoid this warning. [1/23/2018 1:28:18 PM Warning] [xUnit.net 00:00:00.0313861] Skipping: IssueTrackerTests (could not find dependent assembly 'Microsoft.Extensions.DependencyModel, Version=1.1.0') [1/23/2018 1:28:18 PM Warning] No test is available in C:\Users\Administrator\Desktop\Vitor\lcc-dotnet-aspnet-web-api-s2cc1\src\IssueTrackerTests\bin\Debug\IssueTrackerTests.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again. [1/23/2018 1:28:18 PM Informational] ========== Run test finished: 0 run (0:00:01.1380526) ==========
Vitor Leonardo Gaya de Mira
Courses Plus Student 6,408 PointsYes, only the unit tests are not running.
James Churchill
Treehouse TeacherWhat extensions do you have installed?
Vitor Leonardo Gaya de Mira
Courses Plus Student 6,408 PointsUnit test project <?xml version="1.0" encoding="utf-8"?> <packages> <package id="Castle.Core" version="4.1.1" targetFramework="net461" /> <package id="FluentAssertions" version="4.19.4" targetFramework="net461" /> <package id="Microsoft.AspNet.WebApi" version="5.2.3" targetFramework="net461" /> <package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net461" /> <package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net461" /> <package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.3" targetFramework="net461" /> <package id="Microsoft.Net.Compilers" version="2.3.2" targetFramework="net461" developmentDependency="true" /> <package id="Moq" version="4.7.127" targetFramework="net461" /> <package id="MSBuildTasks" version="1.5.0.235" targetFramework="net461" developmentDependency="true" /> <package id="Newtonsoft.Json" version="6.0.4" targetFramework="net461" /> <package id="SimpleInjector" version="4.0.11" targetFramework="net461" /> <package id="System.ValueTuple" version="4.4.0" targetFramework="net461" /> <package id="xunit" version="2.2.0" targetFramework="net461" /> <package id="xunit.abstractions" version="2.0.1" targetFramework="net461" /> <package id="xunit.assert" version="2.2.0" targetFramework="net461" /> <package id="xunit.core" version="2.2.0" targetFramework="net461" /> <package id="xunit.extensibility.core" version="2.2.0" targetFramework="net461" /> <package id="xunit.extensibility.execution" version="2.2.0" targetFramework="net461" /> <package id="xunit.runner.console" version="2.2.0" targetFramework="net461" developmentDependency="true" /> <package id="xunit.runner.msbuild" version="2.2.0" targetFramework="net461" developmentDependency="true" /> <package id="xunit.runner.visualstudio" version="2.2.0" targetFramework="net461" developmentDependency="true" /> </packages>
Vitor Leonardo Gaya de Mira
Courses Plus Student 6,408 PointsMicrosoft Visual Studio Community 2017 Version 15.5.3 VisualStudio.15.Release/15.5.3+27130.2020 Microsoft .NET Framework Version 4.7.02558
Installed Version: Community
Visual Basic 2017 00369-60000-00001-AA410 Microsoft Visual Basic 2017
Visual C# 2017 00369-60000-00001-AA410 Microsoft Visual C# 2017
Visual F# 4.1 00369-60000-00001-AA410 Microsoft Visual F# 4.1
Application Insights Tools for Visual Studio Package 8.10.01106.1 Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2017 15.0.31127.0 ASP.NET and Web Tools 2017
ASP.NET Core Razor Language Services 1.0 Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2012 4.0.20601.0 For additional information, visit https://www.asp.net/
ASP.NET Web Frameworks and Tools 2017 5.2.51007.0 For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 15.0.31106.0 Azure App Service Tools v3.0.0
Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
JavaScript Language Service 2.0 JavaScript Language Service
Microsoft Azure Tools 2.9 Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.51120.3
Microsoft Continuous Delivery Tools for Visual Studio 0.3 Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.
Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual Studio Tools for Containers 1.1 Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
NuGet Package Manager 4.5.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
SQL Server Data Tools 15.1.61710.120 Microsoft SQL Server Data Tools
TypeScript Tools 15.5.11025.1 TypeScript Tools for Microsoft Visual Studio
Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
James Churchill
Treehouse TeacherLooking more closely at the output warnings, it looks like there are two versions of the Xunit VS test runner installed. Is there a chance that one of the other projects in the solution has the Xunit VS test runner NuGet package installed?
Here's an issue on GitHub that provides some additional information about this issue: https://github.com/xunit/xunit/issues/1542
James Churchill
Treehouse TeacherHave you had any luck on resolving this issue?
Vitor Leonardo Gaya de Mira
Courses Plus Student 6,408 PointsI did not resolve the issue, but after uploading the projects, they passed the tests and I managed to complete the course without any issue.
James Churchill
Treehouse TeacherSorry to hear that the issue is still present, but I'm glad that you were able to complete the course regardless.
Thanks ~James
Vitor Leonardo Gaya de Mira
Courses Plus Student 6,408 PointsThank you, James, for your support.
James Churchill
Treehouse TeacherYou're welcome!
James Churchill
Treehouse TeacherJames Churchill
Treehouse TeacherDoes the solution successfully build?