Skip to content

VS: Add StartupObject property for managed .NET projects

Florian Schweiger requested to merge Husker/cmake:startupObject into master

This change adds the VS_DOTNET_STARTUP_OBJECT property to CMake for Visual Studio project generators. As proposed in #23190 it is a missing setting for managed .NET projects.

Such kind of projects allow more than one Main() function declared in a single project. That includes dependencies to libraries or shared source code, declaring their own Main(). If this applies, the user must provide a full qualified startup class name to Visual Studio defining the Main() to be used.

Topic-rename: vs-dotnet-startup-object

Edited by Brad King

Merge request reports