Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Config file modifications during package installation

$
0
0
Hi

How are config file transformations during package installation done in Composite C1?

I cannot find any XSLT files that would do the transformations.
Furthermore I assume it is not XDTs (Xml Document Transformations), because they are for deployment only (publish) and mostly for web application projects.

The problem is in version 4 beta 2 web.config comes with:
<buildProviders>
        <add extension=".cshtml" type="System.Web.WebPages.Razor.RazorBuildProvider, System.Web.WebPages.Razor" />
      </buildProviders>
So after adding CompositeC1Contrib.RazorFunctions package web.config looks like:
<buildProviders>
        <add extension=".cshtml" type="System.Web.WebPages.Razor.RazorBuildProvider, System.Web.WebPages.Razor" />
        <add extension=".cshtml" type="CompositeC1Contrib.RazorFunctions.CompositeC1RazorBuildProvider, CompositeC1Contrib.RazorFunctions" />
      </buildProviders>
So the obvious solution is to remove/uncomment first entry:
<buildProviders>
        <!--
        <add extension=".cshtml" type="System.Web.WebPages.Razor.RazorBuildProvider, System.Web.WebPages.Razor" />
        -->
        <add extension=".cshtml" type="CompositeC1Contrib.RazorFunctions.CompositeC1RazorBuildProvider, CompositeC1Contrib.RazorFunctions" />
      </buildProviders>
How are replacements and deletions of nodes handled during package installation?

thx

mel

Viewing all articles
Browse latest Browse all 2540

Trending Articles



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