< Back

New-Solution

Sun Jan 12, 2020 6:15 pm

NAME New-Solution



SYNOPSIS

Assuming Visual Studio 2017.3 installed, will create a new C# solution in current

or specified directory.





SYNTAX

New-Solution [-name] <String> [[-directory] <String>] [<CommonParameters>]





DESCRIPTION

Will attempt to delete existing directory or halt if deletion fails.





PARAMETERS

-name <String>

Name of the overall solution in upper camel case like "Zoo" or "ClassAction". Don't use "Solution" or "sln"

as part of the name.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-directory <String>

Defaults to current directory. Will create a solution folder inside this directory which is name parameter

plus "Solution"



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Author: Brian Woelfel

Date: 2017/09/07



-------------------------- EXAMPLE 1 --------------------------



C:\\PS>New-Solution Zoo c:\\code



Creates a valid but empty Visual Studio solution c:\\code\\Zoo\\ZooSolution\\ZooSolution.sln











RELATED LINKS