Custom Config for Publishing to File System - visual-studio-2013

I am having a MDHA Project and I am deploying to Devices and to the Web.
Is it possible (like in usual VS Projects) to have an custom Config, which calls a batch script on anything like this to publish the files on a file System?
Actually when i create a custom Config, it will also try to deploy it as an APP.
Thanks Markus

If I understand your question correctly, you want to use the same set of web assets (HTML, CSS, Javascript. etc.) to build both a hybrid app and a web site. I have a similar situation where my assets are part of an existing ASP.NET project.
I created a companion MDHA project and reused the assets by adding a target & task to the MDHA project file that copies the assets from the ASP.NET project to the MDHA project directory. Even though the assets are not part of the MDHA project definition (i.e., they are not present as items in the project file), this approach works because MDHA looks for files under the project directory on disk.
Of course, all of this depends on having web assets that are available at build-time.

Related

Regenerate XCFramework if there is a code change

I have a Demo project and Framework which can be integrated with multiple ways(Cocoapods, SPM - using generated XCFramework, directly integrate with XCFramework)
For distributing Demo app to external users we integrate the Framework with SPM.
Problem with this approch is during development its makes really hard to regenerate XCFramework after each change, so I have decided to drag and drop the Framework's project to Demo app, but cant understand how to recompile XCFramework if there is a change.
Could you please help me with understading how to handle this scenario.
Create an .xcworkspace that contains the framework project and the demo app project side by side, then inside the demo app target General settings (see screenshot), add the .framework file from the framework project within the workspace instead of depending on the .xcframework binary file directly.
After that, add a "Copy File" build phase that embeds the framework file.

Outlook add-in Production and Development deployment

I created an react-outlook add-in using the yeoman generator and successfully deployed the war file in the oracle web logic server.
However, whenever I make small changes I need to create a new war file and deploy it again and again to test the add-in. I cannot test the add-in when it is deployed in the localhost due to CORS policy errors (Cannot call APIs).
Since, creating war files and deploying them again and again in the server is a tedious process, is there a way to easily test the add-in or a way to make the same process a bit easy?
Currently, I'm following these steps whenever I make a change in the code that needs to be tested.
Create the dist folder (npm run build)
Generate the war file
Copy the war file in my local folder and paste it in the network folder
Publish it in the oracle server
If it helps, I can see following two lines in the webpack.config.js file as well
const urlDev = "https://localhost:3000/";
const urlProd = "https://www.contoso.com/"; // CHANGE THIS TO YOUR PRODUCTION DEPLOYMENT LOCATION
Thank you in advance!
You can use webpack to automate the process of generating and copying the war file to the dist folder.
The URLs mentioned in your post are used when you build a debug or release version of the add-in. Depending on that the manifest file contains the appropriate URLs, so you could run it locally or from any web server.
As for CORS, see Addressing same-origin policy limitations in Office Add-ins for possible solutions.

Share Code Between Device Projects

I am using ItelliJ and XCode 4.5 to develop a PhoneGap application. I would like to share a lot of the resources used between both projects, but haven't found a good solution yet. I tried symbolic links but that doesn't end up working well. Is there a way for me to do this without having to make sure I have code in sync between devices?
I divide project on several parts:
"www" project, which contains html/js/css
android project
ios project
Android and ios projects repos have "www" project repo as submodule(I use git).
I also create separate folders ios and android in "www" project.
In index.html I analyze user agent string and include appropriate phonegap.js file.
Example.

Deploying a pre-built package to Appharbor

I couldn't find any information on Appharbor's website about the possibility to deploy pre-built asp.net (mvc) applications. Does anyone know if that's doable?
Another question I have is wether appharbor's built process supports project that launch an executable (node.exe in this case) that's included in a solution folder as part of a custom build step?
If you're worried about precompilation, that's something AppHarbor does out of the box. If you push a repository without a solution file, we won't build it, but just deploy the contents (see part with no solution file).
You should also be able to run node.exe as part of the build, as long as all dependencies (incl. node.exe) are in the repository.

How do I exclude a particular folder from the copying process in a Web Deployment project?

I am suing VS 2005 and a Web Deployment project. The problem is that the build process takes a very long time because the deployment process copies my images folder to the deployment directory. The images folder is small in size but has thousands of files. I want to keep the images in my development folder so that I can see if the linking to the images in the HTML works. However I never upload the images because they are already there. So I am ideally wanting to exclude that folder from the deployment process.
Is there a easy way to do this?
This SO post mentions an addin (Web Deployment addin) that should allow you to exclude items from the build process.
You can also go about excluding items by manually editing the Web Deployment project file. Look under the Customizing Web Deployment Projects heading here...
http://msdn.microsoft.com/en-us/library/aa479568.aspx

Resources