Skip to content

Commit 0ba6470

Browse files
committed
Write out the aspnetcore_base_runtime.version file
1 parent cd60089 commit 0ba6470

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

eng/Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
$(RepoRoot)src\Framework\App.Ref.Internal\src\Microsoft.AspNetCore.App.Ref.Internal.csproj;
151151
$(RepoRoot)src\Framework\App.Runtime\src\aspnetcore-runtime.proj;
152152
$(RepoRoot)src\Framework\App.Runtime\src\aspnetcore-runtime-composite.proj;
153+
$(RepoRoot)src\Framework\App.Runtime\src\aspnetcore-base-runtime.proj;
153154
$(RepoRoot)src\Framework\AspNetCoreAnalyzers\test\Microsoft.AspNetCore.App.Analyzers.Test.csproj;
154155
$(RepoRoot)src\Framework\test\Microsoft.AspNetCore.App.UnitTests.csproj;
155156
$(RepoRoot)src\Caching\**\*.*proj;

global.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.24531.2",
3131
"Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.24531.2",
3232
"Microsoft.DotNet.SharedFramework.Sdk" : "10.0.0-beta.24531.2",
33+
"Microsoft.Build.NoTargets": "3.7.0",
3334
"Microsoft.Build.Traversal": "3.4.0"
3435
}
3536
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<Project Sdk="Microsoft.Build.NoTargets">
2+
<PropertyGroup>
3+
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
4+
<!-- This file is used by the dotnet/sdk repo to determine if the version of AspNetCore.App is coherent with Microsoft.NETCore.App. -->
5+
<BaseRuntimeVersionFileName>aspnetcore_base_runtime.version</BaseRuntimeVersionFileName>
6+
<BaseRuntimeVersionFileOutputPath>$(InstallersOutputPath)$(BaseRuntimeVersionFileName)</BaseRuntimeVersionFileOutputPath>
7+
<!--
8+
This version file is required by source-build.
9+
-->
10+
<ExcludeFromSourceOnlyBuild>false</ExcludeFromSourceOnlyBuild>
11+
</PropertyGroup>
12+
13+
<Target Name="WriteBaseRuntimeVersionFile" AfterTargets="Build">
14+
<WriteLinesToFile File="$(BaseRuntimeVersionFileOutputPath)"
15+
Lines="$(MicrosoftNETCoreAppRuntimeVersion)"
16+
Overwrite="true" />
17+
</Target>
18+
</Project>

0 commit comments

Comments
 (0)