Jump to content
Sign in to follow this  
soujanya

DevOps Build with localization resources

Recommended Posts

I'm trying to build a solution using Azure DevOps and publish the result as a nuGet package in a private repository.

A project in the solution contains a localized resource Language.resx containing the English texts. The localized versions are: Language.da.resx, Language.se.resx and Language.no.resx yet none of these are included in the resulting nuget package.

I tried adding /target:Resource,Compile to the MSBuild arguments property of the Build Solution task in DevOps, but it just resulted in an error saying no 'Resource' target was found.

I'm sure I'm just missing something obvious, but I just can't see it. I must be close, the nuGet package gets published after all, and works, except for the localization resources.

I inspected the resulting nuGet Package and extracted the dll from the project in question. Opening the dll in .Net Reflector 10 shows me that it does indeed contain the text strings in English, but no other languages.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×