FormFactory icon indicating copy to clipboard operation
FormFactory copied to clipboard

EmbeddedFileProvider code example not compiling with .Net core 2.1

Open Cannedfood opened this issue 6 years ago • 1 comments

With .Net core 2.1 the code in FormFactory.AspNetCore.Example/Startup.cs line 36 and 60 does not compile.

The EmbeddedFileProvider has to be created like this:

new EmbeddedFileProvider(typeof(FormFactory.FF).Assembly, nameof(FormFactory));

Maybe the example should be updated or the lines should be commented ("// For .Net core use bla")?

Cannedfood avatar Mar 07 '19 09:03 Cannedfood

Cheers - I don't have a lot of time to work on FF, but I'd be very happy to merge a PR updating it all to a newer version of .NET Core

On Thu, 7 Mar 2019 at 09:10, Benno Straub [email protected] wrote:

With .Net core 2.1 the code in FormFactory.AspNetCore.Example/Startup.cs line 36 and 60 does not compile.

The EmbeddedFileProvider has to be created like this:

new EmbeddedFileProvider(typeof(FormFactory.FF).Assembly, nameof(FormFactory));

Maybe the example should be updated or the lines should be commented ("// For .Net core use bla")?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mcintyre321/FormFactory/issues/78, or mute the thread https://github.com/notifications/unsubscribe-auth/AAQ0-gG9Dmotl8u0vjUo-bgBDPze2MZNks5vUNeBgaJpZM4bisTm .

mcintyre321 avatar Mar 07 '19 09:03 mcintyre321