Adding files to assets

You need to right click the Assets folder in Visual Studio and select Add existing item (you can’t just copy files into the folder in explorer)

Files That Were Packaged With Your App (Assets)
	Windows.Storage.StorageFolder folder = Windows.ApplicationModel.Package.Current.InstalledLocation;
	Windows.Storage.StorageFile file = await folder.GetFileAsync("Assets\\SomeFile.txt");
	<MediaElement Name="audioplayer1" AutoPlay="False" Source = "Assets/audio_song.mp3" />
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published. Required fields are marked *