diff --git a/build/SharedFx.targets b/build/SharedFx.targets index fd696721b7..9dd5423bf4 100644 --- a/build/SharedFx.targets +++ b/build/SharedFx.targets @@ -13,7 +13,9 @@ <_MetapackageProject Include="$(RepositoryRoot)src\Microsoft.AspNetCore.All\Microsoft.AspNetCore.All.csproj" /> + <_MetapackageProject Include="$(RepositoryRoot)src\runtime.win.Microsoft.AspNetCore.All\runtime.win.Microsoft.AspNetCore.All.csproj" /> <_MetapackageProject Include="$(RepositoryRoot)src\Microsoft.AspNetCore.App\Microsoft.AspNetCore.App.csproj" /> + <_MetapackageProject Include="$(RepositoryRoot)src\runtime.win.Microsoft.AspNetCore.App\runtime.win.Microsoft.AspNetCore.App.csproj" /> <_MetapackageProject Include="$(RepositoryRoot)src\Microsoft.AspNetCore.Analyzers\Microsoft.AspNetCore.Analyzers.csproj" /> @@ -75,6 +77,13 @@ PackageArtifacts="@(PackageArtifact)" ExternalDependencies="@(ExternalDependency)" /> + + + @@ -87,6 +96,15 @@ MetapackageName=Microsoft.AspNetCore.App; MetapackageReferenceType=AppMetapackage; + LockToExactVersions=true; + ProcessRuntimeJson=true + + + + <_MetapackageBuilderProject Include="$(MSBuildProjectFullPath)"> + + MetapackageName=runtime.win.Microsoft.AspNetCore.App; + MetapackageReferenceType=WinAppMetapackage; LockToExactVersions=true @@ -95,6 +113,15 @@ MetapackageName=Microsoft.AspNetCore.All; MetapackageReferenceType=AllMetapackage; + LockToExactVersions=false; + ProcessRuntimeJson=true + + + + <_MetapackageBuilderProject Include="$(MSBuildProjectFullPath)"> + + MetapackageName=runtime.win.Microsoft.AspNetCore.All; + MetapackageReferenceType=WinAllMetapackage; LockToExactVersions=false diff --git a/build/artifacts.props b/build/artifacts.props index 2f56e160f7..90989ec22c 100644 --- a/build/artifacts.props +++ b/build/artifacts.props @@ -6,6 +6,10 @@ false false + + false + + false false @@ -142,7 +146,7 @@ - + @@ -304,6 +308,8 @@ + + diff --git a/src/Microsoft.AspNetCore.All/Microsoft.AspNetCore.All.csproj b/src/Microsoft.AspNetCore.All/Microsoft.AspNetCore.All.csproj index 6df70d6f22..285e42eb7c 100644 --- a/src/Microsoft.AspNetCore.All/Microsoft.AspNetCore.All.csproj +++ b/src/Microsoft.AspNetCore.All/Microsoft.AspNetCore.All.csproj @@ -15,6 +15,7 @@ + diff --git a/src/Microsoft.AspNetCore.All/runtime.json.in b/src/Microsoft.AspNetCore.All/runtime.json.in new file mode 100644 index 0000000000..58bf9bf176 --- /dev/null +++ b/src/Microsoft.AspNetCore.All/runtime.json.in @@ -0,0 +1,9 @@ +{ + "runtimes": { + "win": { + "${METAPACKAGE_ID}": { + "runtime.win.${METAPACKAGE_ID}": "${PACKAGE_VERSION}" + } + } + } +} \ No newline at end of file diff --git a/src/Microsoft.AspNetCore.App/Microsoft.AspNetCore.App.csproj b/src/Microsoft.AspNetCore.App/Microsoft.AspNetCore.App.csproj index d87e940d0c..dba8a26764 100644 --- a/src/Microsoft.AspNetCore.App/Microsoft.AspNetCore.App.csproj +++ b/src/Microsoft.AspNetCore.App/Microsoft.AspNetCore.App.csproj @@ -15,6 +15,7 @@ + diff --git a/src/Microsoft.AspNetCore.App/runtime.json.in b/src/Microsoft.AspNetCore.App/runtime.json.in new file mode 100644 index 0000000000..58bf9bf176 --- /dev/null +++ b/src/Microsoft.AspNetCore.App/runtime.json.in @@ -0,0 +1,9 @@ +{ + "runtimes": { + "win": { + "${METAPACKAGE_ID}": { + "runtime.win.${METAPACKAGE_ID}": "${PACKAGE_VERSION}" + } + } + } +} \ No newline at end of file diff --git a/src/runtime.win.Microsoft.AspNetCore.All/runtime.win.Microsoft.AspNetCore.All.csproj b/src/runtime.win.Microsoft.AspNetCore.All/runtime.win.Microsoft.AspNetCore.All.csproj new file mode 100644 index 0000000000..6345c02e40 --- /dev/null +++ b/src/runtime.win.Microsoft.AspNetCore.All/runtime.win.Microsoft.AspNetCore.All.csproj @@ -0,0 +1,14 @@ + + + + + + false + false + netcoreapp2.1 + aspnetcore + runtime.win.Microsoft.AspNetCore.All + false + + + diff --git a/src/runtime.win.Microsoft.AspNetCore.App/runtime.win.Microsoft.AspNetCore.App.csproj b/src/runtime.win.Microsoft.AspNetCore.App/runtime.win.Microsoft.AspNetCore.App.csproj new file mode 100644 index 0000000000..53c20bb691 --- /dev/null +++ b/src/runtime.win.Microsoft.AspNetCore.App/runtime.win.Microsoft.AspNetCore.App.csproj @@ -0,0 +1,14 @@ + + + + + + false + false + netcoreapp2.1 + aspnetcore + runtime.win.Microsoft.AspNetCore.App + false + + +