Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Arcade.sln
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DotNet.NuGetRepac
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DotNet.Build.Tasks.Feed.Tests", "src\Microsoft.DotNet.Build.Tasks.Feed.Tests\Microsoft.DotNet.Build.Tasks.Feed.Tests.csproj", "{6E19C6B6-4ADF-4DD6-86CC-6C1624BCDB71}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk", "src\Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk\Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk.csproj", "{62B929C4-3D15-4D43-AEFC-2D0BD3CFC20D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -593,6 +595,18 @@ Global
{6E19C6B6-4ADF-4DD6-86CC-6C1624BCDB71}.Release|x64.Build.0 = Release|Any CPU
{6E19C6B6-4ADF-4DD6-86CC-6C1624BCDB71}.Release|x86.ActiveCfg = Release|Any CPU
{6E19C6B6-4ADF-4DD6-86CC-6C1624BCDB71}.Release|x86.Build.0 = Release|Any CPU
{62B929C4-3D15-4D43-AEFC-2D0BD3CFC20D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{62B929C4-3D15-4D43-AEFC-2D0BD3CFC20D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{62B929C4-3D15-4D43-AEFC-2D0BD3CFC20D}.Debug|x64.ActiveCfg = Debug|Any CPU
{62B929C4-3D15-4D43-AEFC-2D0BD3CFC20D}.Debug|x64.Build.0 = Debug|Any CPU
{62B929C4-3D15-4D43-AEFC-2D0BD3CFC20D}.Debug|x86.ActiveCfg = Debug|Any CPU
{62B929C4-3D15-4D43-AEFC-2D0BD3CFC20D}.Debug|x86.Build.0 = Debug|Any CPU
{62B929C4-3D15-4D43-AEFC-2D0BD3CFC20D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{62B929C4-3D15-4D43-AEFC-2D0BD3CFC20D}.Release|Any CPU.Build.0 = Release|Any CPU
{62B929C4-3D15-4D43-AEFC-2D0BD3CFC20D}.Release|x64.ActiveCfg = Release|Any CPU
{62B929C4-3D15-4D43-AEFC-2D0BD3CFC20D}.Release|x64.Build.0 = Release|Any CPU
{62B929C4-3D15-4D43-AEFC-2D0BD3CFC20D}.Release|x86.ActiveCfg = Release|Any CPU
{62B929C4-3D15-4D43-AEFC-2D0BD3CFC20D}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net472;netcoreapp2.1</TargetFrameworks>
<LangVersion>preview</LangVersion>
<ExcludeFromSourceBuild>false</ExcludeFromSourceBuild>

<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>

<Description>Common toolset for building shared frameworks and framework packs.</Description>
<PackageType>MSBuildSdk</PackageType>

<EnableDefaultNoneItems>false</EnableDefaultNoneItems>
<EnableGeneratedPackageContent>false</EnableGeneratedPackageContent>
<NoWarn>$(NoWarn);3021;NU5105</NoWarn>

<DefaultItemExcludes Condition="'$(TargetFramework)' != 'net472'">**/*.Desktop.*</DefaultItemExcludes>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="$(MicrosoftBuildTasksCoreVersion)" />
<PackageReference Include="Microsoft.Build" Version="$(MicrosoftBuildVersion)" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="$(MicrosoftExtensionsDependencyModelVersion)" />
<PackageReference Include="NuGet.Packaging" Version="$(NuGetVersion)" />
<PackageReference Include="NuGet.ProjectModel" Version="$(NuGetVersion)" />
<PackageReference Include="NuGet.Versioning" Version="$(NuGetVersion)" />
</ItemGroup>

<ItemGroup>
<None Include="sdk/**/*.*" Pack="true">
<PackagePath>sdk/%(RecursiveDir)%(Filename)%(Extension)</PackagePath>
</None>
<None Include="targets/**/*.*" Pack="true">
<PackagePath>targets/%(RecursiveDir)%(Filename)%(Extension)</PackagePath>
</None>
</ItemGroup>

<ItemGroup>
<Compile Include="..\Common\AssemblyResolution.cs" Link="src\AssemblyResolution.cs" />
</ItemGroup>

<Import Project="$(RepoRoot)eng\BuildTask.targets" />
</Project>
29 changes: 29 additions & 0 deletions src/Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk

Common toolset for building shared frameworks and framework packs. Handles
projects with extensions:

* `depproj`
* Restores dependencies and run crossgen.
* `pkgproj`
* Generates NuGet packages and various installers: Windows `msi`, macOS `pkg`,
Debian packages, RPM packages, and the `tar.gz` and `zip` archives.
* `sfxproj`
* Generates the shared framework ("runtime") itself, its installers, and its
compressed archives.
* `bundleproj`
* Generates bundle installers: Windows `exe`.
* There is a macOS bundle `pkg`, however it is not produced by this package as
of writing.

Framework packs are targeting packs, apphost packs, and runtime packs. See the
design at https://github.com/dotnet/designs/pull/50.

This package is a migration of tooling previously living in the
[Core-Setup](https://github.com/dotnet/core-setup) repository, without any
significant improvements.
[arcade#2704](https://github.com/dotnet/arcade/issues/2704) tracks improving it
to the point where it's reasonable to onboard new repos.

This package depends on `Microsoft.DotNet.Build.Tasks.Packaging` for NuGet
package creation and validation tooling.
26 changes: 26 additions & 0 deletions src/Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk/sdk/Sdk.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<Project>

<!--
Like the Arcade SDK, this SDK doesn't import its dependencies here like a typical SDK would.
Rather, the repo must import the Arcade SDK and the Arcade SDK's dependencies.

See https://github.com/dotnet/arcade/blob/238f1bbb23ba67616818d0b242c5b55a18edec55/Documentation/ArcadeSdk.md#directorybuildprops
-->

<PropertyGroup Condition="'$(DotNetBuildTasksSharedFrameworkTaskDir)' == ''">
<DotNetBuildTasksSharedFrameworkTaskDir Condition="'$(MSBuildRuntimeType)' == 'core'">$(MSBuildThisFileDirectory)../tools/netcoreapp2.1/</DotNetBuildTasksSharedFrameworkTaskDir>
<DotNetBuildTasksSharedFrameworkTaskDir Condition="'$(MSBuildRuntimeType)' != 'core'">$(MSBuildThisFileDirectory)../tools/net472/</DotNetBuildTasksSharedFrameworkTaskDir>
</PropertyGroup>

<PropertyGroup>
<DotNetBuildTasksSharedFrameworkTaskFile>$(DotNetBuildTasksSharedFrameworkTaskDir)Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk.dll</DotNetBuildTasksSharedFrameworkTaskFile>
</PropertyGroup>

<!-- Allow setting a property to use targets from a development dir for faster iteration. -->
<PropertyGroup>
<DotNetBuildTasksSharedFrameworkMSBuildDir Condition="'$(DotNetBuildTasksSharedFrameworkMSBuildDir)' == ''">$(MSBuildThisFileDirectory)..\targets\</DotNetBuildTasksSharedFrameworkMSBuildDir>
</PropertyGroup>

<Import Project="$(DotNetBuildTasksSharedFrameworkMSBuildDir)packaging-tools.props" />

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project>

<!--
Like the Arcade SDK, this SDK doesn't import its dependencies here like a typical SDK would.
Rather, the repo must import the Arcade SDK and the Arcade SDK's dependencies.

See https://github.com/dotnet/arcade/blob/238f1bbb23ba67616818d0b242c5b55a18edec55/Documentation/ArcadeSdk.md#directorybuildprops
-->

<Import Project="$(DotNetBuildTasksSharedFrameworkMSBuildDir)packaging-tools.targets" />

</Project>
Loading