Skip to content

Commit 440ffc2

Browse files
committed
Finalize 1.1.1
1 parent 42d1881 commit 440ffc2

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ Create a module manifest: `New-ModuleManifest -Path dual-projects.psd1`
212212

213213
# Release Notes
214214

215+
## 1.1.1
216+
217+
- Fix: Convert the _csproj_ file path to absolute before reading it to make sure it works everytime.
218+
215219
## 1.1.0
216220

217221
- Add the `Add-FunctionalTests` function.
0 Bytes
Binary file not shown.

dotnet-new/dual-projects/dual-projects.psm1

+3-4
Original file line numberDiff line numberDiff line change
@@ -161,17 +161,16 @@ function Add-FunctionalTests {
161161
}
162162
}
163163

164-
function outputLocation { return (get-location)}
165-
166164
function UpdateRootNamespace($projectName, $testProjectPath, $customPropsFile = $null) {
167-
$loc = outputLocation
165+
$loc = Get-Location
168166
Write-Debug "Location: $loc"
169167
Write-Debug "testProjectPath: $testProjectPath"
170168

171169
# Convert to absolute path
172170
$fullTestPath = "$loc\$testProjectPath"
173-
Write-Verbose "Convert '$fullTestPath' to absolute '$fullTestPath'."
171+
Write-Verbose "Convert '$testProjectPath' to absolute '$fullTestPath'."
174172

173+
# Rewrite the csproj file
175174
$i = 0;
176175
$tmpFile = "$fullTestPath.tmp"
177176
foreach ($line in [System.IO.File]::ReadLines($fullTestPath)) {

0 commit comments

Comments
 (0)