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

Installation not working with .net core 3+ #101

Closed
bsweb opened this issue Nov 17, 2020 · 1 comment
Closed

Installation not working with .net core 3+ #101

bsweb opened this issue Nov 17, 2020 · 1 comment

Comments

@bsweb
Copy link

bsweb commented Nov 17, 2020

Hi,

Unfortunately the instructions for .net core don't work with 3+. This is installed on a blank .net core MVC web project.

In the startup.cs you get the error
'RazorViewEngineOptions' does not contain a definition for 'FileProviders'

On changing it to MvcRazorRuntimeCompilationOptions for .net core 3+ it works but you then need Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation package

Then when you run it you get "The partial view 'FormFactory/Form.Property' was not found."

If you then install the FormTemplate package you get swamped with files in the root of the project (as per issue #98) and the following error:

'DateAttribute' is a type, which is not valid in the given context C\packages\formfactory.templates\5.0.71\contentFiles\any\netstandard1.6\Cell.System.DateTime.cshtml

Cheers

@mcintyre321
Copy link
Owner

Hi! I've updated the FormFactory.AspNetCore.Example project to aspnetcore 5, compare your Startup.cs with the one on there.

The templates project seems completely messed up, the file paths get lost somewhere along the way.

I'm thinking that it may be possible to ditch the MVC projects in the near future, and just use FormFactory.Standalone ...

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