-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$([MSBuild]::MakeRelative()) returns different values on 16.10 than older version #6493
Comments
Here is sample project to easily verify behavior has changed
|
This change causes execution of our application to fail. We're using System.Data.SQLite.Core which now fails to include the SQLite.Interop.dll as content.
Also see https://sqlite.org/forum/forumpost/b691c7086468c80dafba99497df225b51994df5aaa934962415ba50e31a9796f |
The following line appears to be the cause of this issue: |
We're hitting downstream build issues on SQLite.interop.dll as reported by Bruno |
I know +1 comments are frowned upon, but at the same time they seem to be the only way to get things prioritised. We're experiencing the same problem with Sqlite. Therefore: +1 |
+1 to this problem. |
We are also having the problem with System.Data.SQLite. This is a blocking issue, since no builds work. |
Bit us too. Blocking as no builds work that use the SQLite nuget packages. |
…tnet/msbuild#6493). Thanks manio143 for the fix!
…tnet/msbuild#6493). Thanks manio143 for the fix!
…tnet/msbuild#6493). Thanks manio143 for the fix!
16.10.2 is now released for Visual Studio customers. |
Issue Description
Newest version of VisualStudio (MSBuild 16.10) return different values on msbuild property function MakeRelative() with paths ending backslash.
Steps to Reproduce
code: $([MSBuild]::MakeRelative('c:\windows\', 'c:\windows\system32\'))
MSBuild 16.10 returns: 'system32'
MSBuild 16.9 and older returns: 'system32\'
Expected Behavior
according to https://docs.microsoft.com/en-us/dotnet/api/system.uri.makerelativeuri?view=net-5.0
it should returns 'system32\'
Actual Behavior
returns 'system32'
Analysis
MSBuild unittests does not contains paths ending backslash
https://github.com/dotnet/msbuild/blob/main/src/Shared/UnitTests/FileUtilities_Tests.cs#L86
Versions & Configurations
16.10.0.26302
The text was updated successfully, but these errors were encountered: