Skip to content

Cannot test WPF library using net9.0-windows target framework #4107

Answered by nohwnd
SetTrend asked this question in Q&A
Discussion options

You must be logged in to vote

Yes this is a problem with the SDK style project, you cannot update via the nuget manager. On the top of your project it says:

<Project Sdk="MSTest.Sdk/3.6.1">

Change the version there to 3.6.3. And also delete the explicit references to packages.

Or if you don't wish to use the MSTest SDK style project, revert the top line to say

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

and add this to the property group:

    <EnableMSTestRunner>true</EnableMSTestRunner>
    <OutputType>Exe</OutputType>

This should allow you to keep your project as is, it looks like it already has all the other needed props and items.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@nohwnd
Comment options

Answer selected by SetTrend
@Evangelink
Comment options

@SetTrend
Comment options

@Evangelink
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants