-
Notifications
You must be signed in to change notification settings - Fork 44
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
base: master
Are you sure you want to change the base?
Add net6.0 target #134
Conversation
@@ -1,6 +1,6 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<PropertyGroup> | |||
<TargetFrameworks>netstandard2.0;net462</TargetFrameworks> | |||
<TargetFrameworks>netstandard2.0;net462;net6.0</TargetFrameworks> |
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.
do we even need .NET 6?
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.
I tried removing it from netstandard2.0 and IIRC it gave an error about not having the reference.
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 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?
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.
I also upgrade Mono.Cecil to version 0.11.5 which has better dependency tree too. |
Directory.Packages.props
Outdated
@@ -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" /> |
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.
According to the docs sourcelink reference is no longer needed if it is using .NET 8 SDK
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" /> |
498519d
to
1b81c02
Compare
@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 . |
This removes the need for having
Microsoft.CSharp
reference for the NuGet package when consumed from NET 6.0+ project.fixes #145