Skip to content

Commit e9b0511

Browse files
authored
Update and rename SourceBuild.props to DotNetBuild.props (#2541)
* Update and rename SourceBuild.props to DotNetBuild.props * Remove extra newline in DotNetBuild.props * Update to new controls * Move stuff out of DotNetBuild.props * fix line endings
1 parent eb0ff63 commit e9b0511

File tree

4 files changed

+19
-24
lines changed

4 files changed

+19
-24
lines changed

Directory.Build.props

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@
1010
<LangVersion>10.0</LangVersion>
1111
</PropertyGroup>
1212

13-
<PropertyGroup Condition="'$(DotNetBuildFromSource)' == 'true' or '$(DotNetBuildSourceOnly)' == 'true'">
14-
<TargetFrameworkForNETSDK>$(NetCurrent)</TargetFrameworkForNETSDK>
15-
</PropertyGroup>
16-
17-
<PropertyGroup Condition="'$(DotNetBuildFromSource)' != 'true' and '$(DotNetBuildSourceOnly)' != 'true'">
18-
<TargetFrameworkForNETSDK>net8.0</TargetFrameworkForNETSDK>
13+
<PropertyGroup>
14+
<TargetFrameworkForNETSDK Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(NetCurrent)</TargetFrameworkForNETSDK>
15+
<TargetFrameworkForNETSDK Condition="'$(DotNetBuildSourceOnly)' != 'true'">net8.0</TargetFrameworkForNETSDK>
1916
</PropertyGroup>
2017

2118
</Project>

eng/Build.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project>
2+
3+
<ItemGroup Condition="'$(DotNetBuildSourceOnly)' == 'true'">
4+
<ProjectToBuild Include="$(RepoRoot)sourcebuild.slnf" />
5+
</ItemGroup>
6+
7+
</Project>

eng/DotNetBuild.props

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- When altering this file, include @dotnet/product-construction as a reviewer. -->
2+
<Project>
3+
4+
<PropertyGroup>
5+
<GitHubRepositoryName>command-line-api</GitHubRepositoryName>
6+
<SourceBuildManagedOnly>true</SourceBuildManagedOnly>
7+
</PropertyGroup>
8+
9+
</Project>

eng/SourceBuild.props

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)