Reputation: 3748
I'm trying to publish a Xamarin.Forms project with Visual Studio 2015
by following the steps on this address.
What I have done so far :
I have changed the to project's build configuration as Release mode
and have created the keystore then published the project
by using Tools/Android/Publish Android App.
But I get these errors when I run the project in Release mode:
Resource.String does not contain a definition for 'Application.Name'
Resource.String does not contain a definition for 'Hello'
Any ideas ?
Note: This option is not seen on my Visual Studio:
Upvotes: 0
Views: 2610
Reputation: 2434
This type of error can occur due to changing resource files. This can be resolved by Cleaning the solution and Re- Building it again
Upvotes: 3
Reputation: 2187
Can you check if Xamarin.Droid project contains Strings.xml file in Resources > Values with following data:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="Hello">Hello World, Click Me!</string>
<string name="ApplicationName">$projectname$</string>
</resources>
Also make sure Build Action is AndroidResource in Properties of Strings.xml.
Upvotes: 3