简体   繁体   中英

Not able to create resource file in VS2012

I'm trying to generate local resource file for pages. I successfully generated a few, but one of the pages didnt generate resource file, showing a message in output: "Start creating resource content and adding 'meta' attributes to server controls and directives. A resource writer could not be found. Finished creating resource content and adding 'meta' attributes."

App_LocalResources folder already existed in the parent folder but was excluded from project, hence it was not generating the resx file. All I had to do was to include the folder back into the project.

Try adding/changing the globalization attribute in web.config and then verify.

<system.web>
  <globalization enableClientBasedCulture="true" culture="auto" uiCulture="auto"/>
</system.web>

Hope this helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM