Skip to content
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

Update Rule “the-right-version-and-config-for-nunit/rule” #7191

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions rules/the-right-version-and-config-for-nunit/rule.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
---
type: rule
archivedreason: This applies to .Net Framework 1 and 2
title: Do you know the right version and config for nUnit?
guid: 3c39ccb8-123f-461c-9023-e08ca4e27e29
uri: the-right-version-and-config-for-nunit
created: 2020-03-12T23:01:15.0000000Z
authors:
- title: Adam Cogan
url: https://ssw.com.au/people/adam-cogan
- title: Adam Cogan
url: https://ssw.com.au/people/adam-cogan
related: []
redirects:
- do-you-know-the-right-version-and-config-for-nunit

- do-you-know-the-right-version-and-config-for-nunit
created: 2020-03-12T23:01:15.000Z
archivedreason: This applies to .Net Framework 1 and 2
guid: 3c39ccb8-123f-461c-9023-e08ca4e27e29
---

There are multiple versions of NUnit and .NET Framework, the following will explain how to use them correctly.

<!--endintro-->

* if your application was built with .NET Framework 1.1, NUnit 2.2.0 which was built with .NET Framework 1.1 is the best choice if you compact it into the installation package, You then don't need any additional config - it will auto use .NET Framework 1.1 to reflect your assembly;
* If there is only .NET Framework 2.0 on the client-side, how to make it works?
* if your application was built with .NET Framework 1.1, NUnit 2.2.0 which was built with .NET Framework 1.1 is the best choice if you compact it into the installation package, You then don't need any additional config - it will auto use .NET Framework 1.1 to reflect your assembly;
* If there is only .NET Framework 2.0 on the client-side, how to make it works?
Just add the  **yellow**  into nunit-gui.exe.config (it is under the same folder as nunit-gui.exe), which will tell NUnit to reflect your assembly with .NET Framework 2.0;



```
```xml
...
<startup>
<supportedRuntime version="v2.0.50727" />
Expand All @@ -36,8 +34,8 @@ Just add the  **yellow**  into nunit-gui.exe.config (it is under the same fold
```


* if your application was built with .NET Framework 2.0, then you may get choices:
* NUnit 2.2.7 or higher (built with .NET framework 2.0) (recommended)
* if your application was built with .NET Framework 2.0, then you may get choices:
* NUnit 2.2.7 or higher (built with .NET framework 2.0) (recommended)
Then you don't need any extra configuration for NUnit, just follow the default;
* NUnit 2.2.0 or lower (built with .NET Framework 1.1)
Then you need to add the yellow statement (see above in this section);
Loading