sdk
sdk copied to clipboard
Ensure case-insensitive web.config file name is used
Description
This PR attempts to resolve issue 14853
Currently, linux environments will fail to retrieve a Web.config
file if the case does not match web.config
. This results in the users version of Web.config
from not being loaded and passed to WebConfigTransform
, producing an incorrect result.
This PR fixes the issue by searching for the web.config file in the project directory, before passing it to the WebConfigTransform step
Tests
- Added a series of "integration" tests for the TransformWebConfig task ✅
- Test for regression on an OSX System ✅
- Compile and test this on a Linux system (Kernel 5.4.78-1-lts) ✅
- Test for regression on a Linux System ✅
- Test for regression on a Windows System ✅
Commenter does not have sufficient privileges for PR 14854 in repo dotnet/sdk
Hey @vijayrkn - would you be able to review this PR please? Thanks!
@vijayrkn bump :)
I have left one minor comment and once it is fixed, I will approve the change.
Thanks for reviewing @vijayrkn! Made the string comparison change and confirmed that the fix still works (tested on EndeavourOS Linux x86_64
)
@scott-the-programmer - All the tests have passed & I have merged the changes. Thank you for your contribution!