Skip to content

A command line utility to set the default StartUp Project of a Visual Studio solution file

License

Notifications You must be signed in to change notification settings

leXorNet/slnStartupProject

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sln StartUp Project

A command line utility to set the default StartUp Project of a Visual Studio solution file

Usage

slnStartupProject slnFilename projectName

slnFilename: path to the Visual Studio solution file to modify

projectName: Name of the project to set as the default StartUp project

slnStartupProject searches slnFilename for a project called projectName and moves its definition at the top of the file.

Why?

Visual Studio Set as StartUp Project

When Visual Studio opens a sln file for the first time, it sets the very first project as the startup project and then stores it in the associated .suo file. This often make the first build fail and forces the developer to locate the project, right-click on it and select "Set as StartUp Project" for the build to succeed and launch. It is pretty annoying for maniacs like me. This becomes extremely relevant when you generate your solution using cmake as cmake always sets the dummy project ALL_BUILD as the first project.

You can now integrate slnStartupProject in your build script and make sure the projects you generate will build and launch everytime a developer hits F5

Hope this helps you.

Compiling

The source is in the src directory and you will find a Visual Studio 2013 sln / csproj in the projects directory

I also provided an additional sln for Visual Studio 2008 ready to be upgraded to your needs

License

slnStartupProject is licensed under the MIT License, see LICENSE for more information.

About

A command line utility to set the default StartUp Project of a Visual Studio solution file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%