Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

[ILVerify] Add net46 as additional target framework #4862

Merged
merged 1 commit into from
Nov 2, 2017
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
2 changes: 1 addition & 1 deletion src/ILVerify/src/AccessVerificationHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ private static bool GrantsFriendAccessTo(this ModuleDesc module, ModuleDesc frie

foreach (var attribute in assembly.GetDecodedCustomAttributes("System.Runtime.CompilerServices", "InternalsVisibleToAttribute"))
{
var friendValues = ((string)attribute.FixedArguments[0].Value).Split(", ");
var friendValues = ((string)attribute.FixedArguments[0].Value).Split(new string[] { ", " }, StringSplitOptions.None);
if (friendValues.Length >= 1 && friendValues.Length <= 2)
{
if (friendValues[0] != friendName.Name)
Expand Down
4 changes: 2 additions & 2 deletions src/ILVerify/src/ILVerify.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFrameworks>netcoreapp2.0;net46</TargetFrameworks>
<CLSCompliant>false</CLSCompliant>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
Expand Down Expand Up @@ -294,7 +294,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.IO.MemoryMappedFiles" Version="4.0.0" />
<PackageReference Include="System.IO.MemoryMappedFiles" Version="4.3.0" />
<PackageReference Include="System.Reflection.Metadata" Version="1.4.1" />
<PackageReference Include="System.CommandLine" Version="0.1.0-e160909-1" />
</ItemGroup>
Expand Down