Hi when i am trying to open .xap files in visual studio 2013, it says no editor is present and it could not find any application that opens the xap file. what could be the reason?
They are actually Zipped files. Just change the extension to zip and you can view the files
If you are trying to open xap files downloaded from the store you will not be able to read the contents, even if you rename the extension to zip, because they are encrypted.
If this a non-encrypted xap, go to explorer->view and check the File name extensions box, then you will be able to rename the file from xap to zip and browse the contents.
Related
I want to try netbeans for web development. I created a new local project. I have my remote server files (javascript, php etc) accessible locally on my computer using sftp in linux, now I just want to add these files to the project but there is no 'add files' possibility. Have Oracle forgotten something so obvious as add existing files? I can't believe it.
To add an external file to your NetBeans project:
Select the file in the file system that you want to add to your NetBeans project using a file manager (such as File Explorer on Windows).
Right-click and select Copy from the popup menu.
Within NetBeans go to your project and position the mouse over the target directory to which you want to copy the file. You can do this in the Projects panel or the Files panel as appropriate.
Right-click and select Paste.
That's all there is to it. This works on Linux and Windows. You can also do drag and drop, though on Linux the file is copied whereas on Windows the file is moved.
There is no menu option in NetBeans such as File -> Import existing file to do this. Just use an external file manager.
Update/clarification:
The instructions above only specify how to copy an existing file into an existing project.
There is no way to include an individual file that is external to the structure of a NetBeans project.
However, it is possible to create a symbolic link (junction) from a NetBeans project directory to an external directory. To do that open a Command Prompt window as an administrator and enter a command similar to this:
mklink /J D:\NetBeansProjects\HTML5DemoCss\nbProject\MyLink2 C:\sftp
That will create a new directory in your NetBeans project named MyLink2 which maps to an external directory named c:\sftp. You can then process files in that external directory C:\sftp as though they were within your project directory MyLink.
my UserManual.chm file file does not displaying content.
i dont know why it's not working on my Computer.
please help me to find out solution
Microsoft is trying to protect you from CHM files.
If a CHM file is downloaded from a server (UNC-Path) you can't view the Content without . Copy the CHM file to a local drive and try again. You may try another CHM file on a local drive.
If a CHM file is unzipped from a ZIP download please open Windows Explorer, find your CHM file, right-click and select properties and click the Unblock button on the General tab.
In developing a WinRT 8.1 app, I think that the Uri has to be only of known file extensions? Is that correct? For example, the following snippet will cause an exception on the GetFileFromApplicationUriAsync call even if this file exists as shown:
Uri uri = new Uri("ms-appx:///Assets/lake800x600.flanker");
StorageFile file = await
StorageFile.GetFileFromApplicationUriAsync(uri).AsTask().ConfigureAwait(false);
However, if I change the file extension and the URI to '.dat' or '.txt' it works fine. Is this a known issue? Why can't I refer to and use files of any extension?
You need to make sure your files are marked as content so they are included in the appx package.
Typical data file types such as .txt and .jpg will default to content, but you'll need to set it explicitly for other file types.
Compare a text file:
And a .dat file:
You can confirm by creating a package (Store.Create app packages...), renaming the .appx to .zip, and opening it to see the files. You can also check the Appx folder created in your app's bin\Debug\Appx directory when you deploy and run from Visual Studio
Is it possible to physically copy files to Isolated Storage using the ISETool? I'm trying to add a text file into Isolated Storage and then, through code, check if that file exists. When I do this, I get a "File does not exist" error.
If I add a file to Isolated Storage in code, it works successfully and I can access it in Isolated Storage via the ISETool to copy it to my PC.
Consider scenario 2:
I add a file into Isolated Storage in code, and then using the ISETool get it back to my PC. Without modifying the file, I place the SAME FILE back to Isolated Storage and try to open it through code, I see the same "File does not Exist" error.
You haven't said how you're writing files to Isolated Storage.
Instead, consider using something like Windows Phone Power Tools for this as it makes it much easier to work with files in Isolated Storage.
According to this MSDN article, you are able:
...to replace the files and directories in an app’s local folder on an
emulator or a device with files and directories from your computer....
Steps:
Deploy the app that you want to test to the emulator or a device.
Get the Product GUID for the app specified in the ProductID attribute of the App element of the WMAppManifest.xml file.
Open a Command prompt window and navigate to the location of ISETool.exe.
To replace all the files in the app’s local folder with files from your computer, type the following command using the Product GUID obtained in the previous steps and specify the source directory on your computer.
ISETool.exe rs <xd|de> <product-id> <desktop-path>
The following example shows a command that replaces the files and directories in an app’s local folder with the files from the directory "C:\Data\My Files" on your computer.
ISETool.exe rs xd 11111111-2222-3333-4444-555555555555 "C:\Data\My Files"
Hope this helps!
yes it is possible to copy to and from isostorage of phone or emulator
try this to upload or download files into iso storage
for wp8.1 only
https://isostorespy.codeplex.com/
for wp7
Windows Phone 7 Isolated Storage Explorer
for wp8
Windows Phone Power Tools
Anyone know what would make vs2010 not deploy .json files when doing a publish? All the other files (.js,.html, etc.) publish, but the .json files just to not move.
I don't think I've done anything special that would prevent that so any thoughts would be appreciated.
Right click on the file choose "properties" and set "content" as for the "Build Action"
.JSON is not known to VS2010 web application file types
You can change the behavior of vS2010 by editing the registry
If your choosing to only deploy nessicary files, visual studio may not have any hard links to the json files, and thusly does not include them in the deploy. You can choose to deploy all files in Package/Publish settings. Or just ftp the json files manually.