has anyone used Spark or Razor view engine with OpenRasta framework?
or any suggestion on the view engine other than the build in WebForms ?
There is Spark and Razor ViewEngine support for OpenRasta available at
https://github.com/openrasta/openrasta-codecs-razor
https://github.com/openrasta/openrasta-codecs-spark
You will probably have to build from source from these locations.
Related
I have a project built in .net framework v4.8 and I have to add support for Cosmos DB to perform CRUD operations. How to achieve that as Microsoft.Azure.DocumentDB package is deprecated now?
Yes, the Nuget package Microsoft.Azure.DocumentDB is deprecated and the Alternate for this is Microsoft.Azure.Cosmos
Please refer Generic CRUD Operations For CosmosDB for more information
There are lots of public guides about creating applications, including the scenario you are describing: https://learn.microsoft.com/azure/cosmos-db/sql/sql-api-dotnet-application
If you already have an application using the V2 SDK (Microsoft.Azure.DocumentDB), you can use the migration guide to migrate it to V3 (Microsoft.Azure.Cosmos): https://learn.microsoft.com/azure/cosmos-db/sql/migrate-dotnet-v3
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.
I'm new to the razor generator. I used razor generator in my mvc4 project and i'm sharing views using this app to my other mvc4 projects.
I added reference of common project to my main project and I'm accessing views but it is throwing error as view not found.
Then I added razor generator in my main project too and then it is working exactly as I want.
Now my issue is that if I'm adding razor generator in my common application then why I need to again add razor generator in my other MVC4 application ?
Bit late for the OP maybe....
Make sure the views are in "Views\Shared".
That was the only way I was able to get my main MVC project to find Razor Generator generated views in my library MVC project.
I want to create a custom control in mvc4 razor view engine which is to be created as a dll
and that dll will be pluggable to another mvc 4 razor projects.
Thanks in advance.
There's a post here on using the Razor File Generator, which addresses the same issue as you have http://blogs.msdn.com/b/davidebb/archive/2010/10/27/turn-your-razor-helpers-into-reusable-libraries.aspx
The project is in codeplex, so you can get the Source Code and the Documentation any any other information from here.
breeze is a great library. Because of project complexity I don't want to use spa template. Is there a way I can use breeze in a regular .net mvc4 project?
We're releasing support for it very soon - directly in ASP.NET MVC and Visual Studio. Stay tuned...!
Absolutely, just start with an empty .net MVC4 project and run the 'base' breeze nuget package ( the one that doesn't say 'sample').