A utility script for building a VLC redistribution NuGet package.
On the command line, type
build.bat [version=3.0.8]
where version
defaults to 3.0.8
and refers to the VCL version you want to package.
The script then downloads, unzips and packages the VLC distribution from the official VLC download site.
You should have the following tools on the command line
Installing the package using
Install-Package VLC.Native
adds the file VlcConfiguration.cs
to your project.
NOTE: The VLC dependency package is quite big (~320MB, 166 MB each for x86/x64), so when using VLC.Native
together with Continuous Testing Tools (e.g. NCrunch) you may consider disabling the large footprint of the native VLC dependencies by setting
<PropertyGroup>
<!-- set to anything different than '', e.g. 1 -->
<DisableVlcNative>$(NCrunch)</DisableVlcNative>
</PropertyGroup>
Here we used NCrunch-specific build properties but any value other than ''
will cause VLC.Native
to skip including
the native dependencies as content to your build, c.f.
Have a look at
- nVLC, one of the few good managed wrappers for VLC
- hello.nVLC, a minimal WPF player application