Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable the MSBuildResolver to work under dotnet core (#561)
Enable the MSBuildResolver to work under dotnet core
- Loading branch information
Showing
45 changed files
with
729 additions
and
214 deletions.
There are no files selected for viewing
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
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
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
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
11 changes: 11 additions & 0 deletions
11
Public/Sdk/SelfHost/Libraries/Dotnet-Runtime-External/DotNet-Runtime.linux-x64.dsc
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,11 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
import {Transformer} from "Sdk.Transformers"; | ||
import {createPublicDotNetRuntime} from "DotNet-Runtime.Common"; | ||
|
||
const v3 = <StaticDirectory>importFrom("DotNet-Runtime.linux-x64.3.0.0-preview5").extracted; | ||
const v2 = <StaticDirectory>importFrom("DotNet-Runtime.linux-x64.2.2.2").extracted; | ||
|
||
@@public | ||
export const extracted = createPublicDotNetRuntime(v3, v2); |
11 changes: 11 additions & 0 deletions
11
Public/Sdk/SelfHost/Libraries/Dotnet-Runtime-External/DotNet-Runtime.osx-x64.dsc
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,11 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
import {Transformer} from "Sdk.Transformers"; | ||
import {createPublicDotNetRuntime} from "DotNet-Runtime.Common"; | ||
|
||
const v3 = <StaticDirectory>importFrom("DotNet-Runtime.osx-x64.3.0.0-preview5").extracted; | ||
const v2 = <StaticDirectory>importFrom("DotNet-Runtime.osx-x64.2.2.2").extracted; | ||
|
||
@@public | ||
export const extracted = createPublicDotNetRuntime(v3, v2); |
11 changes: 11 additions & 0 deletions
11
Public/Sdk/SelfHost/Libraries/Dotnet-Runtime-External/DotNet-Runtime.win-x64.dsc
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,11 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
import {Transformer} from "Sdk.Transformers"; | ||
import {createPublicDotNetRuntime} from "DotNet-Runtime.Common"; | ||
|
||
const v3 = <StaticDirectory>importFrom("DotNet-Runtime.win-x64.3.0.0-preview5").extracted; | ||
const v2 = <StaticDirectory>importFrom("DotNet-Runtime.win-x64.2.2.2").extracted; | ||
|
||
@@public | ||
export const extracted = createPublicDotNetRuntime(v3, v2); |
22 changes: 22 additions & 0 deletions
22
Public/Sdk/SelfHost/Libraries/Dotnet-Runtime-External/common.dsc
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,22 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
import {Transformer} from "Sdk.Transformers"; | ||
|
||
@@public | ||
export function createPublicDotNetRuntime(v3Runtime : StaticDirectory, v2Runtime: StaticDirectory) : StaticDirectory { | ||
const netCoreAppV2 = v2Runtime.contents.filter(file => file.path.isWithin(d`${v2Runtime.root}/shared`)); | ||
|
||
// We create a package that has dotnet executable and related SDK, plus the V2 SDK | ||
const dotNetRuntimeRoot = Context.getNewOutputDirectory("DotNet-Runtime"); | ||
|
||
const sealDirectory = Transformer.sealDirectory( | ||
dotNetRuntimeRoot, | ||
[ | ||
...v3Runtime.contents.map(file => Transformer.copyFile(file, file.path.relocate(v3Runtime.root, dotNetRuntimeRoot))), | ||
...netCoreAppV2.map(file => Transformer.copyFile(file, file.path.relocate(v2Runtime.root, dotNetRuntimeRoot))) | ||
] | ||
); | ||
|
||
return sealDirectory; | ||
} |
30 changes: 30 additions & 0 deletions
30
Public/Sdk/SelfHost/Libraries/Dotnet-Runtime-External/module.config.dsc
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,30 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
// These are the external versions of the architecture-specific DotNet-Runtime packages. | ||
// They are created from the 3.0.0-preview5 version, plus the 2.2 NetCore.App SDK, which is deployed side-by-side | ||
// The latter is required for MSBuild tests | ||
|
||
module({ | ||
name: "DotNet-Runtime.win-x64", | ||
nameResolutionSemantics: NameResolutionSemantics.implicitProjectReferences, | ||
projects: [f`DotNet-Runtime.win-x64.dsc`] | ||
}); | ||
|
||
module({ | ||
name: "DotNet-Runtime.osx-x64", | ||
nameResolutionSemantics: NameResolutionSemantics.implicitProjectReferences, | ||
projects: [f`DotNet-Runtime.osx-x64.dsc`] | ||
}); | ||
|
||
module({ | ||
name: "DotNet-Runtime.linux-x64", | ||
nameResolutionSemantics: NameResolutionSemantics.implicitProjectReferences, | ||
projects: [f`DotNet-Runtime.linux-x64.dsc`] | ||
}); | ||
|
||
module({ | ||
name: "DotNet-Runtime.Common", | ||
nameResolutionSemantics: NameResolutionSemantics.implicitProjectReferences, | ||
projects: [f`common.dsc`] | ||
}); |
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
Oops, something went wrong.