Skip to content

Navigation Menu

Sign in
Sign up

Missing Windows.Imaging namespace #174

Discussion options

Hi! I am getting familiarized with psi using the provided samples. I'm now on the webcam with the audio sample, and I'm unable to include the System.Windows.Media.Imaging namespace and I'm using NET Core 3.1. Does anyone know the solution to this?

You must be logged in to vote

I think the easiest approach will be to recreate the project as a WPF app targeting .NET Framework 4.7.2. That should allow you to include System.Windows.Media.Imaging. The .csproj for the sample should look something like the following at the top:

<Project Sdk="Microsoft.NET.Sdk">
 <PropertyGroup>
 <TargetFramework>net472</TargetFramework>
 <OutputType>WinExe</OutputType>
 ...

Replies: 1 comment 1 reply

Comment options

I think the easiest approach will be to recreate the project as a WPF app targeting .NET Framework 4.7.2. That should allow you to include System.Windows.Media.Imaging. The .csproj for the sample should look something like the following at the top:

<Project Sdk="Microsoft.NET.Sdk">
 <PropertyGroup>
 <TargetFramework>net472</TargetFramework>
 <OutputType>WinExe</OutputType>
 ...
You must be logged in to vote
1 reply
Comment options

Awesome thank you!

Answer selected by jennykim515
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /