How to include grxml files with UWP application? - deployment

I'm having some difficulty figuring out how to deploy xml grammar files with my UWP application. What I've done is (in Visual Studio) create a new folder in the project's "Assets" folder called "VoiceCommands". To this new folder I intend to add multiple ".grxml" files to be loaded by the UWP application at runtime for speech recognition. What I don't understand is how to tell Visual Studio to bundle up these files with the application so that they are deployed and accessible by the application at runtime, and where will they be stored? Thank you in advance.

What I don't understand is how to tell Visual Studio to bundle up these files with the application so that they are deployed and accessible by the application at runtime, and where will they be stored?
Please check the Speech recognition and synthesis sample and open the project in visual studio. See the SRGS folder, all the grammar files are in it. You just need to set the 'Build Action = Content' for each files. These file will be included in your package folder.

Related

Can Visual Studio Code with OmniPascal handle bdsproj files?

I have a couple of projects with bdsproj files and I know they were created with Borland Delphi 2005. Is there a way to open these projects in Visual Studio Code? What settings must be present?
There is no support for .bdsproj files in OmniPascal.
You can load the corresponding .dpr files of the projects in order to get code completion etc but there is no support for automatic generation of build tasks.

Adding a CHM help file in VSIX to distributed developer guide

I am writing VSIX to distribute a multi-project template with wizard for VS 2013, which allow user to write extensions for our application. I have problem in providing a user guide document, which is a chm file, along with template. VSIX manifest allow me to provide a "Getting Started Guide", however file support by these feature does not includes "CHM" file.
We use RoboHelp to create CHM, there is an option to create html files too. however the html files created are multiple files distributed into multiple folders (there is a index page, which has the link to all other html files). I am not sure how to package these files into VSIX.
I have few questions here;
Is it possible for us to run any script or batch file as part of
vsix installation?
Is it possible to create a Windiows Start manu folder to show a link to chm file?
If I point "Getting Started Guide" to any inner directory html file.
"Getting Started" link is not available in "Extensions and Updates",
is there any work around?
Am I doing all wrong? is there better way to provide a template &
help?
If i decide to deploy html help; I am thinking of deploying zipped copy of getting started help, which have many folder and files, then extract during the vsix installation. otherwise i need to mark each of those 100+ file as "Include in VSIX"
You can add the .chm (or any other file type) to the package project, select the file in the Solution Explorer, show the Properties window for the file (not for the project, and set the "Include in VSIX" property to true.
1: you can run any code on launch of your extension.
2: you can add any commands to the Tools menu
Made chm file as part of vsix and marked it as "Include in VSIX" as
suggested by #Carlos Quintero
Create a new Visual Studio Package project (using Templates -> Visual C# -> Extensibility -> Visual Studio Package) for adding a new menu item for our sdk help under VS IDE "Help" menu.Visual Studio Package wizard will be shown
Page 1) Welcome page
Page 2) Select a Programming Language: allow us to choose a programing language & way to sign the assembly
Page 3) Basic VSPackage Information: like company name, VSPackage name, icon, etc.
Page 4) Select VSPackage Options: Select Menu Command checkbox, This menu item will be added in VS IDE -> Tools
Page5) Command Options: Provided information for the menu, name & id.
After providing this information "Finish" the wizard using button
provided.
Open the ".vsct" file in the newly created project and look for "IDM_VS_MENU_TOOLS" and change it to "IDM_VS_MENU_HELP" move the menu item to VS IDE -> Help
MenuItemCallback method in the main class of the project to open chm file.
private void MenuItemCallback(object sender, EventArgs e){
string codeBase = System.Reflection.Assembly.GetExecutingAssembly().CodeBase;
UriBuilder uri = new UriBuilder(codeBase);
string path = Uri.UnescapeDataString(uri.Path);
string helpFilePath = string.Format("file://{0}\\myHelp.chm", System.IO.Path.GetDirectoryName(path))
System.Windows.Forms.Help.ShowHelp(null, helpFilePath); }

Linked Files and Folder in IntelliJ

As previous Eclipse user switched to IntelliJ I would like to be able to access folder external to my project from inside the IDE, while developing.
In Eclipse I was using the feature Creating linked resources.
I wonder if there is any feature in IntelliJ that helps me to access external files and folder in a similar way (for instance, if I want to edit the configuration of my application server which is located outside my project).
Yes you can do it by adding an new content root in your module.
You do that from
Project Structure (alt+ctrl+shift+s) - Modules - "My-Module" - + Add Content root
Now you have the contents of the added folder available in your project.
I was searching for a way to get the asset folder link working in IntelliJ as it was working in Eclipse and I found following link in the wikis of libgdx itself.
Linking the asset directories
It describes basically three approaches:
Just copy the asset folder into the desktop folder. (BAD)
Use the asset folder in the android project as working directory for the desktop project through 'Run-Configurations'. (GOOD)
Create a symbolic-link (GOOD)
I tested the 2nd option and it's working fine for me.

Best way to open phonegap project created with CLI in eclipse

When I create a phonegap folder structure via the CLI (3.0), how do I open this in Eclipse?
When I choose project [New] - [Android project from existing code], the assets are taken from the platforms/android folder. But I need to change the html and js of the top folder (www). These are the files that are being used when I build the project to other platforms (via CLI or build.phonegap).
Now I change the assets in the editor of the eclipse environment and then manually copy paste the content to the files under www.
Actually PhoneGap project structure and Eclipse project structure are somewhat different. But they work in a similar way. If you want to create phonegap project in eclipse then you have to create html,js,css within asset/www folder. The java source files will be within src folder(as usual).
If you want to create project without eclipse like with command phonegap/cordova create MyApp, then you will get all java source file within project/platform/android folder and html,js,css in www folder which is auto-created. On the other hand in eclipse you have to create this www folder manually.
But project is compiled in a same way whether it is created in eclipse(IDE) or in other text editor.
I have experience in both Eclipse and Text Editor(SublimeText,Vim). I prefer Text Editor because Eclipse sometime creates problem and it needs some extra things like creating www folder and place all scripts,templates,css etc manually.
If anyone whan to go with CLI, then I think SublimeText,Vim,gEdit etc are the best choice for coding.

Blackberry signing

I have key files from Blackberry site.
I have imported it using blackberry eclipse plug-in.
I have signed all files.
Now i want to add files to my website so that anyone can download application and use in their mobile device.
I want to know which file i have to upload to my website.
Please reply.
Thanks in advance
The eclipse plugin automatically generates the deliverables folders, which includes the .cod files and .alx files, you can deploy applications using various ways.
Some of the ways using which you can deploy your application to end users is by:
1. uploading your application in the blackberry world
2. Using .cod file of your application but it needs the blackberry jde
3. Using the .alx file and browsing it using the blackberry desktop software
4. The deliverables folder also contain .jad files too, by using this file, we can also deploy applications, but for that you need to follow certain steps
4.1 Copy the .jad and .cod files into one separate folder(Just to make sure you dont miss any files)
4.2 Rename the .cod file as .zip file Eg : abc.cod should be renamed as abc.zip
4.3 Once the .zip is done, we need to extract the files and then copy the extracted files and .jad into another folder(Just to be safe)
4.4 Now, upload this folder into the website and you hit the link from the blackberry browser and make sure there are no MIME types specified such as .doc, .docx, .xls etc in the servelet and if it is already mentioned then for .jad file mention it as "text/vnd.sun.j2me.app-descriptor"
4.5 You should actually hit the .jad file in the browser
Anyone doubts please let me know.
Thank you,
Dheeraj Jami
You have to generate an .alx file using your eclipse plugin. It will show .cod files that are used in your app. Upload those .cod file into your website.
Again there are other ways to install app in BB device. It depends on the way you use.
Thanks.