- ago
I tried to install ScottPlot.WPF without success. There's an error about not finding "https://www.nuget.org/packages/System.Drawing.Common/4.7.2/"

Okay, when I installed Visual Studio 2022 I only included .NET 6.0 (for WL8) and .NET 4.6.2 (for WL6). Is this a problem?

Has anyone else been able to install ScottPlot.WPF successfully? If so, how did you do it?

CODE:
Restoring packages for C:\Users\mehl\Documents\Visual Studio 2022\Projects\WealthLab8\Superticker.Components\Superticker.Components.csproj... GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='ScottPlot.WPF'&semVerLevel=2.0.0 GET <a href="https://api.nuget.org/v3-flatcontainer/scottplot.wpf/index.json" target="_blank">https://api.nuget.org/v3-flatcontainer/scottplot.wpf/index.json</a> NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='ScottPlot.WPF'&semVerLevel=2.0.0 316ms OK <a href="https://api.nuget.org/v3-flatcontainer/scottplot.wpf/index.json" target="_blank">https://api.nuget.org/v3-flatcontainer/scottplot.wpf/index.json</a> 64ms GET <a href="https://api.nuget.org/v3-flatcontainer/scottplot.wpf/4.1.56/scottplot.wpf.4.1.56.nupkg" target="_blank">https://api.nuget.org/v3-flatcontainer/scottplot.wpf/4.1.56/scottplot.wpf.4.1.56.nupkg</a> GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='ScottPlot.WPF'&semVerLevel=2.0.0 NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='ScottPlot.WPF'&semVerLevel=2.0.0 32ms GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='ScottPlot.WPF'&semVerLevel=2.0.0 OK <a href="https://api.nuget.org/v3-flatcontainer/scottplot.wpf/4.1.56/scottplot.wpf.4.1.56.nupkg" target="_blank">https://api.nuget.org/v3-flatcontainer/scottplot.wpf/4.1.56/scottplot.wpf.4.1.56.nupkg</a> 66ms NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='ScottPlot.WPF'&semVerLevel=2.0.0 33ms GET <a href="https://api.nuget.org/v3-flatcontainer/scottplot/index.json" target="_blank">https://api.nuget.org/v3-flatcontainer/scottplot/index.json</a> GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='ScottPlot'&semVerLevel=2.0.0 NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='ScottPlot'&semVerLevel=2.0.0 33ms GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='ScottPlot'&semVerLevel=2.0.0 OK <a href="https://api.nuget.org/v3-flatcontainer/scottplot/index.json" target="_blank">https://api.nuget.org/v3-flatcontainer/scottplot/index.json</a> 65ms GET <a href="https://api.nuget.org/v3-flatcontainer/scottplot/4.1.56/scottplot.4.1.56.nupkg" target="_blank">https://api.nuget.org/v3-flatcontainer/scottplot/4.1.56/scottplot.4.1.56.nupkg</a> NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='ScottPlot'&semVerLevel=2.0.0 40ms GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='ScottPlot'&semVerLevel=2.0.0 NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='ScottPlot'&semVerLevel=2.0.0 27ms OK <a href="https://api.nuget.org/v3-flatcontainer/scottplot/4.1.56/scottplot.4.1.56.nupkg" target="_blank">https://api.nuget.org/v3-flatcontainer/scottplot/4.1.56/scottplot.4.1.56.nupkg</a> 111ms GET <a href="https://api.nuget.org/v3-flatcontainer/system.drawing.common/index.json" target="_blank">https://api.nuget.org/v3-flatcontainer/system.drawing.common/index.json</a> GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='System.Drawing.Common'&semVerLevel=2.0.0 GET <a href="https://api.nuget.org/v3-flatcontainer/system.numerics.vectors/index.json" target="_blank">https://api.nuget.org/v3-flatcontainer/system.numerics.vectors/index.json</a> GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='System.Numerics.Vectors'&semVerLevel=2.0.0 NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='System.Drawing.Common'&semVerLevel=2.0.0 32ms GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='System.Drawing.Common'&semVerLevel=2.0.0 OK <a href="https://api.nuget.org/v3-flatcontainer/system.drawing.common/index.json" target="_blank">https://api.nuget.org/v3-flatcontainer/system.drawing.common/index.json</a> 63ms GET <a href="https://api.nuget.org/v3-flatcontainer/system.drawing.common/4.6.1/system.drawing.common.4.6.1.nupkg" target="_blank">https://api.nuget.org/v3-flatcontainer/system.drawing.common/4.6.1/system.drawing.common.4.6.1.nupkg</a> NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='System.Drawing.Common'&semVerLevel=2.0.0 29ms GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='System.Drawing.Common'&semVerLevel=2.0.0 NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='System.Drawing.Common'&semVerLevel=2.0.0 28ms NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='System.Numerics.Vectors'&semVerLevel=2.0.0 115ms OK <a href="https://api.nuget.org/v3-flatcontainer/system.drawing.common/4.6.1/system.drawing.common.4.6.1.nupkg" target="_blank">https://api.nuget.org/v3-flatcontainer/system.drawing.common/4.6.1/system.drawing.common.4.6.1.nupkg</a> 52ms GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='System.Numerics.Vectors'&semVerLevel=2.0.0 NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='System.Numerics.Vectors'&semVerLevel=2.0.0 29ms GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='System.Numerics.Vectors'&semVerLevel=2.0.0 NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='System.Numerics.Vectors'&semVerLevel=2.0.0 27ms OK <a href="https://api.nuget.org/v3-flatcontainer/system.numerics.vectors/index.json" target="_blank">https://api.nuget.org/v3-flatcontainer/system.numerics.vectors/index.json</a> 249ms GET <a href="https://api.nuget.org/v3-flatcontainer/microsoft.netcore.platforms/index.json" target="_blank">https://api.nuget.org/v3-flatcontainer/microsoft.netcore.platforms/index.json</a> GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='Microsoft.NETCore.Platforms'&semVerLevel=2.0.0 GET <a href="https://api.nuget.org/v3-flatcontainer/microsoft.win32.systemevents/index.json" target="_blank">https://api.nuget.org/v3-flatcontainer/microsoft.win32.systemevents/index.json</a> GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='Microsoft.Win32.SystemEvents'&semVerLevel=2.0.0 NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='Microsoft.NETCore.Platforms'&semVerLevel=2.0.0 27ms GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='Microsoft.NETCore.Platforms'&semVerLevel=2.0.0 NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='Microsoft.Win32.SystemEvents'&semVerLevel=2.0.0 28ms GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='Microsoft.Win32.SystemEvents'&semVerLevel=2.0.0 OK <a href="https://api.nuget.org/v3-flatcontainer/microsoft.netcore.platforms/index.json" target="_blank">https://api.nuget.org/v3-flatcontainer/microsoft.netcore.platforms/index.json</a> 63ms NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='Microsoft.NETCore.Platforms'&semVerLevel=2.0.0 34ms GET <a href="https://api.nuget.org/v3-flatcontainer/microsoft.netcore.platforms/3.0.0/microsoft.netcore.platforms.3.0.0.nupkg" target="_blank">https://api.nuget.org/v3-flatcontainer/microsoft.netcore.platforms/3.0.0/microsoft.netcore.platforms.3.0.0.nupkg</a> GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='Microsoft.NETCore.Platforms'&semVerLevel=2.0.0 NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='Microsoft.Win32.SystemEvents'&semVerLevel=2.0.0 37ms GET <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='Microsoft.Win32.SystemEvents'&semVerLevel=2.0.0 OK <a href="https://api.nuget.org/v3-flatcontainer/microsoft.win32.systemevents/index.json" target="_blank">https://api.nuget.org/v3-flatcontainer/microsoft.win32.systemevents/index.json</a> 78ms GET <a href="https://api.nuget.org/v3-flatcontainer/microsoft.win32.systemevents/4.6.0/microsoft.win32.systemevents.4.6.0.nupkg" target="_blank">https://api.nuget.org/v3-flatcontainer/microsoft.win32.systemevents/4.6.0/microsoft.win32.systemevents.4.6.0.nupkg</a> NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='Microsoft.NETCore.Platforms'&semVerLevel=2.0.0 34ms OK <a href="https://api.nuget.org/v3-flatcontainer/microsoft.netcore.platforms/3.0.0/microsoft.netcore.platforms.3.0.0.nupkg" target="_blank">https://api.nuget.org/v3-flatcontainer/microsoft.netcore.platforms/3.0.0/microsoft.netcore.platforms.3.0.0.nupkg</a> 53ms NotFound <a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='Microsoft.Win32.SystemEvents'&semVerLevel=2.0.0 28ms OK <a href="https://api.nuget.org/v3-flatcontainer/microsoft.win32.systemevents/4.6.0/microsoft.win32.systemevents.4.6.0.nupkg" target="_blank">https://api.nuget.org/v3-flatcontainer/microsoft.win32.systemevents/4.6.0/microsoft.win32.systemevents.4.6.0.nupkg</a> 48ms Failed to retrieve information about 'System.Numerics.Vectors' from remote source '<a href="https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById" target="_blank">https://www.nuget.org/packages/System.Drawing.Common/4.7.2/FindPackagesById</a>()?id='System.Numerics.Vectors'&semVerLevel=2.0.0'. Response status code does not indicate success: 404 (Not Found). Time Elapsed: 00:00:04.3075660 ========== Finished ==========
0
692
Solved
16 Replies

Reply

Bookmark

Sort
- ago
#1
Side note: ScottPlot does not require installation [into WL8], so I corrected the topic title.

Since this isn't a WL8 issue, have you searched or asked on StackOverflow?
0
- ago
#2
QUOTE:
There's an error about not finding "https://www.nuget.org/packages/System.Drawing.Common/4.7.2/"

In the relevant topic below you had success adding it to your assembly, right?
https://www.wealth-lab.com/Discussion/Error-adding-System-Drawing-Common-package-to-custom-extension-6351
0
- ago
#3
Apparently the www.nuget.org/packages/System.Drawing.Common/4.7.2/ file no longer exists on the nuget.org server. It's been replaced by a 6.0.0 version, which the current nuGet package for ScottPlot doesn't recognize. The solution is to download 4.7.2 manually.
0
- ago
#4
I've been trying to resolve references to the items circled in orange below without success. Exactly where on disk do I find these items for .NET 6.0? I tried added a reference to Microsoft.WindowsDesktop.App.WPF but VS won't let me add that directory. Is there a reference URL that explains how to do this? Certainly, there must be but I can't find it. Also the directions for creating a WL extension need to be updated from WL7 to WL8. And that would be a good place to answer this above question.

0
Glitch8
 ( 12.08% )
- ago
#5
Edit your project file and make sure the UseWPF tag is there ...

2
- ago
#6
Adding the UseWPF tag in the .csprog file (Reply# 5) fixed the problem. Thanks! Be sure to include that in the updated directions for creating a WL extension.

QUOTE:
Side note: ScottPlot does not require installation [into WL8],....

That true only if both ScottPlot.dll and ScottPlot.WPF.dll are included in the WL8 distribution; otherwise, the versions won't match. Perhaps both should be included to avoid conflicts.
0
- ago
#7
Okay, I need to add references to:
CODE:
using System.Windows.Controls; using System.Windows.Media;
which are located in the Presentation.Framework.dll So when I try to add that reference I get "Not supported"; see screenshot below. Please tell me what that means?

Also, is there a discussion somewhere which gives some background on what's going on so I don't need to keep asking stupid questions? Keep in mind I've never used WPF before with WL before.
0
- ago
#8
Perhaps I'm in deeper water than I realize. I created the WLScottPlot as a second project in an existing solution. But I can't figure out how to create an *.sln file for it. How does that happen? Perhaps we need a Zoom call to figure all this out. There are too many questions.

Was it a bad idea to add WLScottPlot as a second project to an existing solution? Should I started a separate solution instead?
0
- ago
#9
I need some serious help as can be seen from the screenshot. I need reference locations for:
CODE:
using System.Windows; using System.Windows.Controls; using System.Windows.Media; using WealthLab.WPF;
And everything I've tried has failed. I've even tried creating a totally new solution, but that didn't help. Could someone please tell me where to find locations for each of the above; otherwise, I'm totally stuck. And Visual Studio 2022 doesn't seem to make any suggestions like VS 2019 did.



CODE:
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net6.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> <PlatformTarget>x64</PlatformTarget> <BaseOutputPath>C:\Program Files\Quantacula, LLC\WealthLab 8\</BaseOutputPath> <Title>Wealth-Lab ScottPlot</Title> <UseWPF>true</UseWPF> <Authors>Mark M Mehl</Authors> <Company>Automated Measurement Engineering</Company> <Copyright>Copyright © 2022</Copyright> <Description>Internal Wealth-Lab display window for ScottPlot graphics</Description> <PackageIcon>ScottPlotIcon128.png</PackageIcon> </PropertyGroup> <ItemGroup> <PackageReference Include="ScottPlot.WPF" Version="4.1.57" /> <PackageReference Include="System.Drawing.Common" Version="4.7.2" /> </ItemGroup> <ItemGroup> <None Update="Glyphs\ScottPlotIcon128.png"> <Pack>True</Pack> <PackagePath>\</PackagePath> </None> </ItemGroup> </Project>
0
- ago
#10
I think part of the problem is that the WL8ExtensionDemo install is designed to work with .NET 6.0 (or System.Drawing.Common 6.0.0) but ScottPlot requires System.Drawing.Common 4.7.2, so there's a compatibility problem with mirroring the WL8ExtensionDemo install with the ScottPlot project install. And I don't understand how to work around this version compatibility complication. I'm totally stuck. Any suggestions would be appreciated.

I also don't understand why the WealthLab.WPF reference can't be resolved? VS says "Reference is invalid or unsupported." So if the reference in the WL8 install directory is invalid, from where should I be referencing it?
0
- ago
#11
If you believe that solves your problem, can you simply download an earlier version of ScottPlot from either Nuget or Github and add reference to your project?

https://github.com/ScottPlot/ScottPlot/releases <- source
https://www.nuget.org/api/v2/package/ScottPlot/... <- insert version number here (binary)
0
- ago
#12
No, what I need is a later version of ScottPlot that works solely with .NET 6.0, and not 4.7.2.

But I'm not even sure that's the problem. I can't add WealthLab.WPF either. Why is that? Something is really broken here. Do you have any ideas? Why is the WL install directory of WealthLab.WPF invalid?

I thought starting from scratch and creating a solution solely for ScottPlot would resolve the problem, but it doesn't. Do you see anything wrong with the WLScottPlot.csproj file I posted?

The WL8ExtensionDemo works fine, but that doesn't involve ScottPlot. And honestly, GIT configured WL8ExtensionDemo, not me. But wouldn't my config error show up in the WLScottPlot.csproj file?

ScottPlot runs fine on WL8 without the WPF part. And another poster got the ScottPlot.WPF part to work. So what's the problem? I'm out of ideas? I'm just stuck.
0
- ago
#13
I have deleted this solution, then recreated this solution. I have also uninstalled ScottPlot and reinstalled ScottPlot. But the references to it always fail. I can't figure this out, and the online sources aren't helpful. How do I fix this?

0
- ago
#14
Have you tried asking this on ScottPlot board?
0
- ago
#15
superticker - try this...

In the .csproj file, set the TargetFramework as follows...

<TargetFramework>net6.0-windows</TargetFramework>

And, as noted by Glitch, make sure you include the property...

<UseWpf>true</UseWpf>

Also, for your reference...

https://docs.microsoft.com/en-us/dotnet/core/tools/sdk-errors/netsdk1136
1
Best Answer
- ago
#16
QUOTE:
In the .csproj file, set the TargetFramework as follows...
<TargetFramework>net6.0-windows</TargetFramework>

Interesting. I originally had that set in the original solution, but after I moved it to it's own solution, it was simply set to "net6.0" without the "windows" part. That was a good call. Thanks a million.

The references are now being resolved. I wish someone noticed this back in Reply# 9. There's too many ways to hang yourself here. Now the error message "The reference is invalid or unsupported" makes sense to me if the target wasn't correctly set to Windows.
0

Reply

Bookmark

Sort