Unable to see Intellitest dropdown in Visual Studio 2022

Vic Jay 1 Reputation point
2022-11-29T02:51:21.55+00:00

TL&DR
Running Visual Studio Enterprise 2022 for Windows 10 Home [See ScreenShot]
Created Library for Dotnet 6 (ClassLibrary2)
Created Library Test for Dotnet 6 (ClassLibrary2Tests)
No Intellitest Drop Down

Dear Internet,

I am so frustrated. I have spent literally 3 days working on getting the IntelliTest Dropdown to Show in Visual Studio Enterprise 2022. To make any potential help more useful, I have uploaded screenshots to prove I am not crazy and being honest.

  1. VisualStudioVersion shows the current Visual Studio being Run
  2. classLibraryPicture shows the overall directory structure of the Class being Tested and the Test
  3. Details ScreenShot of No Drop Down when Trying to Add Unit Tests

I don't understand what I am doing wrong?

<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>    

</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
<PackageReference Include="coverlet.collector" Version="3.1.2" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ClassLibrary2\ClassLibrary2.csproj" />
</ItemGroup>

<ItemGroup>
<Reference Include="Microsoft.Pex.Framework">
<HintPath>............\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Intellitest\Pex.x86\net6.0\Microsoft.Pex.Framework.dll</HintPath>
</Reference>
</ItemGroup>

</Project>

265012-visualstudioversion.png

For Debugging Pros

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,650 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
329 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,546 Reputation points Microsoft Vendor
    2022-11-29T06:44:32.123+00:00

    Hello @Vic Jay ,

    Welcome to Microsoft Q&A forum.

    I notice that you are using .NET 6.0. Actually, IntelliTest supports only C# code that targets the .NET Framework, not .NET Core/.NET. Please kindly check this document: Availability and extensions for details.

    So, currently IntelliTest doesn’t support project which targets .NET, and you will not see this option, I’m afraid. But good news is it’s on roadmap, see this ticket: Add IntelliTest support for .NET Core/Standard.

    Feel free to contact us.

    Best Regards,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments