<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>Razor Generator</title><link>http://razorgenerator.codeplex.com/project/feeds/rss</link><description>A VS single file generator for the ASP.NET Razor View Engine</description><item><title>New Post: UsePhysicalViewsIfNewer Not Working?</title><link>http://razorgenerator.codeplex.com/discussions/444576</link><description>&lt;div style="line-height: normal;"&gt;The project sets &lt;code&gt;UsePhysicalViewsIfNewer&lt;/code&gt; only if running locally (see &lt;a href="https://github.com/davidebbo/MvcApplicationRazorGeneratorSeparateLibrary/blob/master/LibraryViewProject/App_Start/RazorGeneratorMvcStart.cs" rel="nofollow"&gt;here&lt;/a&gt;. So it should find updated views at runtime only in the local case.&lt;br /&gt;
&lt;/div&gt;</description><author>davidebbo</author><pubDate>Wed, 22 May 2013 17:39:16 GMT</pubDate><guid isPermaLink="false">New Post: UsePhysicalViewsIfNewer Not Working? 20130522053916P</guid></item><item><title>New Post: UsePhysicalViewsIfNewer Not Working?</title><link>https://razorgenerator.codeplex.com/discussions/444576</link><description>&lt;div style="line-height: normal;"&gt;What does UsePhysicalViewsIfNewer do?&lt;br /&gt;
&lt;br /&gt;
I downloaded the project at &lt;a href="https://github.com/davidebbo/MvcApplicationRazorGeneratorSeparateLibrary" rel="nofollow"&gt;https://github.com/davidebbo/MvcApplicationRazorGeneratorSeparateLibrary&lt;/a&gt; to have a little play around. I assumed whenever I changed one of the views I wouldn't need to rebuild the project. However when I change the Home View and click refresh nothing happens until I do a rebuild.&lt;br /&gt;
&lt;br /&gt;
I'd appreciate it if someone could clear this up for me. Thanks&lt;br /&gt;
&lt;/div&gt;</description><author>jgd12345</author><pubDate>Wed, 22 May 2013 11:56:09 GMT</pubDate><guid isPermaLink="false">New Post: UsePhysicalViewsIfNewer Not Working? 20130522115609A</guid></item><item><title>New Post: compilation issue</title><link>http://razorgenerator.codeplex.com/discussions/444328</link><description>&lt;div style="line-height: normal;"&gt;Well, I've gotten a little deeper with this issue.  It turns out that whats dying is my unit test library.  If I comment that out of my csproj (post build event), and from my buildDeploy.cmd script, the actual application builds just fine with RazorGenerator.&lt;br /&gt;
&lt;br /&gt;
I'll take a peek at the config for the unittest project, and report back.&lt;br /&gt;
&lt;br /&gt;
One thing is particularly confusing to me still, though.  if I have configuration issues, shouldn't it fail to build in my development environment also?  I'm confused how it builds with identical configuration in one place, but fails on another one.&lt;br /&gt;
&lt;br /&gt;
Also, because I'm not the person who does the builds, I have to schedule time with them to attempt another build, so the availability for that kind of thing is a bit spotty....(just to explain any delays)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your attention and suggestions.&lt;br /&gt;
&lt;/div&gt;</description><author>brianAckermann</author><pubDate>Tue, 21 May 2013 17:08:01 GMT</pubDate><guid isPermaLink="false">New Post: compilation issue 20130521050801P</guid></item><item><title>New Post: Problem when trying to use precompiled views in a separate library</title><link>http://razorgenerator.codeplex.com/discussions/282737</link><description>&lt;div style="line-height: normal;"&gt;ok, this has got to be some kind of race condition having to do with the server starting up.&lt;br /&gt;
&lt;br /&gt;
I recreated both apps from scratch just as I described in my last post. I discovered several things:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;If I simply stop and run it again, the code runs correctly, as in my last post&lt;/li&gt;
&lt;li&gt;If I stop the site in the ASP.Net development server, from the system tray; then the error reoccurs, but only the first time&lt;/li&gt;
&lt;li&gt;If I force it to recompile MyPrecompiledViews but leave the server running, the error does not reoccur&lt;/li&gt;
&lt;li&gt;If I stop the site but place a breakpoint at the beginning of RazorGeneratorMvcStart.Start then continue after the breakpoint is hit; then the error does NOT reoccur&lt;/li&gt;
&lt;li&gt;If I switch to using IIS Express instead of the ASP.NET Development Server, the error does not occur and cannot be reproduced&lt;/li&gt;
&lt;li&gt;
If I switch back to ASP.NET Development Server (without recreating the project), the problem does not occur and cannot be reproduced&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;
Armed with this odd set of facts I will see if I can get it working in my real site.&lt;br /&gt;
&lt;br /&gt;
Jacob&lt;br /&gt;
&lt;/div&gt;</description><author>JacobWagner</author><pubDate>Tue, 21 May 2013 15:16:21 GMT</pubDate><guid isPermaLink="false">New Post: Problem when trying to use precompiled views in a separate library 20130521031621P</guid></item><item><title>New Post: Problem when trying to use precompiled views in a separate library</title><link>http://razorgenerator.codeplex.com/discussions/282737</link><description>&lt;div style="line-height: normal;"&gt;It worked when I originally tested this concept, before I tried to incorporate it into my real site.&lt;br /&gt;
&lt;br /&gt;
However, I went back to the basics at &lt;a href="http://blog.davidebbo.com/2011/06/precompile-your-mvc-views-using.html" rel="nofollow"&gt;http://blog.davidebbo.com/2011/06/precompile-your-mvc-views-using.html&lt;/a&gt; and created two projects as described. I used the Internet Application template for the &amp;quot;main&amp;quot; project and the Empty template for the library, both under MVC4.&lt;br /&gt;
&lt;br /&gt;
I got the error described in the original post in this thread.&lt;br /&gt;
&lt;br /&gt;
---- instant update&lt;br /&gt;
&lt;br /&gt;
As I was typing the above, for no reason I ran it again and IT WORKED. I made no changes. The debugger was stopped on Line 15 as described and I hit stop, then I ran it again and it worked.&lt;br /&gt;
&lt;br /&gt;
I don't understand, I am going to delete the projects and start again, to see if this happens again. I will post my results here.&lt;br /&gt;
&lt;br /&gt;
Jacob&lt;br /&gt;
&lt;/div&gt;</description><author>JacobWagner</author><pubDate>Tue, 21 May 2013 14:48:43 GMT</pubDate><guid isPermaLink="false">New Post: Problem when trying to use precompiled views in a separate library 20130521024843P</guid></item><item><title>New Post: Problem when trying to use precompiled views in a separate library</title><link>http://razorgenerator.codeplex.com/discussions/282737</link><description>&lt;div style="line-height: normal;"&gt;Looking through this thread, it has evolved through various different issues, so I'm not actually sure which one you're referring to here. :)&lt;br /&gt;
&lt;br /&gt;
Are you able to get at that issue starting from a new Mvc app to which you add RG.Mvc? It would be good to isolate what may be different about your app. If you have a repro you can share (e.g. in github), that would be ideal.&lt;br /&gt;
&lt;/div&gt;</description><author>davidebbo</author><pubDate>Tue, 21 May 2013 01:35:03 GMT</pubDate><guid isPermaLink="false">New Post: Problem when trying to use precompiled views in a separate library 20130521013503A</guid></item><item><title>New Post: Problem when trying to use precompiled views in a separate library</title><link>http://razorgenerator.codeplex.com/discussions/282737</link><description>&lt;div style="line-height: normal;"&gt;I am not sure what you mean by missing the redirect. I do know that my assemblyBinding tag matches what is recommended three posts above this.&lt;br /&gt;
&lt;br /&gt;
Since my last post I actually copied my app, changed the name, added it to my sln, and set the copy up as a view library. As soon as I added a reference to it I got the error. I am certain that all of the references and config files are identical except the reference to RazorGenerator.Mvc.&lt;br /&gt;
&lt;br /&gt;
Jacob&lt;br /&gt;
&lt;br /&gt;
P.S. thank you for responding so quickly.&lt;br /&gt;
&lt;/div&gt;</description><author>JacobWagner</author><pubDate>Mon, 20 May 2013 22:09:03 GMT</pubDate><guid isPermaLink="false">New Post: Problem when trying to use precompiled views in a separate library 20130520100903P</guid></item><item><title>New Post: Problem when trying to use precompiled views in a separate library</title><link>http://razorgenerator.codeplex.com/discussions/282737</link><description>&lt;div style="line-height: normal;"&gt;And are you sure that you're not missing the MVC4 binding redirect in web.config? With a binding redirect, it's should be impossible for both to be loaded.&lt;br /&gt;
&lt;/div&gt;</description><author>davidebbo</author><pubDate>Mon, 20 May 2013 22:01:05 GMT</pubDate><guid isPermaLink="false">New Post: Problem when trying to use precompiled views in a separate library 20130520100105P</guid></item><item><title>New Post: Problem when trying to use precompiled views in a separate library</title><link>http://razorgenerator.codeplex.com/discussions/282737</link><description>&lt;div style="line-height: normal;"&gt;When I create two fresh MVC4 apps and follow this procedure for them they work perfectly.&lt;br /&gt;
&lt;br /&gt;
However, when I attempt to create a reference to the library from my existing app (the one I want to move a view from) it gives me the above error.&lt;br /&gt;
&lt;br /&gt;
I have checked both the framework and MVC versions and they match.&lt;br /&gt;
&lt;br /&gt;
When I examine &amp;quot;ViewEngines&amp;quot; in the debugger I get the message &amp;quot;The type 'System.Web.Mvc.ViewEngines' exists in both 'System.Web.Mvc.dll' and 'System.Web.Mvc.dll'&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I am not sure what else to do. I guess I can recreate everything, but that would be a lot of work.&lt;br /&gt;
&lt;br /&gt;
Jacob&lt;br /&gt;
&lt;/div&gt;</description><author>JacobWagner</author><pubDate>Mon, 20 May 2013 21:54:13 GMT</pubDate><guid isPermaLink="false">New Post: Problem when trying to use precompiled views in a separate library 20130520095413P</guid></item><item><title>New Post: compilation issue</title><link>http://razorgenerator.codeplex.com/discussions/444328</link><description>&lt;div style="line-height: normal;"&gt;1) Could you try uninstalling the RazorGenerator.Mvc package and see if you are able to compile your project? &lt;br /&gt;
2) Can you see if you have the System.Web.Mvc listed in your web.config?&lt;br /&gt;
3) How is your project referencing the Mvc 4 binary (System.Web.Mvc)?&lt;br /&gt;
&lt;/div&gt;</description><author>pranavkm</author><pubDate>Mon, 20 May 2013 20:48:16 GMT</pubDate><guid isPermaLink="false">New Post: compilation issue 20130520084816P</guid></item><item><title>New Post: compilation issue</title><link>http://razorgenerator.codeplex.com/discussions/444328</link><description>&lt;div style="line-height: normal;"&gt;In the end, there is not much magic about RazorGenerator.Mvc.dll. It's just s standard assembly that depends on Mvc 3 (like Glimpse). So when using Mvc 4, binding redirects are needed.&lt;br /&gt;
&lt;br /&gt;
Not that your build error mentions not finding MVC4 at all, so maybe that's part of the problem.&lt;br /&gt;
&lt;/div&gt;</description><author>davidebbo</author><pubDate>Mon, 20 May 2013 20:37:17 GMT</pubDate><guid isPermaLink="false">New Post: compilation issue 20130520083717P</guid></item><item><title>New Post: compilation issue</title><link>http://razorgenerator.codeplex.com/discussions/444328</link><description>&lt;div style="line-height: normal;"&gt;MVC4, and the error happens at build time.&lt;br /&gt;
&lt;br /&gt;
I'm leaning on it being a problem with the RazorGenerator, because thats the only substantial change I've made to the project since the last successful compile.  We've had glimpse in the project for quite some time now.&lt;br /&gt;
&lt;br /&gt;
The bit thats' sending me for a loop is &amp;quot;AutoUnify is 'true'&amp;quot; ... I'm not sure what that has to do with anything, and haven't had a chance to investigate that, but so far, its my best guess as a root issue.&lt;br /&gt;
&lt;br /&gt;
The other matter of concern is that on the dev machines, when running the build script (as the release builder would do, from command, not from within VS), we first do a &amp;quot;coreClean&amp;quot;, then &amp;quot;CoreCompile&amp;quot;....but on the builder environment, we first see &amp;quot;CoreClean&amp;quot; and then the failing &amp;quot;ResolveAssemblyReferences&amp;quot;...  why does the compiler take different paths...I confess to not being conversant in compiler mechanics, so this &lt;em&gt;seems&lt;/em&gt; like an interesting place to look for issues.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;/div&gt;</description><author>brianAckermann</author><pubDate>Mon, 20 May 2013 20:28:53 GMT</pubDate><guid isPermaLink="false">New Post: compilation issue 20130520082853P</guid></item><item><title>New Post: compilation issue</title><link>http://razorgenerator.codeplex.com/discussions/444328</link><description>&lt;div style="line-height: normal;"&gt;Are you using MVC3 or MVC4? Also, is this error happening at build time or runtime? Normally, assemblies are not loaded at build time.&lt;br /&gt;
&lt;br /&gt;
Note that you seem to get an identical error from Glimpse, so it's probably not something directly related to RazorGenerator. Maybe you're just missing an Mvc binding redirect.&lt;br /&gt;
&lt;/div&gt;</description><author>davidebbo</author><pubDate>Mon, 20 May 2013 19:48:01 GMT</pubDate><guid isPermaLink="false">New Post: compilation issue 20130520074801P</guid></item><item><title>New Post: compilation issue</title><link>http://razorgenerator.codeplex.com/discussions/444328</link><description>&lt;div style="line-height: normal;"&gt;I've recently added RazorGenerator to my project, and I'd like to add my thanks for adding this (imo) much needed feature to our environment.  All our devs have installed the VSIX component, and we've included the RazorGenerator.Mvc dll in our project (via nuget).  All is well so long as the devs are building.&lt;br /&gt;
&lt;br /&gt;
But, once we hand off the source to our 'builder', we now get compiler errors:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;ResolveAssemblyReferences:
  Unified primary reference &amp;quot;System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf385
6ad364e35, processorArchitecture=MSIL&amp;quot;.
      Using this version instead of original version &amp;quot;3.0.0.0&amp;quot; in &amp;quot;C:\work\webstore\branches\ws_365\t
mpFlex_RenameMe\RevTrakPortal\packages\Glimpse.Mvc3.1.2.1\lib\net40\Glimpse.Mvc3.dll&amp;quot; because AutoUni
fy is 'true'.
      Using this version instead of original version &amp;quot;3.0.0.0&amp;quot; in &amp;quot;C:\work\webstore\branches\ws_365\t
mpFlex_RenameMe\RevTrakPortal\packages\RazorGenerator.Mvc.2.0.1\lib\net40\RazorGenerator.Mvc.dll&amp;quot; bec
ause AutoUnify is 'true'.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Coul
d not resolve this reference. Could not locate the assembly &amp;quot;System.Web.Mvc, Version=4.0.0.0, Culture
=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL&amp;quot;. Check to make sure the assemb
ly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\wo
rk\webstore\branches\ws_365\tmpFlex_RenameMe\RevTrakPortal\UnitTestLibrary\UnitTestLibrary.csproj]
          For SearchPath &amp;quot;C:\work\webstore\branches\ws_365\tmpFlex_RenameMe\RevTrakPortal\packages\Ra
zorGenerator.Mvc.2.0.1\lib\net40&amp;quot;.
          Considered &amp;quot;C:\work\webstore\branches\ws_365\tmpFlex_RenameMe\RevTrakPortal\packages\RazorG
enerator.Mvc.2.0.1\lib\net40\System.Web.Mvc.dll&amp;quot;, but it didn't exist.
          Considered &amp;quot;C:\work\webstore\branches\ws_365\tmpFlex_RenameMe\RevTrakPortal\packages\RazorG
enerator.Mvc.2.0.1\lib\net40\System.Web.Mvc.exe&amp;quot;, but it didn't exist.&lt;/code&gt;&lt;/pre&gt;

Thats just a short sample of the errors, but hopefully its enough to get things started.&lt;br /&gt;
&lt;br /&gt;
What have I missed?  I don't see anything in the documentation that suggests we should need to modify the main build script in any way.&lt;br /&gt;
&lt;br /&gt;
FYI, the computer which performs the release build does not have VS installed on it at all, it does everything with msbuild.  But, we don't want to be using a msbuild-task to perform the generation, we just want to compile what's already there.&lt;br /&gt;
&lt;br /&gt;
Thanks!&lt;br /&gt;
&lt;/div&gt;</description><author>brianAckermann</author><pubDate>Mon, 20 May 2013 19:38:45 GMT</pubDate><guid isPermaLink="false">New Post: compilation issue 20130520073845P</guid></item><item><title>New Post: RazorGenerator inside a NuGet package</title><link>http://razorgenerator.codeplex.com/discussions/443484</link><description>&lt;div style="line-height: normal;"&gt;The App_Start code that comes with the NuGet package is really just a convenient way to register things, but it is very much meant to be modified. That's why is brought in as source code rather than as part of an assembly. The same is generally true of all NuGet packages that bring in source code.&lt;br /&gt;
&lt;br /&gt;
As such, it doesn't seem like a big deal to me to have to make some slight modifications. If you really don't want that, I suppose you could write a simple NuGet package that warps that RG.Mvc package, and then modifies it as you need.&lt;br /&gt;
&lt;/div&gt;</description><author>davidebbo</author><pubDate>Sat, 18 May 2013 23:39:44 GMT</pubDate><guid isPermaLink="false">New Post: RazorGenerator inside a NuGet package 20130518113944P</guid></item><item><title>New Post: RazorGenerator vs visual studio built in publish precompilation</title><link>http://razorgenerator.codeplex.com/discussions/443076</link><description>&lt;div style="line-height: normal;"&gt;Fixed.&lt;br /&gt;
&lt;/div&gt;</description><author>stmarti</author><pubDate>Fri, 17 May 2013 08:42:59 GMT</pubDate><guid isPermaLink="false">New Post: RazorGenerator vs visual studio built in publish precompilation 20130517084259A</guid></item><item><title>New Post: RazorGenerator vs visual studio built in publish precompilation</title><link>http://razorgenerator.codeplex.com/discussions/443076</link><description>&lt;div style="line-height: normal;"&gt;It seems that the problem is with role startup code (RoleEntryPoint), &lt;a href="http://stackoverflow.com/questions/15226494/assembly-binding-redirect-not-working" rel="nofollow"&gt;see:&lt;/a&gt;&lt;br /&gt;
Now trying to fix...&lt;br /&gt;
&lt;/div&gt;</description><author>stmarti</author><pubDate>Fri, 17 May 2013 06:53:04 GMT</pubDate><guid isPermaLink="false">New Post: RazorGenerator vs visual studio built in publish precompilation 20130517065304A</guid></item><item><title>New Post: RazorGenerator vs visual studio built in publish precompilation</title><link>http://razorgenerator.codeplex.com/discussions/443076</link><description>&lt;div style="line-height: normal;"&gt;Not missing! (Checked azure instance deployed web.config via rdp)&lt;br /&gt;
&lt;/div&gt;</description><author>stmarti</author><pubDate>Fri, 17 May 2013 06:25:56 GMT</pubDate><guid isPermaLink="false">New Post: RazorGenerator vs visual studio built in publish precompilation 20130517062556A</guid></item><item><title>New Post: RazorGenerator vs visual studio built in publish precompilation</title><link>http://razorgenerator.codeplex.com/discussions/443076</link><description>&lt;div style="line-height: normal;"&gt;Sounds like you're missing the binding redirect which normally comes with an MVC4 app. e.g. see &lt;a href="https://github.com/davidebbo-test/Mvc4ApplicationFx45/blob/master/Mvc4Application/Web.config#L71" rel="nofollow"&gt;here&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>davidebbo</author><pubDate>Fri, 17 May 2013 06:15:12 GMT</pubDate><guid isPermaLink="false">New Post: RazorGenerator vs visual studio built in publish precompilation 20130517061512A</guid></item><item><title>New Post: RazorGenerator vs visual studio built in publish precompilation</title><link>http://razorgenerator.codeplex.com/discussions/443076</link><description>&lt;div style="line-height: normal;"&gt;It seems that RazorGenerator.Mvc.Dll tries to load MVC 3.0. But I'm not using MVC 3.0 instead 4.0! What can be the problem?&lt;br /&gt;
&lt;br /&gt;
Here is the fusion log:&lt;br /&gt;
&lt;br /&gt;
*** Assembly Binder Log Entry  (5/17/2013 @ 6:06:45 AM) ***&lt;br /&gt;
&lt;br /&gt;
The operation failed.&lt;br /&gt;
Bind result: hr = 0x80131040. No description available.&lt;br /&gt;
&lt;br /&gt;
Assembly manager loaded from:  D:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll&lt;br /&gt;
Running under executable  E:\base\x64\WaIISHost.exe&lt;br /&gt;
--- A detailed error log follows. &lt;br /&gt;
&lt;br /&gt;
=== Pre-bind state information ===&lt;br /&gt;
LOG: User = NT AUTHORITY\SYSTEM&lt;br /&gt;
LOG: DisplayName = System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&lt;br /&gt;
 (Fully-specified)&lt;br /&gt;
LOG: Appbase = file:///E:/approot/bin&lt;br /&gt;
LOG: Initial PrivatePath = E:\approot\bin&lt;br /&gt;
LOG: Dynamic Base = NULL&lt;br /&gt;
LOG: Cache Base = NULL&lt;br /&gt;
LOG: AppName = RoleManager&lt;br /&gt;
&lt;h1&gt;Calling assembly : RazorGenerator.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=7b26dc2a43f6a0d4.&lt;/h1&gt;
LOG: This bind starts in default load context.&lt;br /&gt;
LOG: Using application configuration file: E:\base\x64\WaIISHost.exe.Config&lt;br /&gt;
LOG: Using host configuration file: &lt;br /&gt;
LOG: Using machine configuration file from D:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.&lt;br /&gt;
LOG: Post-policy reference: System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&lt;br /&gt;
LOG: GAC Lookup was unsuccessful.&lt;br /&gt;
LOG: Attempting download of new URL file:///E:/approot/bin/System.Web.Mvc.DLL.&lt;br /&gt;
LOG: Assembly download was successful. Attempting setup of file: E:\approot\bin\System.Web.Mvc.dll&lt;br /&gt;
LOG: Entering run-from-source setup phase.&lt;br /&gt;
LOG: Assembly Name is: System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&lt;br /&gt;
WRN: Comparing the assembly name resulted in the mismatch: Major Version&lt;br /&gt;
ERR: The assembly reference did not match the assembly definition found.&lt;br /&gt;
ERR: Run-from-source setup phase failed with hr = 0x80131040.&lt;br /&gt;
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.&lt;br /&gt;
&lt;/div&gt;</description><author>stmarti</author><pubDate>Fri, 17 May 2013 06:11:46 GMT</pubDate><guid isPermaLink="false">New Post: RazorGenerator vs visual studio built in publish precompilation 20130517061146A</guid></item></channel></rss>