Linking to an external www-folder - Tools for Apache Cordova (VS 2015) - ios

For a project I'd like to use an existing website as a base for a cordova app. My project setup looks as follows:
One Solution with two projects
A ASP.NET webservice project (with website aka html/js/css)
An tools for apache cordova project
I don't want to copy the html/js/css files from the website on every build. Instead, I thought I could get away with some kind of a link to the www-folder in the ASP.NET project. I tried several approaches:
Creating a filesystem link (tried 'mklink' with parameters /D and /J - /H is not working for directories
Editing the .jsproj file and add a tag to link to the other project's www-folder
The second approach didn't work at all. Just got some weird errors when trying to load the project again (saying something about file duplicates).
The first approach worked a little bit: It is working, when targeting the windows platform. It is NOT working, when targeting iOS.
When targeting iOS, everything is copied just fine to the platforms\ios folder (read, all the content of the linked www folder is copied to the platforms\ios\www folder). But it is not copied correctly to the remote build tool on Mac OS X! It really just copies the directory link as a file. Remotebuild then failes with a 'missing www directory in top level' message.
Any suggestions how to add a link so the content is copied (instead of the actual link)?
Is there a way to take detailed influence on the build process for specific platforms?
Is there a way to create a hardlink to a directory in windows? What are the drawbacks?
I'd really like to avoid copying the files on build (which would be simple enough with a prebuild script), because there's a high risk of loosing changes made while debugging.
I'm aware that setting a link is also not the best solution, since it has to be done per machine and can't be checked in to a version control system. So, if somebody knows of a better aproach to handle my scenario, let me know.

I work on the Tools for Apache Cordova in Visual Studio at Microsoft.
I'm sorry but VS-TAC does not support add as link. To prevent confusion we removed the option in update 3.
The best solution I can give you is to copy files from one project to another. Another user asked this question a week ago and came up with a hacky solution. Please see this for more information:
VS2015 typescript cordova add as a link
Sorry for the trouble and thank you for the feedback!

Related

WebStorm solution with several Dart projects

I develop Dart with WebStorm. I have a server-project, a client-project and some shared code.
Is it possible to create a project solution, containing several Dart projects (like you can do in VisualStudio)? Or is it common to develop each project in it's own WebStorm window?
You can configure as many content roots as you want in one WebStorm project, see Settings (Preferences) | Directories.
See also https://www.jetbrains.com/help/webstorm/directories.html and https://www.jetbrains.com/help/webstorm/content-root.html
You can put the project directories together in a directory and then open that directory instead.
There are also ways with project root configurations to do that with projects that are not in the same directory but I did't bother to try to understand how this exactly work.
I moved away from this setup and use different windows for different projects a while ago because I don't want to maintain project configurations. I have many Dart projects that are reusable packages that I use in many other projects.
Using one window for one Dart package seems to be the easiest setup.
I configured keyboard shortcuts (there are probably defaults anyway) for easier switching between WebStorm windows.

How to import the SAPUI5 Demo Apps SDK to eclipse

I would like to ask for your help regarding importing of SDK Demo Apps to my eclipse workspace.
I have downloaded the zip file containing the SAPUI5 Demo Apps. When i unzip it,
i saw the folder containing the demo apps.
enter image description here
Now I have tried to import the project in my eclipse, but no project is found whenever i select the folder.
How do i import these demo apps in eclipse? I have searched the internet but i just cant find the right solution.
Your response will be highly appreciated.
Thank you so much in advance! :)
I am going to be a bit cheeky here but your first solution might be to NOT use eclipse ;) I am a bit of a Sublime Text fan and with lots of plug ins you can get 90% of the of the functionality with 2% of the memory footprint and an incredibly fast editor.
Ok, with that out of the way, my serious answer to your question would be to create a SAPUI5 project in the normal way (I am going from memory here)
File -> New Project (SAPUI5 Project)
Once the shell of that project is created you could then copy the root folder of the tdg project into the shell just created in eclipse.
Repeat this process for each of the examples you want to run in eclipse.

Path length of node_modules) kills jhipster project

Creating nice project stubs using jhipster has worked fine until recently.
Now on Windows 7 the node_modules look like deeply recursive folders, deep enough to grab a hole into the FS. As a consequence maven is not capable anymore of building the project.
Can anybody out there help a jhipster newbie?
It's because the path length is limited on Windows. You could try to generate your project at the root of your hard drive, that should give you more chances to make it work -> other people have it working on Windows, so it should be OK

Using LESS with MVC5 in Visual Studio 2013 with Web Essentials

I have installed Visual Studio 2013 with Update 2 and installed Web Essentials.
I had thought this was going to make adding LESS to my views a piece of cake, but am missing something.
The editor is great, and I imagine that it is compiling to css on save...
But I don't know where the generated css is, and I don't have any clue as to how to get it reference in my view.
I've tried a lot of searching, but can't get through the web of links about installing this and the features of that.
Any help at all will be greatly appreciated.
Thanks!
When you add a .less file and save, the Web Essentials will compile and generate the .css and .min.css files. You will see an arrow in your solution explorer, or you can also confirm in your file system that the files are in the same folder.
Haven't used less with vs2013 but I have used sass and my guess would be the same. By default the generated css gets generated in the same directory as the source (as it seemed to me) but you can check via tools>options>web essentials and there should be a set of options for less compile on save, build and directory to name but a few.
If you right click on the solution there should be an option to create a web essentials settings file for the solution - these create and adds a json file of web essentials settings to the solution which means your settings are local to the solution which could be important if you are changing the output directory.

XNA 4.0 ClickOnce game does not run after installation

Okay, I have been looking all over to solve this problem before I actually broke down and decided to finally ask for my psecific problem. I am using ClickOnce installation and when I use the setup.exe to install nothing runs, not even on my personal computer that I know has all of the proper libraries and such. I'm not sure what I am doing wrong so it is difficult to explain the problem.
I have included dotNetFramework4.0 client x86 x64 , xna redistributable 4.0 and windows installer 3.1 along with my game and I have it set to install all of that with setup , also I have it set to download prereqs from same location as application. I've tried it on three separate computers , one that does not have XNA or VS C# installed and the same problem occurs.
Here is the problem , after I install the game nothing runs, I try clicking on the ClickOnce application file (the one with my game's icon image) and again nothing happens. The thing that really bugs me is that there isn't any errors or crashes or anything , it's almost like clicking on the desktop screen. (I looked at the properties of the "shortcut" that was installed with the game and the file size of the shortcut is like 300 bytes. Isn't that really small? I was thinking maybe there is a problem with a startup executable? I'm not sure though.)
I've tried tweaking some stuff in the Publish section of my project , such as un-checking the box that says "use .deploy extension files" (I don't know why, I've been grasping at straws here) I've been looking into some other installers such as NSIS but I don't know how to compile a list of files to include in other installers and I feel like that won't solve the problem anyway because I've gotten ClickOnce to work with me before.
On one computer there was an error report that said something about 'deployment and application do not have matching security zones.'
Game.application resulted in exception. Following failure messages were detected:
+ Deployment and application do not have matching security zones.
It's getting late so if I need to provide more information let me know.
ClickOnce can be a fickle thing. There are times that I've had errors occur that could only be solved by recreating an entire Windows user profile. Because there are so many different options for ClickOnce, it's going to be hard for me to diagnose your exact issue, so I can only offer what options I used to successfully install via ClickOnce.
Publishing Folder: local folder
Installation Folder URL: blank
Install Mode: offline
Application Files
Make sure the Publish Status of your game files is set to Include (Auto)
Make sure the Publish Status of the XNA libraries is set to Prerequisite (Auto)
Click Prerequisites
Microsoft .NET Framework 4 Client Profile
Microsoft XNA Framework Redistributable 4.0
Windows Installer 3.1
Do not check for updates
Everything else default under Options (publisher/suite name shouldn't affect anything)
Specify the version number
Publish Now
Install the game through the setup.exe provided in the publish location. I always distribute every file that is publishes. However, you can clean up old versions in the "Application Files" folder if you don't want the history to be distributed.
You can double check the "Application Files" folder to see if your version got published correctly (look at the files that were deployed and see if they match your project contents).

Resources