ASDAlexander77 / cs2cpp

C# to C++ transpiler (Cs2Cpp) (Powered by Roslyn)
http://csnative.codeplex.com
254 stars 62 forks source link

CoreLib is ignored if used with a csproj file #3

Closed bernd5 closed 7 years ago

bernd5 commented 7 years ago

Hi Alex or Oleksandr,

in Il2Native.Logic.Cs2CGenerator the corelib param is ignored if you supply it via console-param (as you do with normal cs files). It must be defined in the csproj file itself which is very uncommon.

==> The if / else in line 61 should be removed. Just the call to LoadProject should be conditioned...

Kind regards,

Bernd

ASDAlexander77 commented 7 years ago

yes you can call me Alex.

there is 2 ways of providing info for compilation: Command line or CSPROJ, if CSPROJ provided them command line parameters are not taken into account as I am excepting all info to be in CSPROJ

ASDAlexander77 commented 7 years ago

If have added code to load corelib reference if it is provided thru command line.