Reputation: 28141
Initializing Visual Studio solutions is painful in that it always seems to want to put things under my Documents directory, and it never seems to lay out the directories the way I want.
Is it possible to initialize an empty solution via the command line? Basically, I want the equivalent of yo aspnet
, but for pre-vNext code.
Upvotes: 0
Views: 258
Reputation: 55601
You might be able to simply create an empty template.sln and file copy it to the destination.
Platforms and Configurations don't exist until you have at least 1 project in the solution. There might also be some more stuff that you want to configure for SCC bindings and so on.
FWIW, I understand from previous experience what you mean. Personally I've adopted directory structures and naming conventions based on what VS wants to natively push me towards. I've worked at companies where the declared standard was not in line with this and starting with an empty SLN file was a good starting place for that to work.
Example empty SLN file:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.23107.0
MinimumVisualStudioVersion = 10.0.40219.1
Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Upvotes: 2