@@ -110,6 +110,14 @@ try {
110110 git mv test/ Library.Tests " test/$LibraryName .Tests"
111111 if ($LASTEXITCODE -ne 0 ) { exit $LASTEXITCODE }
112112
113+ # Update project reference in test project. Add before removal to keep the same ItemGroup in place.
114+ dotnet add " test/$LibraryName .Tests" reference " src/$LibraryName "
115+ if ($LASTEXITCODE -ne 0 ) { exit $LASTEXITCODE }
116+ dotnet remove " test/$LibraryName .Tests" reference src/ Library/ Library.csproj
117+ if ($LASTEXITCODE -ne 0 ) { exit $LASTEXITCODE }
118+ git add " test/$LibraryName .Tests/$LibraryName .Tests.csproj"
119+ if ($LASTEXITCODE -ne 0 ) { exit $LASTEXITCODE }
120+
113121 # Refresh solution file both to update paths and give the projects unique GUIDs
114122 dotnet sln remove src/ Library/ Library.csproj
115123 if ($LASTEXITCODE -ne 0 ) { exit $LASTEXITCODE }
@@ -122,14 +130,6 @@ try {
122130 git add " $LibraryName .slnx"
123131 if ($LASTEXITCODE -ne 0 ) { exit $LASTEXITCODE }
124132
125- # Update project reference in test project. Add before removal to keep the same ItemGroup in place.
126- dotnet add " test/$LibraryName .Tests" reference " src/$LibraryName "
127- if ($LASTEXITCODE -ne 0 ) { exit $LASTEXITCODE }
128- dotnet remove " test/$LibraryName .Tests" reference src/ Library/ Library.csproj
129- if ($LASTEXITCODE -ne 0 ) { exit $LASTEXITCODE }
130- git add " test/$LibraryName .Tests/$LibraryName .Tests.csproj"
131- if ($LASTEXITCODE -ne 0 ) { exit $LASTEXITCODE }
132-
133133 # Establish a new strong-name key
134134 & $sn.Path - k 2048 strongname.snk
135135 if ($LASTEXITCODE -ne 0 ) { exit $LASTEXITCODE }
0 commit comments