Bugs item #3095656, was opened at 2010-10-26 10:19
Message generated for change (Tracker Item Submitted) made by panamared
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3095656&group_id=31650
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Liam Kenny (panamared)
Assigned to: Nobody/Anonymous (nobody)
Summary: Issue Specifying Compiling Framework
Initial Comment:
We encountered this issue when trying to execute code within the script tag.
nant.settings.currentframework was set to net-3.5 in both the build file and
the Nant.exe.config file, but it was still compiled in the 2.0 Framework.
According to Gert: "We use CodeDOM to compile the script, and hence it uses the
C# compiler corresponding to the CLR on which NAnt is running.
The current target framework – as specified using the
nant.settings.currentframework – does not affect this."
My sample build-file is below:
<?xml version="1.0"?>
<project name="Test" default="run" basedir=".">
<description></description>
<property name="debug" value="true"/>
<property name="nant.settings.currentframework" value="net-3.5" />
<target name="run">
<script language="c#">
<code>
<![CDATA[
public static void ScriptMain(Project project)
{
string str = "Hello World from Nant C#; Version
";
string ver =
System.Environment.Version.ToString();
project.Log(Level.Info, str.ToString() + ver);
}
]]>
</code>
</script>
</target>
</project>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3095656&group_id=31650
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers