2

At this moment the default namespace for resources (resx files) is ProjectName.Resources.

I would like to change this default to being just Resources.

enter image description here

What I have tried to do here is manually change the namespace in Address.Designer.cs. While that seems to work at first, the default is reset after changing one of the values in the resx file.

How can this be done?

2
  • Have you tried to set the project's default namespace in Project properties? Commented Jan 21, 2017 at 14:59
  • Not an answer, but why do you want to change it? It is the defacto industry standard to have Vendor.ApplicationName.FolderPosition as namespace. Commented Jan 21, 2017 at 15:29

1 Answer 1

2

It seems you cannot change the namespace as easily as it was in old ASP.NET projects just by changing the Custom Tool Namespace in the properties section of a resx file. Simplest thing you can do is create a Class Library project named Resources in your solution and add Address.resx to it. Then change its Access Modifier to Public.

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

I do not have those options. All I can see is File Name and Full Path

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.