Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 56b0e38

Browse files
committed
Add support to migrate folders specified in global.json
1 parent 17afdd4 commit 56b0e38

File tree

14 files changed

+247
-35
lines changed

14 files changed

+247
-35
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
{
3+
"projects": [ "src", "src with spaces", "src without projects" ]
4+
}

TestAssets/TestProjects/TestAppDependencyGraph/ProjectsWithGlobalJson/src with spaces/ProjectJ/.noautobuild

Whitespace-only changes.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright (c) .NET Foundation and contributors. All rights reserved.
2+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
4+
using System;
5+
using System.Diagnostics;
6+
7+
namespace TestApp
8+
{
9+
public class Program
10+
{
11+
public static int Main(string[] args)
12+
{
13+
Console.WriteLine("This string came from ProjectJ");
14+
string helperStr = TestLibrary.ProjectI.GetMessage();
15+
Console.WriteLine(helperStr);
16+
return 0;
17+
}
18+
}
19+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"version": "1.0.0-*",
3+
"buildOptions": {
4+
"emitEntryPoint": true,
5+
"preserveCompilationContext": true
6+
},
7+
"dependencies": {
8+
"ProjectI": {
9+
"target": "project",
10+
"version": "1.0.0-*"
11+
},
12+
"Microsoft.NETCore.App": {
13+
"type": "platform",
14+
"version": "1.0.1"
15+
}
16+
},
17+
"frameworks": {
18+
"netcoreapp1.0": {}
19+
}
20+
}

TestAssets/TestProjects/TestAppDependencyGraph/ProjectsWithGlobalJson/src/ProjectH/.noautobuild

Whitespace-only changes.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright (c) .NET Foundation and contributors. All rights reserved.
2+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
4+
using System;
5+
using System.Diagnostics;
6+
7+
namespace TestApp
8+
{
9+
public class Program
10+
{
11+
public static int Main(string[] args)
12+
{
13+
Console.WriteLine("This string came from ProjectH");
14+
string helperStr = TestLibrary.ProjectI.GetMessage();
15+
Console.WriteLine(helperStr);
16+
return 0;
17+
}
18+
}
19+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"version": "1.0.0-*",
3+
"buildOptions": {
4+
"emitEntryPoint": true,
5+
"preserveCompilationContext": true
6+
},
7+
"dependencies": {
8+
"ProjectI": {
9+
"target": "project",
10+
"version": "1.0.0-*"
11+
},
12+
"Microsoft.NETCore.App": {
13+
"type": "platform",
14+
"version": "1.0.1"
15+
}
16+
},
17+
"frameworks": {
18+
"netcoreapp1.0": {}
19+
}
20+
}

TestAssets/TestProjects/TestAppDependencyGraph/ProjectsWithGlobalJson/src/ProjectI/.noautobuild

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright (c) .NET Foundation and contributors. All rights reserved.
2+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
4+
using System;
5+
6+
namespace TestLibrary
7+
{
8+
public static class ProjectI
9+
{
10+
public static string GetMessage()
11+
{
12+
return "This string came from ProjectI";
13+
}
14+
}
15+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"version": "1.0.0-*",
3+
"buildOptions": {
4+
"nowarn": [
5+
"CS1591"
6+
],
7+
"xmlDoc": true,
8+
"additionalArguments": [
9+
"-highentropyva+"
10+
]
11+
},
12+
"dependencies": {
13+
"NETStandard.Library": "1.6.0"
14+
},
15+
"frameworks": {
16+
"netstandard1.5": {}
17+
}
18+
}

0 commit comments

Comments
 (0)