Skip to content

use .slnf instead of patch files for source build - #1489

Merged
jonsequitur merged 12 commits into
dotnet:mainfrom
jonsequitur:sourcebuild-fixes
Dec 11, 2021
Merged

jonsequitur merged 12 commits into
dotnet:mainfrom
jonsequitur:sourcebuild-fixes

Conversation

@jonsequitur

@jonsequitur jonsequitur commented Nov 28, 2021 •

Copy link
Copy Markdown
Contributor

Remove patch files and use .slnf to specify projects for source build.

@jonsequitur
jonsequitur marked this pull request as ready for review December 10, 2021 20:55
Comment thread sourcebuild.slnf Outdated
"projects": [
"src\\System.CommandLine\\System.CommandLine.csproj",
"src\\System.CommandLine.DragonFruit\\System.CommandLine.DragonFruit.csproj",
"src\\System.CommandLine.DragonFruit\\System.CommandLine.NamingConventionBinder.csproj",

@MichaelSimons MichaelSimons Dec 10, 2021 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"src\\System.CommandLine.DragonFruit\\System.CommandLine.NamingConventionBinder.csproj",
"src\\System.CommandLine.NamingConventionBinder\\System.CommandLine.NamingConventionBinder.csproj",

@jonsequitur jonsequitur changed the title remove SourceBuild patch file for .sln use .slnf instead of patch files for source build Dec 10, 2021
@jonsequitur
jonsequitur requested a review from omajid December 10, 2021 23:14
@jonsequitur
jonsequitur merged commit 13051d9 into dotnet:main Dec 11, 2021
</PropertyGroup>

<PropertyGroup>
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just exclude this project from the slnf?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is excluded from the .slnf. This is vestigial.

<NewtonsoftJsonVersion>9.0.1</NewtonsoftJsonVersion>
<SystemNetHttpVersion>4.3.1</SystemNetHttpVersion>
- </PropertyGroup> -->
+ <MicrosoftExtensionsHostingPackageVersion Condition="'$(MicrosoftExtensionsHostingPackageVersion)' == ''">2.2.0</MicrosoftExtensionsHostingPackageVersion>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you verified the removal of this patch and others aren't going to introduce prebuilts? They were added for a reason.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My mistake. My impression was that the .slnf approach was a replacement for the patch files.

To make this easier going forward, if patches are needed, I would prefer we add:

  • a way to reproduce them easily so that contributors unfamiliar with the process don't get blocked or update them incorrectly, and
  • an automated test that verifies that they're producing exactly what's expected.

I'm also not clear on the reasons why some packages are included and others aren't.

@omajid, any insights here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went ahead and pulled this commit and performed a full source-build to verify no prebuilts were introduced. Everything built cleanly although there was an api change affecting runtime.

The goal is to eliminate all source-build patches. Any changes necessary for source-build should be part of the product. We are also working to catch as many issues as possible in the source-build leg of the repo builds. The last big remaining work is to enable prebuilt detection. This was something we wanted to get in for 6.0 but couldn't fit it in so it will happen in the 7.0 timeframe. Once this is complete the dev UX for source-build should be much better. Thanks for your patience and thank you Jon for integrating the patches here and removed the unneeded ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants