#r "nuget:..." fails to load net8-windows only nuget
- Dominant language
- F#
- Stars
- 4.3k
- Forks
- 876
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 144
Description
in FSI:
I believe the temporary `*.fsproj` created by `#r "nuget:..."` should be targeting the current OS.
so `net8.0-windows` instead of just `net8.0`.
Currently, my scripts in [Fesh](https://github.com/goswinr/Fesh) fall back to the `net472` target and report a warning because they can't resolve the `net7.0-windows7.0` target .
`C:\Users\gwins\.packagemanagement\nuget\Projects\1712--947df84f-bc09-48fd-bfc6-6085e18da546\Project.fsproj : warning NU1701: Package 'Fesher 0.3.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net8.0'. This package may not be fully compatible with your project.`
to test just put this in FSI:
```fsharp
#r "nuget: Fesher, 0.3.0"
open Fesher
Printfn.red "red"
```
Contributor guide
Assessment
This issue has not been assessed yet.