Skip to content

Commit

Permalink
Remove GenerateProgramFile property
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Oct 24, 2024
1 parent 0529927 commit 0f2833c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/add-practice-exercise.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ Remove-Item -Path "${exerciseDir}/Tests.fs"
Set-Content -Path "${exerciseDir}/${exerciseName}.fs" -Value "module ${exerciseName}"
Set-Content -Path "${exerciseDir}/.meta/Example.fs" -Value "module ${exerciseName}"

# Fix the includes
# Fix the project
[xml]$proj = Get-Content $project
$proj.Project.ItemGroup[0].Compile[0].Include = "${exerciseName}.fs"
$proj.Project.ItemGroup[0].Compile[1].Include = "${exerciseName}Tests.fs"
$proj.Project.PropertyGroup.RemoveChild($proj.Project.PropertyGroup.SelectSingleNode("//GenerateProgramFile"))
$proj.Save($project)

# Add and run generator (this will update the tests file)
Expand Down

0 comments on commit 0f2833c

Please sign in to comment.