1

I am currently trying to publish an application via ClickOnce.

I tried to add a new language (nds-DE) and it works, when I compile it locally. But when I try to build it using tfs-online it just leaves it out.

If I try set the "Application File"-Settings to include, I just get the warning

Warning MSB3331: Unable to apply publish properties for item "nds-de\dsacharactersheet.core.resources"

Does anyone have an Idea how to fix this?

Project: DSACharacterSheet

lightlike
  • 152
  • 2
  • 16
  • Not sure if this will be helpful but check out this solution [Here](https://stackoverflow.com/a/9295229/2174170) or [Here](https://stackoverflow.com/a/989868/2174170) – Dumisani Nov 14 '17 at 13:23
  • @Dumisani Nope. It works and also shows locally. I think the Problem is with the Hosted tfs Build Agent. – lightlike Nov 14 '17 at 13:26
  • What're tasks of build definition? Can you share the detail build log on the OneDrive (Set system.debug variable to true and queue build)? How do you add nds-DE language (there isn't dns-DE in Publish>Options>Description>Publish language)? How do you set “application File" settings to include? – starian chen-MSFT Nov 15 '17 at 02:38
  • @starain-MSFT The .resx is at DSACharacterSheet.Core/Lang in the given Project. The last Log where this error occured is [here](https://pastebin.com/0FcNMWkT) (Warning in line 120). Publish language sould be none, because is sould be published in multiple languages. And I set the Application Files in Publish from Auto to Include. – lightlike Nov 15 '17 at 08:02
  • Can you provide the detail steps of how to add language? – starian chen-MSFT Nov 15 '17 at 08:19
  • @starain-MSFT I just add a new embedded Resource File to DSACharacterSheet.Core/Lang. – lightlike Nov 15 '17 at 09:04
  • Then how do you specify that language in Publish option? – starian chen-MSFT Nov 15 '17 at 09:07
  • @starain-MSFT Look at [this](https://www.codeproject.com/Articles/5447/NET-Localization-using-Resource-file) and the LocalizationManager Class. – lightlike Nov 15 '17 at 09:10

1 Answers1

1

VSTS hosted agent are running on Windows Server OS which does not support "nds-de" culture, the workaround is configuring a private build agent on Win 10 OS to run the build.

Eddie Chen - MSFT
  • 29,057
  • 2
  • 42
  • 60