Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.ArgumentException : Unknown framework version 7.0 #1155

Closed
Sumanaoka opened this issue Mar 14, 2024 · 4 comments
Closed

System.ArgumentException : Unknown framework version 7.0 #1155

Sumanaoka opened this issue Mar 14, 2024 · 4 comments

Comments

@Sumanaoka
Copy link

I have this issue when trying to run a pipeline in Azure DevOps (which I never encounter since my last successful Pipeline run Aug 2023) and take note in my local the project is working fine.
I saw this old post (#987) and at first I tried updating the NUnit3TestAdapter to latest version as mentioned but no luck. I already tried different versions even the latest one but still the same issue. I don't know what to do now as I am working on this for the past 2 weeks.

image

In my local I am using the following:
Visual Studio 2019
Target Framework 4.6.1 and tried updating to 4.7 and 4.8 still the same
NUnit version I already tried from 3.9 up to latest versions still the same
NUnit3TestAdapter version I already tried from 3.10 up to latest version still the same

@OsirisTerje
Copy link
Member

Sorry for seeing this late.

With the latest 4.5 version, you should not see this.

Can you show your csproj file and pipeline yaml file please.

@OsirisTerje
Copy link
Member

@Sumanaoka I am sorry, but too little information to say anything. Suggest you create a small repro project and upload that. You can then use the same way you use in the real project without exposing anything.

In the yaml, the compile and test step seems to use a custom powershell script build.ps1. The content of that could reveal something.

In the csproj file it depends how complicated that has been made. But, just seeing what packagereferences it has would be a help.

The best however, is a repro project.

@Sumanaoka
Copy link
Author

Tried running a test on cmd on my local and here's the result.

image

@OsirisTerje
Copy link
Member

OsirisTerje commented May 7, 2024

Ok, so it works then ?

(You do have net 7 installed on your build server?)

@nunit nunit locked and limited conversation to collaborators May 8, 2024
@OsirisTerje OsirisTerje converted this issue into discussion #1173 May 8, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants