kevingadd/JSIL — Issue #49: Cannot build my XNA 4.0 solution with current version of JSIL.
Author: spectrumbranch
Created: 2011-12-15 03:18:42+00:00
State: open

I hadn't had a problem in the past, but this evening I have been unable to build my XNA 4.0 game with JSIL after pulling the most recent version. (commit 09c3d0b5132dbbec377a830ee16e3f09da96cd2a) Note that I have not pulled for a couple of months, so I made sure to delete my JSIL working directory and clone anew.

I call JSILc from the cmd prompt as follows:
```
JSILc.exe C:\Users\Branch\mygame\mygame\mygame.sln
```

The console window shows the following information:
```
// Building '..\mygame\mygame\mygame.sln' ... done.
// Applied settings from 'defaults.jsilconfig'.
```

And that's all! It returns to the cmd prompt. No javascript files are created in any folder. I attempted to debug the issue, perhaps to figure things out and maybe help with the troubleshooting here.

at ```JSIL.Compiler.Program.Main() (filename Program.cs) line 242```, kvp does not have any values, so ```var filename``` contains nothing and therefore the foreach loop is skipped, Main is exited and so is the program.

The program seems to understand that the argument of ```C:\Users\Branch\mygame\mygame\mygame.sln``` is a solution file (which I am able to open in Visual Studios C# 2010 Express with no problem) and gives buildGroups a value (which looks like a default value) as follows:

(Copied from Locals tab in Visual Studios)
```buildGroups	Count = 1	System.Collections.Generic.List>>```
+	[0]	{[JSIL.Compiler.Configuration, System.String[]]}	System.Collections.Generic.KeyValuePair>

For completeness,

```-	arguments	{string[1]}	string[]
[0]	"C:\\Users\\Branch\\mygame\\mygame\\mygame.sln"	string

```

and

```

-	kvp	{[JSIL.Compiler.Configuration, System.String[]]}	System.Collections.Generic.KeyValuePair>
-	Value	{string[0]}	System.Collections.Generic.IEnumerable {string[]}
[string[]]	{string[0]}	string[]

```

I hope this is enough information, however if you require more, please let me know and I will be happy to provide as much as I can to get this working.

Thanks,
--spectrum