nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #01702
Re: [Bug 766749] [NEW] net-2.0\nunit-console-x86.exe.config should have a <startup /> element and also enable loadFromRemoteSources
A few comments and a rant here. I'll look at the details in more depth
for NUnit 2.6.
<rant>
This has not been "reported" in two other places. Folks who discuss
problems they
perceive with NUnit in places like stackoverflow are talking among
themselves. They
are, of course, free to do that but should not expect me or other
NUnit developers
to know anything about what they are discussing. We have a discussion list for
NUnit, nunit-discuss on google. It is open to everyone and is the
primary place for
getting support as indicated on the web site. It's the only place where you're
actually communicating with the developers of NUnit.
</rant>
Of course, your bug is reported in the right place. I'll make a few
comments now,
which are based on a quick reading. I haven't yet checked the outside
threads but
I will before triaging the bug.
1. We removed all <supportedRuntime> elements from our config files a
while back.
The configuration you suggest would break NUnit for folks who don't have .NET
4.0. Any config we supplied would list runtimes in a particular order
and it might
not be the order that people prefer.
2. Besides, NUnit does not care whether you run it under a particular
runtime. It
creates a process as needed to run the tests under the runtime you
desire. If this
feature is not working, we would prefer to fix it rather than changing
the config
file to run NUnit under 4.0. However, running under 4.0 is a good workaround
for folks who only have 4.0 or who don't use other runtimes for development
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/766749
Title:
net-2.0\nunit-console-x86.exe.config should have a <startup /> element
and also enable loadFromRemoteSources
Status in NUnit V2 Test Framework:
New
Bug description:
Hi.
Thank you for NUnit.
I am currently using NUnit 2.5.9.10348, but this still seems to be an
issue looking at the latest source in the trunk.
The issue has also been reported in at least two other places:
http://stackoverflow.com/questions/2635794/nunit-fail-with-system-argumentexception-the-net-4-0-framework-is-not-available
http://stackoverflow.com/questions/930438/nunit-isnt-running-visual-studio-2010-code
Basically, net-2.0\nunit-console-x86.exe.config should have a <startup
/> element as follows:
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />
</startup>
...
</configuration>
In this way, net-2.0\nunit-console-x86.exe will be able to load .net 4
and mixed-mode assemblies.
Also net-2.0\nunit-console-x86.exe.config should enable
loadFromRemoteSources as follows:
<configuration>
<runtime>
<loadFromRemoteSources enabled="true" />
..
</runtime>
</configuration>
In this way, net-2.0\nunit-console-x86.exe can load dlls (in full
trust mode) that have been copied from the network for example
(partial trust).
Here is a thread that has better descriptions on the required changes:
http://stackoverflow.com/questions/3663227/fluentnhib-system-data-sqllite-vs2010
Thank you.
References