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

Add net6.0 target #134

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add net6.0 target #134

wants to merge 3 commits into from

Conversation

lahma
Copy link
Contributor

@lahma lahma commented Sep 27, 2023

This removes the need for having Microsoft.CSharp reference for the NuGet package when consumed from NET 6.0+ project.

fixes #145

@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net462;net6.0</TargetFrameworks>
Copy link
Owner

Choose a reason for hiding this comment

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

do we even need .NET 6?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried removing it from netstandard2.0 and IIRC it gave an error about not having the reference.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This actually comes from Namotion.Reflection.Cecil and its need to call XmlDocs APIs with dynamic type to provide both Cecil types and standard CLR types. Is the Namotion.Reflection.Cecil library actually needed anymore?

Choose a reason for hiding this comment

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

It would be great to have a version without dependency on Microsoft.CSharp or reference a more recent version as 4.3 brings a lot of other legacies. See example from our packages lock file
image

@lahma
Copy link
Contributor Author

lahma commented Apr 25, 2024

I also upgrade Mono.Cecil to version 0.11.5 which has better dependency tree too.

@@ -18,7 +18,7 @@
</ItemGroup>
<ItemGroup>
<GlobalPackageReference Include="GitHubActionsTestLogger" Version="2.3.3" />
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" />
<GlobalPackageReference Include="PolySharp" Version="1.13.2" />
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />

Choose a reason for hiding this comment

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

According to the docs sourcelink reference is no longer needed if it is using .NET 8 SDK

Suggested change
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />

@lahma lahma force-pushed the net60-target branch 3 times, most recently from 498519d to 1b81c02 Compare August 1, 2024 13:44
@lahma
Copy link
Contributor Author

lahma commented Aug 1, 2024

@RicoSuter can we please go forward with this, with this addition I think a new release would be ready that would also fix NSwag upstream issue RicoSuter/NSwag#4842 .

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.

Make Microsoft.CSharp a conditional package based on TFM
4 participants