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

QuestPDF.Previewer 2024.3.0-rc and .NET8 - can't install package #833

Open
ZANZAAA opened this issue Apr 6, 2024 · 2 comments
Open

QuestPDF.Previewer 2024.3.0-rc and .NET8 - can't install package #833

ZANZAAA opened this issue Apr 6, 2024 · 2 comments

Comments

@ZANZAAA
Copy link

ZANZAAA commented Apr 6, 2024

Impossible to install the package QuestPDF.Previewer 2024.3.0-rc in any project targeting donet8.0

image

To Reproduce
Tested on VS2022 Version 17.8.6
ConsoleApp, Razor App, Blazor Web App

donet8 seems to be supported based on https://www.nuget.org/packages/QuestPDF.Previewer/2024.3.0-rc#supportedframeworks-body-tab

@scottjohnstone
Copy link

Instead of using nuget package manager like you do with QuestPDF, you must use

dotnet tool install QuestPDF.Previewer --global 

for QuestPDF.Previewer.

As further information, when I attempt to use Nuget package manager to install, I get the same result on 2024.3.0 using OOB ASP.NET Core MVC project (no config):

Severity	Code	Description	Project	File	Line	Suppression State
Error	NU1202	Package QuestPDF.Previewer 2024.3.0 is not compatible with net8.0 (.NETCoreApp,Version=v8.0). Package QuestPDF.Previewer 2024.3.0 supports: net8.0 (.NETCoreApp,Version=v8.0) / any	WebApplication1	C:\source\repos\WebApplication1\WebApplication1\WebApplication1.csproj	1	

.NET 6 and 8 is installed:
image
image

Attempt to install via nuget package manager fail if the project is set to .NET 6, .NET 8, or multitarget .NET 6 and .NET 8.

@MarcinZiabek
Copy link
Member

Indeed, the QuestPDF.Previewer application should be installed as a global dotnet tool, rather than as a dependency in your project.

@scottjohnstone You are right 😄 This is a correct way of installation:

dotnet tool install QuestPDF.Previewer --global 

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

3 participants