Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Closed Unassigned: Make it possible for a NuGet .NET package to contain some unmanaged DLLs/etc [3429]

$
0
0
Hi,

I'm trying to add some non-managed DLL and other binary files to a project. How can this be done in a proper way? I cannot use the normal "lib\net40" approach since it's not .NET DLLs we are talking about, but rather unmanaged Win32 DLL files.

What I've come up with at the moment is using "content" files but it's just such an incredible hack..
(It works, but only when the user is compiling the app in Debug mode. :-)

If I add similar lines for bin\Release, it works in Release mode also, but the .nupkg file grows to twice the size.

<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>CefSharp.Wpf</id>
<version>$version$</version>
<authors>CefSharp community</authors>
<owners>CefSharp community</owners>
<projectUrl>https://github.com/perlun/cefsharp</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>The CefSharp Chromium-based browser component (WPF version).</description>
<tags>wpf chrome browser</tags>
<copyright>Copyright © 2013 Per Lundberg, Anthony Taranto and others</copyright>
<frameworkAssemblies>
<frameworkAssembly assemblyName="System.ComponentModel.DataAnnotations" />
<frameworkAssembly assemblyName="System.Windows.Browser" targetFramework="sl50" />
<frameworkAssembly assemblyName="System.Windows.Controls" targetFramework="sl50" />
<frameworkAssembly assemblyName="System.Windows.Controls.Navigation" targetFramework="sl50" />
</frameworkAssemblies>
</metadata>
<files>
<!-- CefSharp files -->
<file src="..\Release\CefSharp.dll" target="lib\net40"/>
<file src="..\Release\CefSharp.Wpf.dll" target="lib\net40"/>

<!-- CEF/Chromium files -->
<file src="..\Release\avcodec-54.dll" target="content\bin\Debug"/>
<file src="..\Release\avformat-54.dll" target="content\bin\Debug"/>
<file src="..\Release\avutil-51.dll" target="content\bin\Debug"/>
<file src="..\Release\icudt.dll" target="content\bin\Debug"/>
<file src="..\Release\libcef.dll" target="content\bin\Debug"/>
<file src="..\Release\libcef.dll" target="content\bin\Debug"/>
<file src="..\Release\libEGL.dll" target="content\bin\Debug"/>
<file src="..\Release\libGLESv2.dll" target="content\bin\Debug"/>
<file src="..\Release\devtools_resources.pak" target="content\bin\Debug\devtools_resources.pak"/>

<!-- Only including en-US for now -->
<file src="..\Release\locales\en-US.pak" target="content\bin\Debug\locales"/>
</files>
</package>


Viewing all articles
Browse latest Browse all 7612

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>