Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Dependencies/Contracts/Range.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public override string ToString()
/// <summary>Create a Range object starting from first element to the end.</summary>
public static Range All => new Range(Index.Start, Index.End);

#if !NO_VALUE_TUPLE // workaround for https://github.com/dotnet/roslyn/issues/78392

/// <summary>Calculate the start offset and length of range object using a collection length.</summary>
/// <param name="length">The length of the collection that the range will be used with. length has to be a positive value.</param>
/// <remarks>
Expand Down Expand Up @@ -103,6 +105,7 @@ public override string ToString()

return (start, end - start);
}
#endif
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<IsSymbolPublishingPackage>true</IsSymbolPublishingPackage>

<!--
Workaround: https://github.com/dotnet/roslyn/issues/78392
We use NO_VALUE_TUPLE symbol to conditionally compile the code that
uses ValueTuple because remote debugger does not ship it.
-->
<DefineConstants>$(DefineConstants);NO_VALUE_TUPLE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\..\..\Compilers\Core\Portable\MetadataReader\MetadataTypeCodeExtensions.cs">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<ApplyNgenOptimization>full</ApplyNgenOptimization>
<IsSymbolPublishingPackage>true</IsSymbolPublishingPackage>

<!--
Workaround: https://github.com/dotnet/roslyn/issues/78392
We use NO_VALUE_TUPLE symbol to conditionally compile the code that
uses ValueTuple because remote debugger does not ship it.
-->
<DefineConstants>$(DefineConstants);NO_VALUE_TUPLE</DefineConstants>
</PropertyGroup>
<ItemGroup Label="Linked Files">
<Compile Include="..\..\..\..\..\Compilers\Core\Portable\CaseInsensitiveComparison.cs">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
<IsShipping>false</IsShipping>
<IsTestUtilityProject>true</IsTestUtilityProject>

<!--
Workaround: https://github.com/dotnet/roslyn/issues/78392
We use NO_VALUE_TUPLE symbol to conditionally compile the code that
uses ValueTuple because remote debugger does not ship it.
-->
<DefineConstants>$(DefineConstants);NO_VALUE_TUPLE</DefineConstants>

<!-- Disable CA1825 (Avoid unnecessary zero-length array allocations. Use Array.Empty<X>() instead) as Array.Empty not available in one of the targets for this shared project -->
<NoWarn>$(NoWarn);CA1825</NoWarn>
</PropertyGroup>
Expand Down