Can't compile newest repo

zerodowned

Moderator
ServUO Developer
Jun 28, 2014
1,770
221
I've done this a million times in the past but I came across this issue I can't get around with the newest repo


C:\WINDOWS\system32>C:\Program Files\UO SERVER\TEST SHARD\ServUO-master\bin\roslyn\csc.exe /r:"C:\Program Files\UO SERVER\TEST SHARD\ServUO-master\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll" /target:library /out:"C:\Program Files\UO SERVER\TEST SHARD\ServUO-master\Ultima.dll" /recurse:"C:\Program Files\UO SERVER\TEST SHARD\ServUO-master\Ultima\*.cs" /d:ServUO /d:NEWTIMERS /nowarn:0618 /nologo /unsafe /optimize
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
And then it deletes my Ultima.dll file every time.
 

zerodowned

Moderator
ServUO Developer
Jun 28, 2014
1,770
221
lol, guess I should specify that I'm trying to do the initial compiling
 

Zavreyon

Gold Donator
Apr 5, 2015
82
26
31
try it in a path that does not contain spaces

this is an uneducated guess, but has happened to me on linux and

'C:\Program' is not recognized as an internal or external command.

"C:\Program Files\" is in your path and has a space. It's almost like its not seeing anything past it.
 
Last edited:
  • Like
Reactions: zerodowned

dmurphy

Admin
ServUO Developer
Feb 10, 2014
1,017
233
30
Yeah for now the ServUO path cannot contain spaces if you want to use the compiler batch scripts. Alternatively it can be compiled in visual studio if you want to keep the folder structure.
 
  • Like
Reactions: zerodowned

zerodowned

Moderator
ServUO Developer
Jun 28, 2014
1,770
221
try it in a path that does not contain spaces

this is an uneducated guess, but has happened to me on linux and

'C:\Program' is not recognized as an internal or external command.

"C:\Program Files\" is in your path and has a space. It's almost like its not seeing anything past it.
Thank you for point that out, was so use to it being able to read spaces that I didn't think twice about it


Yeah for now the ServUO path cannot contain spaces if you want to use the compiler batch scripts. Alternatively it can be compiled in visual studio if you want to keep the folder structure.
Why can't it read spaces now when it use to?
It's not an issue for me, I'm just curious.