Skip to content

Testing a .NET 7 WASM application #1029

Answered by linkdotnet
PMJMendes asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @PMJMendes ,

bUnit targets multiple frameworks like net6.0 and net7.0 so you can and should target the version your production code is running. So in your case both projects should target net7.0.

To help you further: Can you provide both csproj files? Also if you call dotnet test or dotnet build in your root directory, does it compile cleanly?

Replies: 1 comment 12 replies

Comment options

linkdotnet
Mar 17, 2023
Maintainer Sponsor

You must be logged in to vote
12 replies
@linkdotnet
Comment options

linkdotnet Mar 17, 2023
Maintainer Sponsor

@PMJMendes
Comment options

@linkdotnet
Comment options

linkdotnet Mar 17, 2023
Maintainer Sponsor

@PMJMendes
Comment options

@linkdotnet
Comment options

linkdotnet Mar 17, 2023
Maintainer Sponsor

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