Closed foxi69 closed 2 months ago
Could you confirm which .net framework version you're targeting for your application?
.NET Framework 4.7.2 with VS Installer Project... they still don't like each other
https://www.nuget.org/packages/MonoTorrent#dependencies-body-tab
According to nuget the dependency has been specified correctly for net472.
Are you using an SDK style project, or a regular project? If it's a regular one then you might have to add those references manually. They should transitively apply if you have an SDK style project though.
I'll double check later, but at first glance it doesn't look obviously broken
This csproj file resulted in the correct set of files in the output directory, and MonoTorrent works as expected:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net472</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MonoTorrent" Version="3.0.2" />
</ItemGroup>
</Project>
.NET Framework 4.7.2 with VS Installer Project
I'm no expert with the VS Installer project. If it can't cope with regular csproj, then either manually referencing every binary explicitly, or (perhaps?) manually referencing every relevant nuget package, should ensure the correct set of binaries are packaged. From a "NuGet package" perspective, I'm not aware of anything I can do to help in your situation.
If there are package settings/properties i can set to make this work, do let me know though!
I'll close this as the package seems correctly set up. The odds are high the issue lies with the vs installer project, or your usage of it.
Since I updated from version 2.0.7 to 3.0.2, this error #649 has since been solved, but another similar one has appeared before, if I can see correctly, it has been fixed #582, you could not add a similar solution to "System.Runtime.CompilerServices .Unsafe" dependency?