You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently received a bug report in the ASP.NET Core repo (here) of a user having issues using Typescript + our JS Modules feature. The user claims that the issue only happens on Linux and upon investigation, it turns out that it seems that Typescript is adding the compilation outputs to the build using the full path instead of the relative path on Linux.
On windows it exposes the "correct" behavior adding the element to the item group using the relative path, which avoids the issue as the file is not added twice.
The result is that the build is broken in Linux (and possibly Mac OS) when the user tries to use TypeScript + ASP.NET Core.
🔎 Search Terms
MSBuild
🕗 Version & Regression Information
This is happening with ASP.NET Core .NET 6.0 and "Microsoft.TypeScript.MSBuild" Version="4.6.2"
💻 Code
There is a repro attached in the issue above
🙁 Actual behavior
Build fails because an asset is added twice to the build pipeline, in one case with the relative path and in the other with the absolute path, so they are considered different assets.
🙂 Expected behavior
Typescript adds the asset with the relative path in all OSes which avoids the asset being accounted twice.
The text was updated successfully, but these errors were encountered:
Bug Report
We recently received a bug report in the ASP.NET Core repo (here) of a user having issues using Typescript + our JS Modules feature. The user claims that the issue only happens on Linux and upon investigation, it turns out that it seems that Typescript is adding the compilation outputs to the build using the full path instead of the relative path on Linux.
On windows it exposes the "correct" behavior adding the element to the item group using the relative path, which avoids the issue as the file is not added twice.
The result is that the build is broken in Linux (and possibly Mac OS) when the user tries to use TypeScript + ASP.NET Core.
🔎 Search Terms
MSBuild
🕗 Version & Regression Information
This is happening with ASP.NET Core .NET 6.0 and "Microsoft.TypeScript.MSBuild" Version="4.6.2"
💻 Code
There is a repro attached in the issue above
🙁 Actual behavior
Build fails because an asset is added twice to the build pipeline, in one case with the relative path and in the other with the absolute path, so they are considered different assets.
🙂 Expected behavior
Typescript adds the asset with the relative path in all OSes which avoids the asset being accounted twice.
The text was updated successfully, but these errors were encountered: