I am using .NET Standard Framework 4.7.2 for a simple console application, is there a way to output all the necessary refernenced dlls from the .NET Framework to the output folder so the user don't have to install the .NET Runtime on their machine
CodePudding user response:
.NET 4.7.2? Out-of-the box? No.
But you can do this with .NET 6.
Here's a sample project file that specifies single file publishing:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>true</SelfContained>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<PublishReadyToRun>true</PublishReadyToRun>
</PropertyGroup>
</Project>
CodePudding user response:
try this:
https://www.dependencywalker.com/
but yeah they should just install the framework.