-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
chore: Modify csproj-based project build logics #3235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
filzrev
wants to merge
8
commits into
dotnet:master
Choose a base branch
from
filzrev:chore-fix-double-write-issue
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8939795
feat: add custom props/targets to customize project build
filzrev 700a5d3
chore: add validation for net8 sdk as minimum requirements
filzrev f2c32f5
chore: modify build logics
filzrev cab8dc6
chore: add NETSDK1085 error ignore setting
filzrev 7e64641
chore: increase wasm related tests timeouts for macos(x64)
filzrev 319690f
chore: re-add DllGatherer steps and modify related build logics
filzrev 7f18102
chore: re-enable NETSDK1152 error suppression for wasm project
filzrev 75973bf
chore: increase timeout for WakeLockTests
filzrev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #if NETSTANDARD2_0 | ||
| using System.Xml.Linq; | ||
|
|
||
| namespace BenchmarkDotNet.Extensions; | ||
|
|
||
| internal static class XDocumentExtensions | ||
| { | ||
| /// <summary> | ||
| /// Helper extension method for netstandard2.0. | ||
| /// It provides an API `SaveAsync`, but the actual processing is performed synchronously. | ||
| /// </summary> | ||
| public static async ValueTask SaveAsync(this XDocument doc, Stream stream, SaveOptions options, CancellationToken cancellationToken) | ||
| { | ||
| doc.Save(stream, options); | ||
| } | ||
| } | ||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/BenchmarkDotNet/Templates/BenchmarkDotNet.Build.props.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <Project> | ||
| <!-- Define properties for DllGatherer.csproj. --> | ||
| <PropertyGroup Condition="'$(MSBuildProjectFile)' == '$DLLGATHERER_PROJ$'"> | ||
| </PropertyGroup> | ||
|
|
||
| <!-- Define properties for BenchmarkDotNet.Autogenerated.csproj. --> | ||
| <PropertyGroup Condition="'$(MSBuildProjectFile)' == '$AUTOGENERATED_PROJ$'"> | ||
| <OutputPath>$OUTPUT_PATH$</OutputPath> | ||
| <PublishDir>$PUBLISH_DIR$</PublishDir> | ||
| </PropertyGroup> | ||
| </Project> |
9 changes: 9 additions & 0 deletions
9
src/BenchmarkDotNet/Templates/BenchmarkDotNet.Build.targets.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| <Project> | ||
| <!-- Custom MSBuild target for DllGatherer. --> | ||
| <Target Name="BdnWriteOutputPath" Condition="'$(MSBuildProjectFile)' == '$DLLGATHERER_PROJ$'" AfterTargets="Build"> | ||
| <WriteLinesToFile | ||
| File="$(MSBuildThisFileDirectory)DllGatherer.txt" | ||
| Lines="$(OutputPath)" | ||
| Overwrite="true" /> | ||
| </Target> | ||
| </Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.