Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

*.runtimeconfig.json file is not copied from NuGet package

$
0
0

I have a .NET 6 project MyProject which is referencing a NuGet package. The NuGet package contains a MyHost.exe and a MyHost.runtimeconfig.json file.

The problem is that when I publish MyProject the MyHost.runtimeconfig.json is not copied to the output folder.

I've tried <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> and <IncludeAssets>all</IncludeAssets> in PackageReference but it didn't help. There is also a proposed solution with adding *.targets file to NuGet package which looks like a heavy artillery.

Since runtimeconfig.json file is required I would think there should be a straightforward way to have it automatically copied.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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