2016-07-13 1 views
0

방금 ​​전에 을 배웠고 Premake을 확인하기로 결정했습니다.
C++ 프로젝트에서는 제대로 작동하는 것처럼 보이지만, C# 프로그램을 만날 때마다 어떤 이유로 든 밖으로 튀어 나옵니다. 내가 premake4 --os=linux gmake와 Makefile을 생성 할 때, 나는이 출력을 얻을Premake가 C# 라이브러리 용 Makefile을 만들지 못했습니다.

solution "ExampleLib" 
    configurations { "Debug", "Release" } 
    project "ExampleLib" 
     kind "SharedLib" 
     language "C#" 
     files { "../src/**.cs" } 
     configuration "Debug" 
      defines { "DEBUG" } 
      flags { "Symbols" } 
     configuration "Release" 
      defines { "NDEBUG" } 
      flags { "Optimize" } 

:
이 예 Premake 스크립트를 가지고 내가 실행 메이크하려고하면

Building configurations... 
Running action 'gmake'... 
Generating Makefile... 
Generating ExampleLib.make... 
[string "premake.dotnet = { }..."]:28: attempt to compare nil with string 

을,이 얻을 :

==== Building ExampleLib (debug) ==== 
ExampleLib.make:12: *** missing 'endif'. Stop. 
Makefile:16: recipe for target 'ExampleLib' failed 
make: *** [ExampleLib] Error 2 

"ifndef CSC"섹션에서 Premake가 갑자기 종료되는 것 같습니다.

어떻게 C# 프로젝트를 Premake로 빌드 할 수 있습니까?

Mono 및 MonoDevelop가 설치된 우분투 15.10에 설치되어 있으면 도움이됩니다.

+0

요즘 Premake4에는 많은 기여가 표시되지 않습니다. 시작하기 전에 Premake5 (http://premake.github.io/)를 사용해야합니다. 그 버전이 더 잘 작동합니까? – starkos

+0

@starkos 훌륭한 작품 – InitializeSahib

답변

0

나에게 효과가있는 해결책은 premake5--dotnet=mono 플래그를 사용하는 것이 었습니다.