Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
49 views

I change some setting and now my project is including the views into a dll file. I have looked over the web.config and debugging setting but I am not sure what happen but now I am seeing this roslyn ...
Jefferson's user avatar
  • 121
1 vote
0 answers
56 views

An interesting one myself and a couple of colleagues have come across on the same project; Since updating to Visual Studio 17.12 (currently on 17.12.4) one or potentially more of my CSHTML razor files ...
m.t.bennett's user avatar
  • 1,319
0 votes
1 answer
78 views

I am trying to learn Razor and Asp.Net, following a couple of courses. I see that this snippet of code should work, but the generated link is empty: <a class="nav-link text-dark" asp-area=...
Alberto's user avatar
  • 525
2 votes
0 answers
193 views

I keep getting Error CS0246 The type or namespace name 'TuitionWaiverModel' could not be found (are you missing a using directive or an assembly reference?) LhuTuitionWaiver D:\OneDrive - ...
Carey's user avatar
  • 21
1 vote
2 answers
3k views

I have an ASP.NET Core 3.x project that is built and deployed using Azure DevOps Pipelines. After upgrading the project to use C# 9.0—but not ASP.NET Core 5.0—my dotnet build (DotNetCoreCLI@2) task ...
Jeremy Caney's user avatar
  • 7,806
4 votes
1 answer
690 views

I am working on generating HTML to send to a PDF generator and discovered this this question on Stackoverflow. It points to Paris Polyzos and his article. Upon implementing the code in .Net Core 3.0,...
Sam Carleton's user avatar
  • 1,420
1 vote
1 answer
424 views

I am trying to use IRazorViewEngine in a console application <Project Sdk="Microsoft.NET.Sdk"> (not <Project Sdk="Microsoft.NET.Sdk.Web">) to render a .cshtml page in memory. I registered ...
Maximilian Ast's user avatar
0 votes
0 answers
40 views

I have encountered an issue in ASP MVC whereby I am attempting to access a View in the admin Area App/Areas/Admin/Account/Manage, however the page sometimes serves the user profile page in the root ...
AranDG's user avatar
  • 406
0 votes
0 answers
188 views

First time ask question here hope sb can help me. Background: I am using Vs2017 creating a c# mvc program with NancyFX based on .NET 4.6 . The program works find but I want to use razor generator to ...
Liu Kyle's user avatar
1 vote
0 answers
462 views

I have an MVC web API project that includes a folder views/forms, and i want to read the view as HTML string including the partial views; this is my code to get the HTML string from the view public ...
Ali Kleit's user avatar
  • 3,779
0 votes
0 answers
266 views

I am have created two projects, where Main is the main project and WebApp as the second one. I am using RazorGenerator to call the Areas in my WebApp from Main. I can access ~/Test/Default/Index of ...
Serene's user avatar
  • 3
0 votes
0 answers
127 views

I'm creating a nuget package for my open source project and I've run into an issue that I'd like someone to help me with. My project is depending on a package called RazorGenerator.Mvc. This is a ...
Morten Salte's user avatar
0 votes
1 answer
47 views

In relation to my previous question, I want to set the returned List<Class1> listClass in my .cshtml file. However, I cannot create the following code in the .cshtml file since it does not ...
Sohlae's user avatar
  • 800
2 votes
2 answers
693 views

I want to create a application in which if there is Ajax call it return Partial view and if it is a page refresh it return with layout and render script. But the problem is partial view won't render ...
Sombir Kumar's user avatar
  • 1,891
-1 votes
1 answer
1k views

There is a mvc application, in which I am trying to modify in pre-compiled CSHTML page(Index.cshtml) @using System.Web.Mvc.Html @model Services.Admin.ViewModels.IndexViewModel @{ Layout = "~/Views/...
Manveer Singh's user avatar
2 votes
0 answers
323 views

I have an MVC-ish project that includes pre-compiled, reuseable views created by the RazorGenerator tool. This generates a reusable shell for other websites. I can successfully include that project in ...
rkralston's user avatar
  • 386
0 votes
0 answers
51 views

I have a customer facing ASP.NET MVC app and we are in the process of building a sister app. I want to be able to share some of the existing layouts, views from the main app. I looked at using ...
Karthik Balasubramanian's user avatar
1 vote
0 answers
91 views

Razorengine 3.9 is used to run many templates. It creates assemblies with names like CompiledRazorTemplates.Dynamic.RazorEngine_f06390a8eaeb403a8f8c121451f51dcf, Version=0.0.0.0, Culture=neutral, ...
Andrus's user avatar
  • 28.2k
2 votes
0 answers
572 views

Update : I submitted this as an issue to RazorGenerator on github with a sample visual studio solution as attachment : https://github.com/RazorGenerator/RazorGenerator/issues/105 I am using ...
jimjim's user avatar
  • 2,513
1 vote
1 answer
3k views

I have tried to follow the steps from Precompiling Razor views in ASP.NET MVC 3 I can see the view cs files in the "obj\CodeGen\" folder I changed the line <Import Project="$(SolutionDir)\...
jimjim's user avatar
  • 2,513
1 vote
1 answer
2k views

So I installed RazorGenerator with nuGet and added the VS extension (thanks to Visual Studio cannot find custom tool RazorGenerator). Just to try it out on my existing mvc app, I changed the custom ...
aggaton's user avatar
  • 3,408
0 votes
0 answers
228 views

This is somehow related to The Question I am using jquery unobtrusive validation. I have the following model public class MyModel { [Required] public int ID { get; set; } [MinLength(2)] ...
Helen Araya's user avatar
  • 1,946
1 vote
1 answer
343 views

I am using RazorGenerator.Templating v2.3.11 for email templates. And Razor Generator plugin v1.9.1 - utilizing the TemplateTransformer. https://www.nuget.org/packages/RazorGenerator.Templating I ...
Ben Wilde's user avatar
  • 5,702
1 vote
0 answers
150 views

I am using RazorGenerator to embed a view into a shared DLL. I have a HiddenFor that is generating an invalid name attribute and a missing id attribute. I have a view model: public class ...
Dr Rob Lang's user avatar
  • 6,920
1 vote
1 answer
682 views

I've created a new project and followed the steps in http://www.carolynvanslyck.com/blog/2012/09/compile-time-support-for-mvc-views/ It worked, '.generated.cs' files popping out. I then tried ...
tony's user avatar
  • 2,412