I'm a beginner to the windows app development. I'm trying to develop a windows 8 app which takes user inputs and store them in text files. Creating a text file and write user inputs to it is possible? I'm developing my app using Microsoft visual studio.
(I have tried file handling using Microsoft visual studio console application but I can't do it with visual studio store app.)
Unlike desktop executables, Windows Store Apps can only access files from predefined sandboxed locations (E.g. the Video/Music library).
Read more about it here.
And Here's the MSDN documentation for reading/writing textfiles.
Related
I am new to Windows Development. And as per criteria of my Internship they want an application from me on windows store whether UWP, WPF or Windows form. Now as I made an application on Windows form(C#). My question is that how to publish my application on windows store? Or whether a Windows form application can be published to store or not. Or I have to make a WPF or UWP application?
As a developer who creates some apps for the Windows Store, I think that you can only submit UWP. Because Visual Studio only generates store packages if you are working in a UWP project.
However, Microsoft is working in Project Centennial a desktop to store app converter.
I am trying to create an application in Visual Studio. However, I cannot access the user interface of the application when I create the app through the cross platform blank app xamarin.forms.shared.
When I create the app through cross platform blank app native portable, I see the storyboard for the iOS app, but I cannot access it since my computer runs Windows.
Furthermore, I cannot access the Windows implementation of the application. How can I access the user interface while allowing an implementation of all three versions of the app on my Windows computer?
You will need to have access to a Mac as a build host. I use a networked Mac Mini to do this. Xamarin explains how to do it pretty well here:
https://developer.xamarin.com/guides/ios/getting_started/installation/windows/connecting-to-mac/
I just created an universal windows app project in Visual Studio 2015 on Windows 10. What I want is retrieve user paths from environment variables, namely: APPDATA and USERPROFILE.
I tried using System.Environment.GetEnvironmentVariable(string), but it does not work (returns null). Then when debugging I called System.Environment.GetEnvironmentVariables().Count and it returns 0!
I tried doing the same thing on a classic desktop app, and the methods work as intended.
I wonder if it's my system settings, or there is some kind of restrictions for windows apps? If the API is restricted, how am I supposed to read/write into APPDATA?
You want to look at the classes in the Windows.Storage namespace.
Specifically, look at ApplicationData.Current.RoamingFolder and ApplicationData.Current.LocalFolder.
For the Documents folder, use KnownFolders.DocumentsLibrary.
Now I have to deploy a C# application but I still failed because of 2 reasons:
I can't set images icon for application.
My application needs to read and write to a config.txt files, but after installed, my application failed to run because the application directory unwriteable,
I have found some tutorial in deploying application in NET project deployment but its video quite simple: http://www.youtube.com/watch?v=No1paeGvBtw
I'll find solutions. Hope to know your advise about this. Thank you
Can anyone guide me, how can i create a metro app using Microsoft Visual Studio 2010.?
What are the templates needed to Create Metro Apps.
Updated :
If there are some third party libraries available, please let me know.
Metro development is purposed to be done in Windows 8 and Visual Studio 20212 environment. You can use Diskpart (Windows 7 command tool) together with Windows Automated Installation Kit to install a Windows 8 instance in parallel with your current system.
You need
1 ISO; http://www.microsoft.com/sv-se/download/details.aspx?id=5753
2 Automated Inst Kit: http://www.microsoft.com/sv-se/download/details.aspx?id=5753
3 About one-two hours (depends on your count on visual studio setup).
The result will be a file on your disk which is about 50-60GB. The bootloader will, after complete setup, give you both current Windows version and Windows 8 as option.
Perhaps you don't want to spend time on setup, so this may not be the answer you want to see. Which I fully understand. Though, there are several experience benefits using a complete Windows 8 environment. I can type a more detail on that, if requested.
Diskpart can be used like this,
create vdisk file=c:\VHD\Win8.vhd maximum=60000 type=expandable
select vdisk file=c:\VHD\Win8.vhd
attach vdisk
create partition primary
assign letter=v
After that, you can see the actual file which hold space for your virtual disk. In the source folder of the unpacked ISO file, you can find install.wim. That file will be used together with the next command based tool Automated Installation Toolkit.
imagex /info i:\sources\intall.wim
imagex /apply i:\sources\install.wim 1 v:\
Which will instantiate a silent installation from unpacked ISO to the boot disk.
Lastly the virtual boot file should be added as an optional bootup
C:\Windows\System32\bcdboot v:\Windows
From reboot and that you select Windows 8, the installation of Windows 8 will continue from the Metro design. Though after you type the product key. The best part of this, is that while in Windows 8, you still have full access to your current Windows drive.
Please note! This is a brief explanation of a process that make a Windows 8 installation without affect the current Windows, except take a lot of disk space.
You can't create Metro style apps directly in Visual Studio 2010 without using third party libraries e.g. DevComponents . Please do remember that it will be a winforms application which looks like metro style app.
For a real metro style app you have to use Visual Studio 2012 on Windows 8
Metro applications can only be developed on Visual Studio 2012.