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

RenderViewToString HostBuilder setup #56

Open
genifycom opened this issue May 1, 2020 · 1 comment
Open

RenderViewToString HostBuilder setup #56

genifycom opened this issue May 1, 2020 · 1 comment

Comments

@genifycom
Copy link

I am trying to get the renderviewtostring sample working in DotNet Core 3.1 in a console application i.e. running Razor standalone.

The first statement in Main gives
'HostBuilder' does not contain a definition for 'ConfigureWebHost' ...

What is the correct setup for this sample in DotNet Core 3.1 ?

Thanks

@genifycom
Copy link
Author

I have these package references:

<PackageReference Include="Microsoft.AspNetCore.Hosting" Version="2.2.7" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.3" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="3.1.3" />
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="3.1.3" />

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

1 participant