File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ $exerciseDir = "exercises/practice/${Exercise}"
3434$projectFile = " ${exerciseDir} /${ExerciseName} .csproj"
3535& dotnet new install xunit.v3.templates
3636& dotnet new xunit3 -- force -- output $exerciseDir -- name $ExerciseName
37+ & dotnet sln exercises/ Exercises.sln add $project
3738
3839[xml ]$project = Get-Content $projectFile
3940$project.Project.PropertyGroup.RemoveChild ($project.Project.PropertyGroup.SelectSingleNode (" //comment()" ))
@@ -43,15 +44,6 @@ $project.Project.ItemGroup[1].SelectSingleNode("PackageReference[@Include='xunit
4344$project.Project.ItemGroup [1 ].SelectSingleNode(" PackageReference[@Include='xunit.runner.visualstudio']" ).SetAttribute(" Version" , " 3.0.2" )
4445$project.Save ($projectFile )
4546
46- & dotnet sln exercises/ Exercises.sln add $project
47-
48- # Update project packages
49- & dotnet remove $project package coverlet.collector
50- & dotnet add $project package Exercism.Tests -- version 0.1 .0 - beta1
51- & dotnet add $project package xunit.runner.visualstudio -- version 3.0 .1
52- & dotnet add $project package xunit -- version 2.8 .1
53- & dotnet add $project package Microsoft.NET.Test.Sdk -- version 17.12 .0
54-
5547# Remove and update files
5648Remove-Item - Path " ${exerciseDir} /UnitTest1.cs"
5749(Get-Content - Path " .editorconfig" ) -Replace " \[\*\.cs\]" , " [${exerciseName} .cs]" | Set-Content - Path " ${exerciseDir} /.editorconfig"
You can’t perform that action at this time.
0 commit comments