kirsan31 / winforms-datavisualization

System.Windows.Forms.DataVisualization provides charting for WinForms applications.
MIT License
47 stars 19 forks source link

Update project file to target .Net6 AND 7 #18

Closed paul1956 closed 2 years ago

paul1956 commented 2 years ago

I was getting warnings in 1 file with the change to multitargeting, so I fixed the Malformed XML comment and the document it's in

Without this fix having 1 library targeting .Net6 fails if the project targets .net7 and vice versa and pointing at the Dll doesn't work because of $(TargetFramework)

<HintPath>..\..\..\winforms-datavisualization\src\System.Windows.Forms.DataVisualization\bin\$(Configuration)\$(TargetFramework)\System.Windows.Forms.DataVisualization.dll</HintPath>
paul1956 commented 2 years ago

I thought the NuGet needed both as well

kirsan31 commented 2 years ago

I thought the NuGet needed both as well

I mean that the project file will be modified any way.

I've created a preview nuget package (unlisted): https://www.nuget.org/packages/WinForms.DataVisualization/

You can try to test it, if you wish...