Skip to content
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

Update tfms #107

Merged
merged 3 commits into from
May 18, 2024
Merged

Update tfms #107

merged 3 commits into from
May 18, 2024

Conversation

sebastienros
Copy link
Owner

I realized the net8.0 was not correctly setting the feature flags and was not optimized :/
Then thought I could just remove netstandard and add the specific ones since when using netstandard you still need to add an core one (recommendation).

I will definitely change my mind, but for now this is what it is.

@@ -14,16 +14,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Memory" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
<PackageReference Include="System.Collections.Immutable" Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netstandard2.1'" />
<PackageReference Include="System.Memory" Condition="'$(TargetFramework)' == 'net462' "/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
<PackageReference Include="System.Memory" Condition="'$(TargetFramework)' == 'net462' "/>
<PackageReference Include="System.Memory" Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))" />

<PackageReference Include="System.Memory" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
<PackageReference Include="System.Collections.Immutable" Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netstandard2.1'" />
<PackageReference Include="System.Memory" Condition="'$(TargetFramework)' == 'net462' "/>
<PackageReference Include="System.Collections.Immutable" Condition="'$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'net6.0'" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
<PackageReference Include="System.Collections.Immutable" Condition="'$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'net6.0'" />
<PackageReference Include="System.Collections.Immutable" Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))" />

@@ -1,3 +1,3 @@
#if !NET8_0_OR_GREATER
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be always "on" with pre-compiler directives.

should add to csproj:

<PackageReference Include="PolySharp" Version="1.14.1" PrivateAssets="all" />

then remove files IsExternalInit.cs and SkiptLocalsInitAttribute.cs

<PackageReference Include="System.Memory" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
<PackageReference Include="System.Collections.Immutable" Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netstandard2.1'" />
<PackageReference Include="System.Memory" Condition="'$(TargetFramework)' == 'net462' "/>
<PackageReference Include="System.Collections.Immutable" Condition="'$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'net6.0'" />
<PackageReference Include="FastExpressionCompiler.Internal.src" PrivateAssets="all" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
<PackageReference Include="FastExpressionCompiler.Internal.src" PrivateAssets="all" />
<PackageReference Include="FastExpressionCompiler.Internal.src" PrivateAssets="all" />
<PackageReference Include="PolySharp" Version="1.14.1" PrivateAssets="all" />

@sebastienros
Copy link
Owner Author

Thanks for the feedback Marko

@sebastienros sebastienros merged commit ebe4c46 into main May 18, 2024
1 check passed
@sebastienros sebastienros deleted the sebros/tfms branch May 18, 2024 23:24
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