I can't set the Internet permission in my Xamarin project - xamarin

I am trying to test a Xamarin Android application that consumes a WCF service. I know that I have to go to project properties and set "Internet" as a needed permission, but I don't see the list of permissions that I could select. I get this:
I know that I should see a list of permissions that I can check or uncheck according to the application's needs.
I am using VS2019 community.

Edit the file AnroidManifest.xml manually.

Related

Xamarin... How do you link a file in the Main (PCL?) project into the OS specific project?

I'm following this tutorial for setting up an app.config on a Xamarin app.
The Tutorial
one of the last steps is:
Add this PCL app.config file as a linked file on all your platform projects. For android, make sure to set the build action to ‘AndroidAsset’, for UWP set the build action to ‘Content’
Access your setting:
I have no idea what they are taking about, how in Vs2017 do I add a file as a linked file to the sub-os projects?
I'm sure this is stupid simple, but I'm totally missing it. thanks.
I figured it out
Right click on Project, add existing select teh file, on the add dialog the add button has a dropdown, change it to add link.

Including additional files when publishing an app with Visual Studio 2012

I have a console application that I've been developing and I'm just about ready to publish it for consumption.
However, there's a file that the app needs to reference (a couple files actually) and I'd like to try to include these either during install logic or via an outside process. Here's the situation:
The application fires off a load test based on some criteria the user chooses. The load test is defined by a .loadtest file which is created outside of this project.
So what I would like for the installer to do is contain the .loadtest files and just shove them in a default directory that the project can reference.
I can't figure out how to add this specific file as a pre-requisite or anything though, in the publish wizard. Any ideas?
When you add a file to the solution, it does not automatically get attached as part of the build in some cases. If you right click the file in your solution explorer and select "Properties", change the build action to "Content". This will ensure that VS includes the file as part of the build/publish and places it in the output directory of the build process.

Changing PublishUrl property in csproj file

I need to be able to change the PublishUrl property in my Excel VSTO project's csproj file in order to manage which publish url is used based on the configuration that is set in the configuration manager. This needs to happen regardless of what the developer enters in the Publish Wizard or the project properties window. I really need to control it at the point of publishing, based on the configuration set. I have found no solutions that work and it seems that this would be more common than I am finding.
I think this article will help you. You can create a small script to re-sign the files, and when you do that, you can set the URL. The article shows an example (but w/o the URL -- it's just another option available when using mage).

Add license agreement to setup project as embeded resource?

I'm trying to add a licence.rtf file to my setup project, I've followed this stackoverflow answer step by step in order to add the licence file.
What seems to be happening is when I add the license file it doesn't add it as an embeded resource so when I remove the file from my local machine i get a complie time error...I also do not see any property which let's me change the license file to an embeded resource.
This is the error that I'm getting
Please let me know if anyone has experienced this issue before and how can I go about fixing it
UPDATE:
When you add the licence.rtf file to the Setup Project it does not have a BuildAction property which can be set to EmbededResource.Tried that
I seem to have figured it out. Instead of trying to add the License.rtf file to the setup project I've added it to another project in the solution.
Once done I reference that file in my setup project and when the setup file get's compiled the license file is embeded in the exe.
Click the file in solution explorer, view properties. Then change Build Action to Embedded Resource.
The usual way to show a license agreement in a Visual Studio setup project is as follows:
Go to the User Interface view in the IDE. Right-click "Start" and then Add Dialog, add the License Agreement dialog.
Right click the dialog to move it up or down. Right-click and Properties Windows shows properties where under License you can browse for your custom license RTF file.

Windows Service not showing up when installed with Setup project

I have a simple windows Service developed in VS.net 2008 and VB.net. When I install the service using Installutil.exe from the command prompt it is working like a charm.
When I try to add a setup project and set the output and build and install it though it says successfully installed, it is not showing up in the services.
The event log shows that it is successfully installed. I just did check the registry, it did place the assemblies in HKEY_CURRENT_USER\Software\Microsoft\installer\assemblies.
But I don't understand why it is not showing up in the services listing. I refreshed and restarted.
Any thoughts??
Thanks
Found solution
You have to add a custom action in your MSI project.
So in custom actions, add the output of your service to the Install section. This will then run the required installation code for your service. i.e. the same as what the installutil.exe does
Thanks for all the help
I had the same problem and didn't pay attention to the portion BEFORE creating the Setup project.
http://msdn.microsoft.com/en-us/library/zt39148a(v=VS.100).aspx
To create the installers for your service
In Solution Explorer, right-click Service1.vb or Service1.cs and select View Designer.
Click the background of the designer to select the service itself, instead of any of its contents.
With the designer in focus, right-click, and then click Add Installer.
By default, a component class that contains two installers is added to your project. The component is named ProjectInstaller, and the installers it contains are the installer for your service and the installer for the service's associated process.
In Design view for ProjectInstaller, click ServiceInstaller1 or serviceInstaller1.
In the Properties window, make sure the ServiceName property is set to MyNewService.
Set the StartType property to Automatic.
In the designer, click ServiceProcessInstaller1 (for a Visual Basic project), or serviceProcessInstaller1 (for a Visual C# project). Set the Account property to LocalSystem. This will cause the service to be installed and to run on a local service account.
A couple of ideas:
Are you installing under the same Windows account that you are attempting to run it under? Do you have the Setup Project's "InstallAllUsers" property set to True?
Are you sure that you have the ProductName and Title properties in the Setup Project set correctly? Maybe the service is showing up in the list under a different name, i.e., "SetupProject1" or something.
Similarily, in your service's ProjectInstaller class, in design view, look at the properties of the ServiceInstaller and make sure the ServiceName and DisplayName properties are set to what you want.

Resources