Skip to content

Commit e159845

Browse files
committed
make it clearer which C# compiler version to use
1 parent 9071789 commit e159845

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

plugins/dotnet/ReadMe.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ Microsoft C# Compiler and .NET SDK
1818

1919
- Best option is to install Visual Studio C# Express 2010 or newer.
2020

21-
- NOTE: Make sure you have csc.exe on PATH.
21+
- NOTE: Make sure you have csc.exe version 3.5 on PATH.
22+
Something like
23+
c:\Windows\Microsoft.NET\Framework\v3.5\csc.exe
2224

2325
Microsoft HTML Help 1 Compiler and Sandcastle Help File Builder
2426
---------------------------------------------------------------

plugins/dotnet/mvnassembly.cmd

+1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88

99
@echo off
1010

11+
set PATH=c:\Windows\Microsoft.NET\Framework\v3.5\;%PATH%
1112
mvn clean install ant:ant -DskipTests=false %*
1213
rem mvn eclipse:eclipse

plugins/dotnet/robocode.dotnet.ntests/src/AssemblyLoadTest.cs

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
* which accompanies this distribution, and is available at
66
* http://robocode.sourceforge.net/license/epl-v10.html
77
*/
8+
9+
using System;
10+
using System.Runtime.InteropServices;
811
using net.sf.robocode.dotnet.host.seed;
912
using net.sf.robocode.dotnet.repository.root;
1013
using net.sf.robocode.repository;
@@ -20,6 +23,10 @@ public class AssemblyLoadTest : TestBase
2023
[Test]
2124
public void testDomain()
2225
{
26+
Console.WriteLine("clr.arch :" + ((IntPtr.Size == 8) ? "64bit" : "32bit"));
27+
Console.WriteLine("clr.version :" + RuntimeEnvironment.GetSystemVersion());
28+
Console.Out.Flush();
29+
2330
string[] strings = DllRootHelper.findItems(@"file:/" + typeof(MyFirstRobot).Assembly.Location);
2431
Assert.GreaterOrEqual(strings.Length, 5);
2532
}

0 commit comments

Comments
 (0)