fix the multi tfm test to not build net20
This commit is contained in:
parent
1c1f4c462f
commit
16ff3734a3
4 changed files with 38 additions and 3 deletions
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
|
||||
namespace ConsoleApplication
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
Console.WriteLine("Hello World!");
|
||||
#if NET20 || NET35 || NET45 || NET461
|
||||
// Force XmlDocument to be used
|
||||
var doc = new XmlDocument();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"buildOptions": {
|
||||
"emitEntryPoint": false
|
||||
},
|
||||
"dependencies": {},
|
||||
"frameworks": {
|
||||
"net461": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Xml": {}
|
||||
}
|
||||
},
|
||||
"netstandard1.5": {
|
||||
"imports": "dnxcore50",
|
||||
"dependencies": {
|
||||
"NETStandard.Library": "1.6.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -19,8 +19,6 @@ namespace Microsoft.DotNet.Migration.Tests
|
|||
public class GivenThatIWantToMigrateTestApps : TestBase
|
||||
{
|
||||
[Theory]
|
||||
// TODO: Standalone apps [InlineData("TestAppSimple", false)]
|
||||
// https://github.com/dotnet/sdk/issues/73 [InlineData("TestAppWithLibrary/TestApp", false)]
|
||||
[InlineData("TestAppWithRuntimeOptions")]
|
||||
[InlineData("TestAppWithContents")]
|
||||
public void It_migrates_apps(string projectName)
|
||||
|
@ -123,7 +121,7 @@ namespace Microsoft.DotNet.Migration.Tests
|
|||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("TestLibraryWithMultipleFrameworks")]
|
||||
[InlineData("TestLibraryWithTwoFrameworks")]
|
||||
public void It_migrates_projects_with_multiple_TFMs(string projectName)
|
||||
{
|
||||
var projectDirectory =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue