resx

Compile error with WPF .net Core 3.0 when adding .resx files

偶尔善良 提交于 2021-02-08 15:27:12
问题 Following works as expected: VS Studio 2019 tested with professional and community. Create new APF App (.NET Framework) Open properties Folder Change Resources.resx to public Create a new resources file (Resources.de.resx) Build Compiles as expected Following does not work: Create new APF App (.NET Core) Create a Resources Folder Create a new resources file (Resources.resx) Change it to public Create a new resources file (Resources.de.resx) Build Tested it on 3 different machines with VS 2019

How to localize WPF Application with RESX files in subdirectories

旧街凉风 提交于 2021-01-28 20:25:54
问题 My team has some WPF projects written using XAML. We recently added a large number of local specific RESX files to each project. In order to keep things tidy, I was asked to store these files in [Project]>Localization>[locale] Now, when we run the application on a non en-US locale, strings are pulled from the appropriate RESX file. We've tried to update Namespaces in the properties of the RESX files, as well as setting them to Public so that a resulting Designer is created. The only way that

Task could not find “AL.exe” TFS 2013

寵の児 提交于 2020-01-15 12:25:09
问题 I'm using Windows 7 SP1 and Visual studio Ultimate 2013. TFS server 2013 is installed in Windows Server 2008. Below error occurred while trying to build one solution which supports multilingual resx files: C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (3001): Task could not find "AL.exe" using the SdkToolsPath "" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1A\WinSDK-NetFx40Tools-x86". Make sure the SdkToolsPath

mvc : I want to load my error message from resource file but i get attribute const error [closed]

↘锁芯ラ 提交于 2020-01-15 12:22:31
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I want to create a multilingual mvc web site so I have been loading all my messages and labels from resource file and in my validation i want show my message from the resource file but i am getting the following error. An attribute argument must be a constant expression, typeof expression or array creation

dynamically add values to resources (C#)

依然范特西╮ 提交于 2020-01-15 10:57:08
问题 I want to add values to the resources dynamically through codings(C#). My below coding runs without any error but the values are not getting added to the resource file. protected void Button2_Click(object sender, EventArgs e) { using (ResXResourceWriter resx = new ResXResourceWriter("Resources.resx")) { resx.AddResource( "joth", "joth"); resx.Close(); } } 回答1: protected void Button2_Click(object sender, EventArgs e) { using (ResXResourceWriter resx = new ResXResourceWriter("Resources.resx"))

Implicit localization and embedded resource

穿精又带淫゛_ 提交于 2020-01-15 08:50:08
问题 Can we use implicit localization in asp.net (meta:resourcekey) while using an embedded resource file (resx)? If the resources in app_localresouces are set to "content" everything works but I can't get it to work if I set it to "embedded". Is it possible to do so while using implicit localization? 来源: https://stackoverflow.com/questions/20106825/implicit-localization-and-embedded-resource

i18n performance: resx vs. database?

牧云@^-^@ 提交于 2020-01-15 06:30:06
问题 Question: I'm asking myself whether I should use .resx files or a database to localize my ASP.NET MVC 3 application. I use a database anyway, so there's no additional effort required for a data-access layer. I know I can do both, but I'm a bit worried about performance... Is it a good idea loading the DB with additional translation work, whereas this could be done by the webserver ? Or is reading the .resx files much slower than using a database ? Also, it seems to me that the .resx-file way

How can I embed C# assembly resources in the same assembly?

我怕爱的太早我们不能终老 提交于 2020-01-13 18:19:08
问题 I have added resources for different cultures to my Class Library Project. When building, seperate folders are created for each culture with an assembly in each of them. Is there a way to embed all the resources in the Class Library Assembly, instead of having an extra assembly for each culture? The class library is eventually used in another project, so with theses seperate folders, it need to distribute a zip file instead of just one assembly. Clarification: I was looking for a solution

How to utilize the common image resources in MVC

泪湿孤枕 提交于 2020-01-11 06:55:09
问题 I have several ASP.NET MVC3 and 4 web sites. All sites are using the same resources that are separate to a library. Resources are .resx files. I'd like to use images from these resource in my html inside these sites. I wasn't using resx files before so not sure what is a good way to work with them. I think that I might create a service to provide right image from right resource file, but i guess there should be a better way. My question is what is a good way to use these images from resx