Skip to content

Using Westwind.Globalization in a WebSite Project

Rick Strahl edited this page Jun 24, 2015 · 1 revision

As of version 2.0 using Westwind.Globalization in WebSite projects should just work without any special manual configuration changes beyond what's described in the getting started guide.

There are a couple of changes that have to be made.

Configuration Changes

WebSite projects are essentially WebForms projects using the ASP.NET Resource Provider, so it's recommended you set up the site as follows:

<DbResourceConfiguration>
  <add key="ResxExportProjectType" value="WebForms" />
  <add key="ResxBaseFolder" value="~/" />
  <add key="StronglyTypedGlobalResource" value="~/App_Code/Properties/Resources.cs" />
</DbResourceConfiguration>

If you plan on using only strongly typed resources (no global/local resources or meta-resource tags) then you can switch the project type to Project.

Move the Properties folder

The Starter NuGet Package installs a Properties folder into the project root. This folder is essentially code, so move it to the App_Code folder as a subfolder.