In a previous blog post, I wrote about how to access webcam properties from C# using DirectShow.Net. The last release of the library is version 2.1 from February 2010, with project files for Visual Studio 2008.

Fortunately, porting the project to compile for .NET 5 went pretty quick.

The project file

<Project Sdk="Microsoft.NET.Sdk">



Things to note:

  • The target framework is net5.0-**windows** because the code (obviously) uses Windows-specific features.
  • I added <GenerateAssemblyInfo>false<GenerateAssemblyInfo> to use the AssemblyInfo.cs file that came with the original project.

#dotnet #dotnet 5 #directshowdotnet

Compiling DirectShow.Net for use in .NET 5
1.60 GEEK