This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4646 from livarcocc/hoist_framework_assemblies
Hoisting FrameworkAssemblies for desktop frameworks during migration.
- Loading branch information
Showing
8 changed files
with
182 additions
and
1 deletion.
There are no files selected for viewing
Empty file.
19 changes: 19 additions & 0 deletions
19
TestAssets/DesktopTestProjects/TestAppWithFrameworkAssemblies/ProjectA/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// 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; | ||
using System.Diagnostics; | ||
using TestLibrary; | ||
|
||
namespace TestApp | ||
{ | ||
public class Program | ||
{ | ||
public static int Main(string[] args) | ||
{ | ||
Console.WriteLine("This string came from ProjectA"); | ||
Console.WriteLine($"{ProjectD.GetMessage()}"); | ||
return 0; | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
TestAssets/DesktopTestProjects/TestAppWithFrameworkAssemblies/ProjectA/project.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"version": "1.0.0-*", | ||
"buildOptions": { | ||
"emitEntryPoint": true, | ||
"preserveCompilationContext": true | ||
}, | ||
"dependencies": { | ||
"ProjectB": { | ||
"target": "project", | ||
"version": "1.0.0-*" | ||
} | ||
}, | ||
"frameworks": { | ||
"netcoreapp1.0": { | ||
"dependencies": { | ||
"Microsoft.NETCore.App": "1.0.1" | ||
} | ||
}, | ||
"net451": {} | ||
}, | ||
"runtimes": { | ||
"win7-x64": {}, | ||
"win7-x86": {}, | ||
"osx.10.10-x64": {}, | ||
"osx.10.11-x64": {}, | ||
"ubuntu.14.04-x64": {}, | ||
"ubuntu.16.04-x64": {}, | ||
"centos.7-x64": {}, | ||
"rhel.7.2-x64": {}, | ||
"debian.8-x64": {}, | ||
"fedora.23-x64": {}, | ||
"opensuse.13.2-x64": {} | ||
} | ||
} |
Empty file.
15 changes: 15 additions & 0 deletions
15
TestAssets/DesktopTestProjects/TestAppWithFrameworkAssemblies/ProjectB/Helper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// 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; | ||
|
||
namespace TestLibrary | ||
{ | ||
public static class ProjectB | ||
{ | ||
public static string GetMessage() | ||
{ | ||
return "This string came from ProjectB"; | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
TestAssets/DesktopTestProjects/TestAppWithFrameworkAssemblies/ProjectB/project.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"version": "1.0.0-*", | ||
"buildOptions": { | ||
"nowarn": [ | ||
"CS1591" | ||
], | ||
"xmlDoc": true, | ||
"additionalArguments": [ | ||
"-highentropyva+" | ||
] | ||
}, | ||
"dependencies": { | ||
"NETStandard.Library": "1.6.0" | ||
}, | ||
"frameworks": { | ||
"netstandard1.5": {}, | ||
"net451": { | ||
"frameworkAssemblies": { | ||
"System.ComponentModel.DataAnnotations": "" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters