FFmpegInteropX
FFmpegInteropX copied to clipboard
Adding the FFmpegInteropX.FFmpegUWP NuGet package to UWP app, cause release build failed
Step:
- Add the FFmpegInteropX.FFmpegUWP NuGet package
- Project - Publish- Create App Packages
Microsoft.NetNative.targets(809,5): error : Internal compiler error: MCG0023:UnresolvableAssemblyReference Unresolvable assembly reference 'Assembly(Name=Microsoft.Graphics.Canvas, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime)' found. Please check the references in your build system. A reference is either missing or an assembly is missing an expected type
Hi,
I tried and failed. Can you provide a sample project?
Thanks.
@brabebhin Hi,
I have uploaded a zip file which contains 2 projects. The only difference is FFmpegInteropX dependency(version 0.9.3 and version 1.0.0 are the same).
<PackageReference Include="FFmpegInteropX">
<Version>0.9.3</Version>
</PackageReference>
Project "App" does not work and project "App2" works well.
Updating to latest preview version seems to fix the issue.
Thinking about this. We really do have a dependency on Win2d, because of the BasicVideoEffect. But it is not declared on the NuGet package. Even if the build succeeds with latest preview, at runtime it would sure fail, at least when using BasicVideoEffect. Not sure though why it builds with master branch releases, maybe there are some differences on how .NET Native handles C++/WinRT, compared to C++/CX.
I think most people use this lib with the project reference. But we need to make sure that NuGet works as well. And as long as we include BasicVideoEffect with the lib, we must declare it on the NuGet as well.
Closing this since it is fixed in latest prerelease packages.