-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Update tfms #107
Conversation
src/Parlot/Parlot.csproj
Outdated
@@ -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' "/> |
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.
<PackageReference Include="System.Memory" Condition="'$(TargetFramework)' == 'net462' "/> | |
<PackageReference Include="System.Memory" Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))" /> |
src/Parlot/Parlot.csproj
Outdated
<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'" /> |
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.
<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 |
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 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" /> |
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.
<PackageReference Include="FastExpressionCompiler.Internal.src" PrivateAssets="all" /> | |
<PackageReference Include="FastExpressionCompiler.Internal.src" PrivateAssets="all" /> | |
<PackageReference Include="PolySharp" Version="1.14.1" PrivateAssets="all" /> |
Thanks for the feedback Marko |
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.