Quantcast
Channel: RazorGenerator Issue Tracker Rss Feed
Viewing all 525 articles
Browse latest View live

Commented Unassigned: Could not precompile the input file contents... [122]

$
0
0
I'm getting the following error on build...

Could not precompile the input file contents. Ensure that a generator declaration exists in the cshtml file.
A generator declaration is the first line of your cshtml file and looks like this:
@* Generator: MvcHelper *@
Valid host names: MvcHelper, MvcView, Template, WebPagesHelper, WebPage, RazorGenerator.Core.IHostProvider

I posted this issue under Discussions, but am opening up an issue so I can attach a sample project. The error occurs as soon as I drop a _ViewStart.cshtml file into the root of my project.

Comments: Fixed in changeset 3fe595c7dab3a2216f8eb530ad46941f7becd58e

Created Unassigned: Error when build with Razor Generator Build [125]

$
0
0
I've just updated my version of razorgenerator.build with the latest version.

In my project file, i have :

<Import Project="..\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets" Condition="Exists('..\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets')" />

i have an error when i try to compiling my project :
1>C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets(21,9): error MSB4062: Impossible de charger la tâche "RazorCodeGen" à partir de l'assembly C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\build\\..\tools\RazorGenerator.MsBuild.dll. Impossible de charger le fichier ou l'assembly 'file:///C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\tools\RazorGenerator.MsBuild.dll' ou une de ses dépendances. Le fichier spécifié est introuvable. Assurez-vous que la déclaration <UsingTask> est correcte, que l'assembly et toutes ses dépendances sont disponibles et que la tâche contient une classe publique qui implémente Microsoft.Build.Framework.ITask.

Could you investigate on it please ?
Best regards.

Commented Unassigned: Error when build with Razor Generator Build [125]

$
0
0
I've just updated my version of razorgenerator.build with the latest version.

In my project file, i have :

<Import Project="..\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets" Condition="Exists('..\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets')" />

i have an error when i try to compiling my project :
1>C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets(21,9): error MSB4062: Impossible de charger la tâche "RazorCodeGen" à partir de l'assembly C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\build\\..\tools\RazorGenerator.MsBuild.dll. Impossible de charger le fichier ou l'assembly 'file:///C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\tools\RazorGenerator.MsBuild.dll' ou une de ses dépendances. Le fichier spécifié est introuvable. Assurez-vous que la déclaration <UsingTask> est correcte, que l'assembly et toutes ses dépendances sont disponibles et que la tâche contient une classe publique qui implémente Microsoft.Build.Framework.ITask.

Could you investigate on it please ?
Best regards.
Comments: I have come across this issue as well. It is an issue with the way the razor package is built up. I have attached a screenshot of the package off the nuget feed. The dll RazorGenerator.MsBuild.dll needs to be in the tools folder. Mygaloux to solve your problem copy the dll from lib/net40 into the tools folder.

Commented Unassigned: Error when build with Razor Generator Build [125]

$
0
0
I've just updated my version of razorgenerator.build with the latest version.

In my project file, i have :

<Import Project="..\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets" Condition="Exists('..\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets')" />

i have an error when i try to compiling my project :
1>C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets(21,9): error MSB4062: Impossible de charger la tâche "RazorCodeGen" à partir de l'assembly C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\build\\..\tools\RazorGenerator.MsBuild.dll. Impossible de charger le fichier ou l'assembly 'file:///C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\tools\RazorGenerator.MsBuild.dll' ou une de ses dépendances. Le fichier spécifié est introuvable. Assurez-vous que la déclaration <UsingTask> est correcte, que l'assembly et toutes ses dépendances sont disponibles et que la tâche contient une classe publique qui implémente Microsoft.Build.Framework.ITask.

Could you investigate on it please ?
Best regards.
Comments: Sorry, it seems like I messed up the package in the last build. @MikeHB had the right fix for it. I've pushed an updated package that should correct this.

Edited Unassigned: Error when build with Razor Generator Build [125]

$
0
0
I've just updated my version of razorgenerator.build with the latest version.

In my project file, i have :

<Import Project="..\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets" Condition="Exists('..\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets')" />

i have an error when i try to compiling my project :
1>C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets(21,9): error MSB4062: Impossible de charger la tâche "RazorCodeGen" à partir de l'assembly C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\build\\..\tools\RazorGenerator.MsBuild.dll. Impossible de charger le fichier ou l'assembly 'file:///C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\tools\RazorGenerator.MsBuild.dll' ou une de ses dépendances. Le fichier spécifié est introuvable. Assurez-vous que la déclaration <UsingTask> est correcte, que l'assembly et toutes ses dépendances sont disponibles et que la tâche contient une classe publique qui implémente Microsoft.Build.Framework.ITask.

Could you investigate on it please ?
Best regards.

Commented Unassigned: Error when build with Razor Generator Build [125]

$
0
0
I've just updated my version of razorgenerator.build with the latest version.

In my project file, i have :

<Import Project="..\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets" Condition="Exists('..\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets')" />

i have an error when i try to compiling my project :
1>C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets(21,9): error MSB4062: Impossible de charger la tâche "RazorCodeGen" à partir de l'assembly C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\build\\..\tools\RazorGenerator.MsBuild.dll. Impossible de charger le fichier ou l'assembly 'file:///C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\tools\RazorGenerator.MsBuild.dll' ou une de ses dépendances. Le fichier spécifié est introuvable. Assurez-vous que la déclaration <UsingTask> est correcte, que l'assembly et toutes ses dépendances sont disponibles et que la tâche contient une classe publique qui implémente Microsoft.Build.Framework.ITask.

Could you investigate on it please ?
Best regards.
Comments: Fixed in changeset ce15377ceb0057eba6ec549261ea064c82ee8dfa

Commented Unassigned: Eventually get OutOfMemoryException when VS is started with extension enabled [119]

$
0
0
Unfortunately, if (and only if) I have the RazorGenerator extension enabled in VS2012, I eventually get a yellow screen of death (see below) when running my app in the Azure SDK 2.0 emulator (using IIS Express).

To avoid getting the OOM condition, I can disable the extension and the precompiled views continue to work fine, but of course I'm not able to edit/recompile any of the views because the tool is disabled!

Anyone else have this issue? David, have you seen this and do you know what could be causing this problem?

I have used VS2013 Ultimate preview and procdump generated managed memory dumps of iisexpress to verify there is no memory leak in my app.

[Aside: I also have the issue described here -- https://razorgenerator.codeplex.com/workitem/72. This is NOT the cause of the OOM condition, but is a little aggravating since the dlls disappear regularly, requiring the workaround in the post each time it happens.]

Detailed exception info follows.....

-----------------------------------

Server Error in '/' Application.

Insufficient memory to continue the execution of the program.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[OutOfMemoryException: Insufficient memory to continue the execution of the program.]

System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +3103

System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +240

Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnValue, String trueArgs) +347

Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames) +808

Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) +203

System.Web.Compilation.AssemblyBuilder.Compile() +2695

System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +566

System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +565

System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +201

System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) +177

System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +56

RazorGenerator.Mvc.PrecompiledMvcEngine.CreateInstance(String virtualPath) +235

System.Web.WebPages.VirtualPathFactoryExtensions.CreateInstance(IVirtualPathFactory factory, String virtualPath) +219

System.Web.WebPages.VirtualPathFactoryManager.CreateInstanceOfType(String virtualPath) +201

System.Web.WebPages.StartPage.GetStartPage(WebPageRenderingBase page, IVirtualPathFactory virtualPathFactory, String appDomainAppVirtualPath, String fileName, IEnumerable`1 supportedExtensions) +273

System.Web.WebPages.StartPage.GetStartPage(WebPageRenderingBase page, String fileName, IEnumerable`1 supportedExtensions) +236

RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer) +782
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +380

System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +33

System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613

System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +263

System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +240

System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +28

System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15

System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53

System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15

System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +42

System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +640

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288



Comments: No, but actually the problem persists after removing the RazorGenerator extension if I leave all the precompiled views in the solution. Only after removing all or most of the precompiled views (which dramatically speeds up the time for VS to compile the remaining C# code) does the problem disappear. Of course, I still run into trouble if I navigate the site and let enough views be dynamically compiled. When this occurs, the way I work around it during development is to shut down processes with .NET memory and reopen them, including the web server. This, of course, is a completely unsatisfactory workaround for a deployed site. Are you able to upload a demo that illustrates this problem? I was in touch with folks at Microsoft a few weeks ago and could forward your demo to them. Or if you feel more comfortable speaking with them directly, I can ask them to get in touch with you.

Commented Unassigned: Eventually get OutOfMemoryException when VS is started with extension enabled [119]

$
0
0
Unfortunately, if (and only if) I have the RazorGenerator extension enabled in VS2012, I eventually get a yellow screen of death (see below) when running my app in the Azure SDK 2.0 emulator (using IIS Express).

To avoid getting the OOM condition, I can disable the extension and the precompiled views continue to work fine, but of course I'm not able to edit/recompile any of the views because the tool is disabled!

Anyone else have this issue? David, have you seen this and do you know what could be causing this problem?

I have used VS2013 Ultimate preview and procdump generated managed memory dumps of iisexpress to verify there is no memory leak in my app.

[Aside: I also have the issue described here -- https://razorgenerator.codeplex.com/workitem/72. This is NOT the cause of the OOM condition, but is a little aggravating since the dlls disappear regularly, requiring the workaround in the post each time it happens.]

Detailed exception info follows.....

-----------------------------------

Server Error in '/' Application.

Insufficient memory to continue the execution of the program.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[OutOfMemoryException: Insufficient memory to continue the execution of the program.]

System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +3103

System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +240

Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnValue, String trueArgs) +347

Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames) +808

Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) +203

System.Web.Compilation.AssemblyBuilder.Compile() +2695

System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +566

System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +565

System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +201

System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) +177

System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +56

RazorGenerator.Mvc.PrecompiledMvcEngine.CreateInstance(String virtualPath) +235

System.Web.WebPages.VirtualPathFactoryExtensions.CreateInstance(IVirtualPathFactory factory, String virtualPath) +219

System.Web.WebPages.VirtualPathFactoryManager.CreateInstanceOfType(String virtualPath) +201

System.Web.WebPages.StartPage.GetStartPage(WebPageRenderingBase page, IVirtualPathFactory virtualPathFactory, String appDomainAppVirtualPath, String fileName, IEnumerable`1 supportedExtensions) +273

System.Web.WebPages.StartPage.GetStartPage(WebPageRenderingBase page, String fileName, IEnumerable`1 supportedExtensions) +236

RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer) +782
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +380

System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +33

System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613

System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +263

System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +240

System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +28

System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15

System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53

System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15

System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +42

System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +640

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288



Comments: It's best to keep the discussion public here, so if you have a simple repro, please share it. And please do note that while the main contributors work at Microsoft, this is an OSS project with no ties to Microsoft.

Created Unassigned: mvc5 razor 3.0 support? [128]

$
0
0
When can we expect support for razor 3.0 and mvc5?

Created Unassigned: Tilda in View break links! [129]

$
0
0
In the VS2013 all the Url's like this "~/content/etc" in MVC Views are compiled incorrectly. They become "/main/index/~/content/etc". In the VS2012 it worked :(

For example, VS2012:

WriteLiteral(">\r\n<head>\r\n <meta");
WriteLiteral(" http-equiv=\"Content-Type\"");
WriteLiteral(" content=\"text/html; charset=UTF-8\"");
WriteLiteral(" />\r\n <meta");
WriteLiteral(" name=\"viewport\"");
...
WriteAttribute("href", Tuple.Create(" href=\"", 605), Tuple.Create("\"", 653)
, Tuple.Create(Tuple.Create("", 612), Tuple.Create<System.Object, System.Int32>(Href("~/Scripts/bootstrap/css/bootstrap.min.css")
, 612), false)
);
...

And VS2013 (all go as one WriteLiteral):

WriteLiteral(@"</title>

<link href=""~/Scripts/bootstrap/css/bootstrap.min.css"" rel=""stylesheet"" type=""text/css"" />

Commented Unassigned: Tilda in View break links! [129]

$
0
0
In the VS2013 all the Url's like this "~/content/etc" in MVC Views are compiled incorrectly. They become "/main/index/~/content/etc". In the VS2012 it worked :(

For example, VS2012:

WriteLiteral(">\r\n<head>\r\n <meta");
WriteLiteral(" http-equiv=\"Content-Type\"");
WriteLiteral(" content=\"text/html; charset=UTF-8\"");
WriteLiteral(" />\r\n <meta");
WriteLiteral(" name=\"viewport\"");
...
WriteAttribute("href", Tuple.Create(" href=\"", 605), Tuple.Create("\"", 653)
, Tuple.Create(Tuple.Create("", 612), Tuple.Create<System.Object, System.Int32>(Href("~/Scripts/bootstrap/css/bootstrap.min.css")
, 612), false)
);
...

And VS2013 (all go as one WriteLiteral):

WriteLiteral(@"</title>

<link href=""~/Scripts/bootstrap/css/bootstrap.min.css"" rel=""stylesheet"" type=""text/css"" />

Comments: Is this the same project that's returning different results in VS 2013 or are you trying to use Mvc 5?

Commented Unassigned: Tilda in View break links! [129]

$
0
0
In the VS2013 all the Url's like this "~/content/etc" in MVC Views are compiled incorrectly. They become "/main/index/~/content/etc". In the VS2012 it worked :(

For example, VS2012:

WriteLiteral(">\r\n<head>\r\n <meta");
WriteLiteral(" http-equiv=\"Content-Type\"");
WriteLiteral(" content=\"text/html; charset=UTF-8\"");
WriteLiteral(" />\r\n <meta");
WriteLiteral(" name=\"viewport\"");
...
WriteAttribute("href", Tuple.Create(" href=\"", 605), Tuple.Create("\"", 653)
, Tuple.Create(Tuple.Create("", 612), Tuple.Create<System.Object, System.Int32>(Href("~/Scripts/bootstrap/css/bootstrap.min.css")
, 612), false)
);
...

And VS2013 (all go as one WriteLiteral):

WriteLiteral(@"</title>

<link href=""~/Scripts/bootstrap/css/bootstrap.min.css"" rel=""stylesheet"" type=""text/css"" />

Comments: This is exactly the same project - in VS2012 and VS2013.

Commented Unassigned: mvc5 razor 3.0 support? [128]

$
0
0
When can we expect support for razor 3.0 and mvc5?
Comments: Any news on this? When I use mvc5, RazorGenerator generates the .cs file as usual but does not import the namespaces from /Views/Web.config. Meanwhile, I have disabled the plugin (disable-razorgenerator).

Created Unassigned: having the text '' in javascript breaks generated code [130]

$
0
0
In MVC 5 Razor 3, (also upgraded to c#4.5.1)
having the following javascript breaks the generator.

<script>window.tinyMCE || document.write('<script src="//tinymce.cachefly.net/4.0/tinymce.min.js">\x3C/script>')</script>

it is having a '<script ' in text that is causing the issue
causes the error:
Custom tool error: The "script" element was not closed. All elements must be either self-closing or have a matching end tag.

if you change the javascript to:

<script>window.tinyMCE || document.write('\x3Cscript src="//tinymce.cachefly.net/4.0/tinymce.min.js">\x3C/script>')</script>

then it works fine.
But this worked for the previous version of MVC5 and Razor 3 without having to do this.

Commented Unassigned: having the text '' in javascript breaks generated code [130]

$
0
0
In MVC 5 Razor 3, (also upgraded to c#4.5.1)
having the following javascript breaks the generator.

<script>window.tinyMCE || document.write('<script src="//tinymce.cachefly.net/4.0/tinymce.min.js">\x3C/script>')</script>

it is having a '<script ' in text that is causing the issue
causes the error:
Custom tool error: The "script" element was not closed. All elements must be either self-closing or have a matching end tag.

if you change the javascript to:

<script>window.tinyMCE || document.write('\x3Cscript src="//tinymce.cachefly.net/4.0/tinymce.min.js">\x3C/script>')</script>

then it works fine.
But this worked for the previous version of MVC5 and Razor 3 without having to do this.
Comments: Does it behave differently if you use Razor at runtime (i.e. the 'regular' MVC way) instead of using RazorGenerator? RG just calls into the runtime parser, so normally should behave the same way.

Commented Unassigned: mvc5 razor 3.0 support? [128]

$
0
0
When can we expect support for razor 3.0 and mvc5?
Comments: Indeed, it looks broken. We need to investigate why it's not picking up those namespaces.

Closed Unassigned: mvc5 razor 3.0 support? [128]

$
0
0
When can we expect support for razor 3.0 and mvc5?
Comments: I just uploaded RG 1.6 which should fix that. Can you please give it a try?

Commented Unassigned: having the text '' in javascript breaks generated code [130]

$
0
0
In MVC 5 Razor 3, (also upgraded to c#4.5.1)
having the following javascript breaks the generator.

<script>window.tinyMCE || document.write('<script src="//tinymce.cachefly.net/4.0/tinymce.min.js">\x3C/script>')</script>

it is having a '<script ' in text that is causing the issue
causes the error:
Custom tool error: The "script" element was not closed. All elements must be either self-closing or have a matching end tag.

if you change the javascript to:

<script>window.tinyMCE || document.write('\x3Cscript src="//tinymce.cachefly.net/4.0/tinymce.min.js">\x3C/script>')</script>

then it works fine.
But this worked for the previous version of MVC5 and Razor 3 without having to do this.
Comments: I just uploaded RG 1.6 which supports MVC5. Though I'm not sure this is related, so please give it a try.

Commented Unassigned: mvc5 razor 3.0 support? [128]

$
0
0
When can we expect support for razor 3.0 and mvc5?
Comments: Works GREAT! Thanks!!

Commented Unassigned: mvc5 razor 3.0 support? [128]

$
0
0
When can we expect support for razor 3.0 and mvc5?
Comments: Glad to hear!
Viewing all 525 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>