2017-03-03 05:04:03 +00:00
|
|
|
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
2016-10-18 01:02:10 +00:00
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using Microsoft.CSharp.RuntimeBinder;
|
|
|
|
|
|
|
|
|
|
namespace AutoAddDesktopReferencesDuringMigrate
|
|
|
|
|
{
|
|
|
|
|
class Program
|
|
|
|
|
{
|
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
var mscorlibRef = new List<int>(new int[] { 4, 5, 6 });
|
|
|
|
|
var systemCoreRef = mscorlibRef.ToArray().Average();
|
|
|
|
|
Debug.Assert(systemCoreRef == 5, "Test System assembly reference");
|
|
|
|
|
if (systemCoreRef != 5)
|
|
|
|
|
{
|
|
|
|
|
throw new RuntimeBinderException("Test Microsoft.CSharp assembly reference");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|