Skip to content
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

Including multiple semicolon-separated strings removes slash on Linux #3416

Open
tmat opened this issue Jun 15, 2018 · 1 comment
Open

Including multiple semicolon-separated strings removes slash on Linux #3416

tmat opened this issue Jun 15, 2018 · 1 comment
Labels

Comments

@tmat
Copy link
Member

tmat commented Jun 15, 2018

Steps to reproduce

Project file a.proj:

<Project>
  <Target Name="Build">
    <PropertyGroup>
      <_Value0>/tmp/RoslynTests/5b60c3b6-f6b5-431b-a782-fc3f8a5eea90/</_Value0>
      <_Value1>https://raw.githubusercontent.com</_Value1>
    </PropertyGroup>
    <ItemGroup>
      <LinesToWrite1 Include="$(_Value0);$(_Value1)"/>
      <LinesToWrite2 Include="$(_Value0)"/>
      <LinesToWrite2 Include="$(_Value1)"/>
    </ItemGroup>
    <WriteLinesToFile File="Result1.txt" Lines="@(LinesToWrite1)" Overwrite="true" Encoding="UTF-8" />
    <WriteLinesToFile File="Result2.txt" Lines="@(LinesToWrite2)" Overwrite="true" Encoding="UTF-8" />
  </Target>
</Project>

Command line

> dotnet msbuild a.proj

Expected behavior

Content of Result1.txt and Result2.txt is the same:

/tmp/RoslynTests/5b60c3b6-f6b5-431b-a782-fc3f8a5eea90/
https://raw.githubusercontent.com

Actual behavior

Result1.txt:

/tmp/RoslynTests/5b60c3b6-f6b5-431b-a782-fc3f8a5eea90/
https:/raw.githubusercontent.com

Result2.txt:

/tmp/RoslynTests/5b60c3b6-f6b5-431b-a782-fc3f8a5eea90/
https://raw.githubusercontent.com

Environment data

msbuild /version output:

Microsoft (R) Build Engine version 15.7.177.53362 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

OS info:

  • Fails on Ubuntu.
  • Works on Windows
@cdmihai
Copy link
Contributor

cdmihai commented Jun 15, 2018

Probably a duplicate of #1622

@AR-May AR-May added the triaged label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants