This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
Watch with solution fails msbuild when involving a project with special character(s) #1438
Labels
bug
Something isn't working
Describe the bug
msbuild
error occurs when doing a--watch
, with a solution file specified in thetye.yaml
, upon making a subsequent change to a file in a project with a special character, such as a.
.The special characters are to be replaced by an
_
for the-targets
argument (see https://docs.microsoft.com/en-us/visualstudio/msbuild/how-to-build-specific-targets-in-solutions-by-using-msbuild-exe?view=vs-2022), but are not.Reference:
https://docs.microsoft.com/en-us/visualstudio/msbuild/how-to-build-specific-targets-in-solutions-by-using-msbuild-exe?view=vs-2022
To Reproduce
solution
in yourtye.yaml
.
(or other special character) in the nametye run --watch
.
)Example Logs:
Further technical details
Tye version:
0.11.0-alpha.22111.1+3edef5428949c518c078844d6438e5ba86fce600
Bug introduced here: I believe
https://github.com/dotnet/tye/pull/1189/files#diff-523fd91d9257dbd6f1858e24a1520bf3424c0d2f48b14a5de76d6439bbaa7866
(see line 217)
A special character is defined as
%
,$
,@
,;
,.
,(
,)
, or'
.See: https://docs.microsoft.com/en-us/visualstudio/msbuild/how-to-build-specific-targets-in-solutions-by-using-msbuild-exe?view=vs-2022
A fix I believe should do a find/replace on these characters, replacing any of them with a
_
(e.g., regex replace).The text was updated successfully, but these errors were encountered: