aardvark-platform / aardvark.rendering

Aardvark.Rendering is a high-performance, dependency-aware rendering engine. It is part of the open-source Aardvark Platform for visual computing, real-time graphics, and visualization.
https://aardvarkians.com/
Other
131 stars 13 forks source link

.Net Framework projects referencing .Net Core projects do not copy transitive dependencies to Output directory #43

Closed luithefirst closed 2 years ago

luithefirst commented 5 years ago

Building .Net Framwork projects individual result in the Output directory missing transitive referenced libraries.

One examples is the Demo/FontRendering.fsproj that references Aardvark.Rendering.Text that requires the Unofficial.Typography packages and is missing in the Output.

  1. Clean checkout
  2. Call "build" in command line
  3. Open solution in VS
  4. Change output to Debug
  5. Set "Demo/FontRendering" as Startup Project
  6. Run -> System.IO.FileNotFoundException: "Could not load file or assembly Unofficial.Typography..."

According to Hanselman this can be resolved by adding `

PackageReference

` to the project file or changing the Nuget configuration, but this does not work. In his case he is also using a c# project and not f#.

I currently fixed that by adding the Unofficial.Typography, Unofficial.LibTessDotNet, CommonMark.NET and GLSLangSharp packages to the paket.references. However, keeping track of all transitive dependencies would be very tedious, an automatic solution would be better.