What does compilationOptions.emitEntryPoint mean?

前端 未结 2 522
深忆病人
深忆病人 2020-12-11 00:05

Just installed the rc1 tools and created a new web project to see what has changed in the template.

I noticed that project.json now contains:

\"compi         


        
2条回答
  •  轮回少年
    2020-12-11 00:37

    I see this in the source;

    var outputKind = compilerOptions.EmitEntryPoint.GetValueOrDefault() ?
        OutputKind.ConsoleApplication : OutputKind.DynamicallyLinkedLibrary;
    

    Looks like it tells the compiler whether to create a Console Application or a Library.

    Additionaly, if you create a new Class Library (Package) and Console Application (Package) in VS2015 you'll see that project.json for the Console Application includes the following, while the Class Library does not;

    "compilationOptions": {
      "emitEntryPoint": true
    }
    

提交回复
热议问题