hxcs icon indicating copy to clipboard operation
hxcs copied to clipboard

A request stop all after writeProject()

Open xhfzcmt opened this issue 4 years ago • 3 comments

I hope modify csproj that created by "writeProject()". then call msbuild

CSharpCompiler::compile code may like

this.data = data;
preProcess();
if (!FileSystem.exists("bin"))
	FileSystem.createDirectory("bin");
findCompiler();
writeProject();

if(**manualCompile**) {
  return;
}

Whether to consider supporting?

xhfzcmt avatar Nov 10 '20 10:11 xhfzcmt

Did you try -D no-compilation and then work with generated cs code?

> haxe --help-defines
no-compilation            : Disable final compilation (for hl,cpp,java,cs)

kLabz avatar Nov 10 '20 11:11 kLabz

Did you try -D no-compilation and then work with generated cs code?

> haxe --help-defines
no-compilation            : Disable final compilation (for hl,cpp,java,cs)

tryed. :)

if use UnityEditor.dll compile fail . nothing will output (no .cs)

hxcs execute step

  1. haxe compile (result is hxcs_build.txt and .cs files) 2.parse hxcs_build.txt and build project.csproj file. 3.call native c# compiler with project.csproj now fail at first step.

xhfzcmt avatar Nov 10 '20 12:11 xhfzcmt

Did you try -D no-compilation and then work with generated cs code?

> haxe --help-defines
no-compilation            : Disable final compilation (for hl,cpp,java,cs)

Just saw us meet, you saw my other question about . Currently if haxe did not fix this problem before. I will try to add UnityEditor Reference after csproject is built. Although this will definitely solve the problem. But a lot of untyped needs to be written in the code.

today 。i solve with 5 step

  1. abort hxcs's work Screen Shot 2020-11-10 at 9 12 19 PM

2.Compile only with -net-lib UnityEngine.dll

3.Write haxe code like this Screen Shot 2020-11-10 at 9 13 46 PM

4.Add reference node in "project.csproj" Screen Shot 2020-11-10 at 9 31 06 PM

5.CMD > msbuild

xhfzcmt avatar Nov 10 '20 13:11 xhfzcmt