CZEMacLeod / MSBuild.SDK.SystemWeb

This MSBuild SDK is designed to allow for the easy creation and use of SDK (shortform) projects targeting ASP.NET 4.x using System.Web.
MIT License
151 stars 8 forks source link

MSBuild.SDK.SystemWeb.RazorLibrary does not support GeneratedBindingRedirectsAction feature #58

Open CZEMacLeod opened 1 year ago

CZEMacLeod commented 1 year ago

The MSBuild.SDK.SystemWeb.RazorLibrary SDK type only obeys OverwriteAppConfigWithBindingRedirects and does not have the enhanced functionality of MSBuild.SDK.SystemWeb and GeneratedBindingRedirectsAction which was added in #36 to address #34.

We should copy the base functions of MSBuild.SDK.SystemWeb.BindingRedirects.targets to the Razor SDK type.

In the case of an MVC based project, it is often required to have a separate web.config in the Views directory and any Area's Views directory.

In the Razor SDK this is handled with an item type of RazorAppConfigFiles and an XmlPeek / XmlPoke for each file in the target that updates the main web.config file.

Now that we have a common files mechanism, and the fact you may have such additional web.config files in the main 'head' application, it would make sense to make this a combined/common feature.