Auto add referenced assemblies for desktop migration
* https://github.com/dotnet/cli/issues/4351 Auto add referenced assemblies for desktop migration. Adds the same ones that the build for project.json does. * Address PR comments * Address CR comments * Address CR comment Use .ToList() instead of new List * Fix a build break Needed .noautobuild file in my test asset project * Change the migrate test for desktop framework to windows only * Reducing to 120 characters per line
This commit is contained in:
parent
a6d37d25f5
commit
71666cc9b5
6 changed files with 131 additions and 11 deletions
|
@ -0,0 +1,21 @@
|
|||
using System.Collections.Generic;
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue