codeapp
codeapp copied to clipboard
[Features Request] C# multi-file explaining
I found that when I am running C# projects remotely, the remote device cannot explain the code because the code is not only in one file. I think the C# remote-running feature can work better if the App upload all the files in the folder to remote device, and then explain the "csproj" file with Mono Command "msbuild" instead of "mcs". (For more details, please see Chinese Version)
[Chinese Version] 我发现C#的远程运行机制似乎并不完善,因为在很多时候,C#的项目分为好几个cs文件,但是远程运行功能一次只能上传一个文件,所以编译时会出错。 如果参照下面的方法操作,C#远程编译功能也许会更加完善:(列出了两个解决方案,如果需要使用选一个即可) 1.让App默认上传此目录下的所有文件,并且在远程设备使用Mono编译时,使用“msbuild”编译目录下的“.csproj”文件(如果有),而不是使用就“mcs”命令编译单个cs文件。 2.将目录下的所有cs文件合并为一个cs文件。具体方法就是让App识别所有cs文件最前面用到的“using”命令,并且放在总cs文件的开头,再把所有cs文件的剩余部分逐一放置到总cs文件中。