Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with target framework moniker #379

Open
AlexeiScherbakov opened this issue Dec 8, 2022 · 4 comments
Open

Problem with target framework moniker #379

AlexeiScherbakov opened this issue Dec 8, 2022 · 4 comments

Comments

@AlexeiScherbakov
Copy link

Recently I detected problem with TargetFrameworkMoniker in RoslynPad. It have only net6.0-windows7 and cannot be used in standard net6.0-windows projects. roslynpad/roslynpad#450

AvalonEdit nuget also has net6.0-windows7 and net5.0-windows7 target framework moniker which will be not consumed by projects with net6.0-windows moniker - they will use netcoreapp3.1. AvalonEdit project itself has correct net6.0-windows target framework moniker, but nuget package has other monikers, why?

@christophwille
Copy link
Member

There are some threads like dotnet/sdk#14553 - I have no idea how to fix this (they claim the TFMs are equivalent). If you come across an actionable thread please let me know.

@christophwille
Copy link
Member

@christophwille
Copy link
Member

Ran a quick test with ILSpy - which is targeting net6.0-windows (see ILSpy.csproj). I cleaned out all bin/obj directories, and then went into C:\Users\YOURUSERNAMEHERE.nuget\packages\avalonedit\6.1.3.50\lib and deleted everything but the net6.0-windows7.0 directory. Then hit Rebuild.

The build works a-ok, and ILSpy.deps.json shows me the following after Build:

      "AvalonEdit/6.1.3.50": {
        "runtime": {
          "lib/net6.0-windows7.0/ICSharpCode.AvalonEdit.dll": {
            "assemblyVersion": "6.1.3.50",
            "fileVersion": "6.1.3.50"
          }

@AlexeiScherbakov
Copy link
Author

Manual installation of RoslynPad and building it later (after nuget cache it inside .nuget directory) also works for me. Something is broken inside VS<->NuGet. Visual Studio simple down't download RoslynPad.Editor.Windows) May be it is only for Visual Studio?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants