This repository was archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Update the S.T.E.W configurations to explicitly target a versioned TFM (nc3.0). #42069
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
faadac4
Update the S.T.E.W configurations to explicitly target a versioned TFM
ahsonkhan 8648cf6
Use custom defined constant like S.T.Json - Building_Inbox_Library
ahsonkhan 563725a
Update config.props to use package config and leave netcoreapp as a b…
ahsonkhan 87b013c
Add back netcoreapp specific config to the src csproj
ahsonkhan 1a7a1eb
Revert "Use custom defined constant like S.T.Json - Building_Inbox_Li…
ahsonkhan 4c58ba9
Remove extra new line.
ahsonkhan 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 |
|---|---|---|
| @@ -1,9 +1,13 @@ | ||
| <Project DefaultTargets="Build"> | ||
| <PropertyGroup> | ||
| <BuildConfigurations> | ||
| netcoreapp; | ||
| <PackageConfigurations> | ||
| netcoreapp3.0; | ||
| netstandard2.1; | ||
| netstandard; | ||
| </PackageConfigurations> | ||
| <BuildConfigurations> | ||
| $(PackageConfigurations); | ||
| netcoreapp; | ||
| </BuildConfigurations> | ||
| </PropertyGroup> | ||
| </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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of the references that S.T.E.W depends on don't have a config for netcoreapp3.0.
System.Diagnostics.DebugSystem.MemorySystem.Runtimeetc.
Should we also add the versioned TFM configs to all those (along side the version-less ones) or do we need to add package configurations here, instead?
corefx/src/System.Diagnostics.Debug/src/Configurations.props
Lines 4 to 5 in bd18c12
corefx/src/System.Memory/src/Configurations.props
Lines 4 to 5 in bd18c12
That's causing the CI failures:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build -allconfigurationssucceeds but targeting individual frameworks (particularly the default - netcoreapp) fails.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This library is inbox as well so you will need a version-less build configuration but you will need to exclude it from the packages configuration so that it targets the latest.
So you do something like:
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion, @safern. That's precisely what I tried next, following precedence of other similar packages like Threading.Channels:
corefx/src/System.Threading.Channels/src/Configurations.props
Lines 2 to 12 in bd18c12
The
netcoreapp3.0package config still causes the failure though. I don't know if its because of contention caused by netstandard2.1 and netcoreapp3.0.Let me retry that to verify.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, that worked! I wasn't updating the
Configurationsproperty in the csproj locally to includenetcoreappwhich is why I was seeing the failure earlier.