Could someone explain how to configure nhibernate5.1 in dotnet core 2.0 project - nhibernate

As nhibernate5.1 supports dotnet core2.0, we are trying to use nhibernate 5.1 in our dotnet core 2.0 api project. Don't find any documentation on how to configure nhibernate5.1 in dotnet core 2.0 project. Could someone guide me on the same.

NHibernate GitHub repository has a minimal web (not API) application example showing how to use it with .Net Core. See here.

Related

What is difference between AbpCoreEf6Sample.Tests and AbpCoreEf6Sample.Web.Tests in test folder?

I'm confused, why there are two test projects in ASP.NET Boilerplate project? Which one is more suitable for writing API integration test in an application?
Versions:
ASP.NET Boilerplate 7.1
.NET Core 6.0
I read documentation of ABP and GitHub issues, but still don't understand.

How to create a ASP.NET Core Project in VB.NET language using dotnet cli command?

I have migrated the project from Dot.Net-Framework 4.7.2 to Asp.Net-Core 3.1 with VB.NET language. I have checked in Microsoft link below, there is no CLI Command for VB.NET in Asp.Net Core templates. They mentioned only C# language for ASP.NET Core
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-new
Kindly let me know if there is any way to create a ASP.NET Core Project in "VB.NET"
As far as I know, asp.net core couldn't create the MVC vb.net project. You could use dotnet new --list to see the result:
Besides, according to this github issue, ASP.NET Core Doesn't provide a razor syntax that supports VB.NET.
The workaround is using the custom library like Vazor and ZML to design MVC views and Razor Pages.
More details, you could refer to this github issue.
This question is a bit older, to be sure, but the good news is that today there IS a way to build ASP.NET Core applications in VB.NET.
For the past few days I've been working with Vazor, found here and here. I've found it to be remarkable. It's a very clever solution to a long-standing problem.
The author also has plans to enable Blazor apps in VB.NET projects.

It's very confusing.. I was creating .net core web application and can see .NetFramework with .NetCore support

I was creating .net core web application and can see .NetFramework with .NetCore support. But I didn't choose .Net Standard. I don't understand. Please see the image asp.net core web application
This is Microsoft naming at work here. 😁 There are two dotnet frameworks: the "full" framework, which you selected, and the dotnet core framework.
Before dotnet core and all it's optimized, multiplatform goodness, there was the dotnet framework (refered to as the legacy or full framework). This is the predecessor of dotnet core. This full framework runs only on Windows and the computer it runs on needs the dotnet framework runtime.
Do not worry, the "full" in full framework comes from the transition period between the old dotnet framework and dotnet core. When dotnet core was version 1.0, it did not have all the functionality of today. So some developers called it the full framework (which had everything you needed to run your application) and the newer dotnet core framework which had only the basics.
You can see if you are running the legacy framework if there is the <TargetFramework>netXXX</TargetFramework> present in your solution/project file. The lastest version of the full dotnet framework is 4.8 (net48).
After that it switched to dotnet core 1.0 - 3.1. I'm not entirely sure how that's referenced in the solution/project files.
As a last remark, Microsoft had a great naming idea: the next version of dotnet core is named dotnet 5. They want to get back to the original name with this next version. Do keep in mind that you cannot easily upgrade from dotnet 4.X to dotnet 5. The day to day code looks very much alike, but the underlying engine is completely rewritten.
As far as I know, before .net core 3.0, asp.net core is support on .net framework. This is the reason why you could create .net core 2.1 on the .net framework.
But after 3.0, asp.net core not support .net framework. You could only create it on .net core framework.
More details, you could refer to this article and this github issue.

Swashbuckle aspnet core 2.0 Swaggerconfig.cs not created

I'm trying to install Swashbuckle to my web api in aspnet core 2.0. Reading all over google about how to set it up it's written about the SwaggerConfig.cs under the App_Start-folder.
But when I install it never gets created?? Where is it?
All I can do is setting up the basics in Start.cs, and it's just some basics? Where is the SwaggerConfig.cs ?
There are two versions of swashbuckle:
https://github.com/domaindrivendev/Swashbuckle
https://github.com/domaindrivendev/Swashbuckle.AspNetCore
There is no SwaggerConfig file on the AspNetCore version.
Your configuration goes on the Startup.cs:
Swashbuckle.AspNetCore/blob/master/README.md#getting-started

How can I use webpack in .net core 2.0 by nuget?

I have learned asp.net yet.What's more I am also a beginner of .net core and webpack.Now I am tring to use webpack in .net core.
I downloaded the webpack by nuget like this:
But I don't konw how to continue to configure it.I tried to follow the tutorial as https://webpack.github.io/docs/tutorials/getting-started/
However,the tutorial is using nodejs.
I searched about "Setting up Webpack in ASP.NET Core" in google.Whereas,all of them are build by NPM,but not nuget.
I wonder if there is a way to build it by nuget?Would you like to teach me or give me a tutorial about this?Thank you.