diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index b133a43..19ce671 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -26,5 +26,5 @@ jobs: dotnet-logging: ${{ inputs.dotnet-logging | 'minimal' }} dotnet-version: | 7.x - solution: ###SOLUTION### + solution: ./Arguments.sln secrets: inherit diff --git a/Arguments.sln b/Arguments.sln new file mode 100644 index 0000000..234108b --- /dev/null +++ b/Arguments.sln @@ -0,0 +1,33 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{30024133-C82C-44B0-8A1B-AD08D032D682}" + ProjectSection(SolutionItems) = preProject + .csharpierignore = .csharpierignore + .editorconfig = .editorconfig + .filenesting.json = .filenesting.json + .gitignore = .gitignore + .gitmodules = .gitmodules + Directory.Build.props = Directory.Build.props + Directory.Build.targets = Directory.Build.targets + Directory.Packages.props = Directory.Packages.props + Directory.Solution.props = Directory.Solution.props + GitVersion.yml = GitVersion.yml + LICENSE = LICENSE + new-project.ps1 = new-project.ps1 + nuget.config = nuget.config + README.md = README.md + update-solution.ps1 = update-solution.ps1 + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/new-project.ps1 b/new-project.ps1 index cb9f4c1..c62cf36 100644 --- a/new-project.ps1 +++ b/new-project.ps1 @@ -45,6 +45,6 @@ New-Project ` -DisableTests $DisableTests ` -DisableUnitTests $DisableUnitTests ` -DisableIntegrationTests $DisableIntegrationTests ` - -SolutionFile "###SOLUTION###" ` + -SolutionFile "./Arguments.sln" ` -OutputDirectory (Get-Location) ` -EnableProjectGrouping $EnableProjectGrouping diff --git a/new-solution.ps1 b/new-solution.ps1 deleted file mode 100644 index 0c57ad1..0000000 --- a/new-solution.ps1 +++ /dev/null @@ -1,17 +0,0 @@ -[CmdletBinding()] -param ( - # Name of the solution to be created. - [Parameter(Mandatory = $true)] - [string] - $SolutionName -) - -Write-Output "Updating submodules ..." -git submodule update --init --recursive --remote | Out-Null - -Write-Output "Creating $SolutionName.sln ..." -$location = Get-Location -. .\eng\scripts\new-solution.ps1 - -New-Solution -SolutionName $SolutionName -Output $location -Remove-Item -Path "$location\new-solution.ps1" -Force