Visual studio 将内容文件从VS 2017复制到Raspberry Pi 3的Windows 10 IoT Core

Visual studio 将内容文件从VS 2017复制到Raspberry Pi 3的Windows 10 IoT Core,visual-studio,raspberry-pi,raspberry-pi3,windowsiot,windows-iot-core-10,Visual Studio,Raspberry Pi,Raspberry Pi3,Windowsiot,Windows Iot Core 10,我正在使用Visual Studio 2017社区版为Raspberry Pi 3开发Windows Core应用程序 我对这个平台很陌生,正试图将一些内容文件复制到Raspberry。 我已尝试在属性窗口中将文件类型更改为“内容”和“始终复制” 但是,我无法找到这些文件的复制位置以及如何在代码中引用这些文件 任何帮助都将不胜感激 但是,我无法找到这些文件的复制位置以及复制方式 我可以在代码中引用这些文件吗 您可以获得如下路径: Windows.Storage.StorageFolder ins

我正在使用Visual Studio 2017社区版为Raspberry Pi 3开发Windows Core应用程序

我对这个平台很陌生,正试图将一些内容文件复制到Raspberry。 我已尝试在属性窗口中将文件类型更改为“内容”和“始终复制”

但是,我无法找到这些文件的复制位置以及如何在代码中引用这些文件

任何帮助都将不胜感激

但是,我无法找到这些文件的复制位置以及复制方式 我可以在代码中引用这些文件吗

您可以获得如下路径:

Windows.Storage.StorageFolder installedLocation = Windows.ApplicationModel.Package.Current.InstalledLocation;
        StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///copyfile test.txt"));
        string text = await Windows.Storage.FileIO.ReadTextAsync(file);
并按如下方式访问这些文件:

Windows.Storage.StorageFolder installedLocation = Windows.ApplicationModel.Package.Current.InstalledLocation;
        StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///copyfile test.txt"));
        string text = await Windows.Storage.FileIO.ReadTextAsync(file);
有关详细信息,请参考“”和“”