English 中文(简体)
在XAP中添加外部档案(在WP7号工作文件中开发额外档案)
原标题:Add external files to XAP (deploy extra files to WP7)

using XNA 4.0 s TileStorage.OpenStream() you can access files located in the application s binary folder, which are deployed with your application.

You can add files to visual studio project and set them to "copy to output directory", and then these get deployed to the phone, and can be viewed on your PC by looking at your "binwindows phonedebug" folder

但是,如果你直接向“<<>蓬勃罗伯顿>电话”文件夹复印,则这些档案不放在你的电话上(如果你正在做X箱开发工作,他们就会被送上你的电话)。

How can I deploy additional files to the phone, without adding them to visual studio? Basically I wish to use a postbuild script to get content from a file share, and deploy this + an index file (generated in postbuild) to the phone.

是否有解决这一问题的工具或容易的解决办法?

最佳回答

Xap文档只是一个具有不同延伸的齐p文档。 因此,你可以利用任何指挥线-认识-压力zi采器,在部署之前将Xaped。

For instance, with 7zip:

"C:Program Files (x86)7-Zip7z.exe" a -tzip $(ProjectDir)$(OutDir)Test.xap C:FileToInject.png
问题回答

暂无回答




相关问题
building .net applications without Visual Studio

I m interested to hear about people working with building .net applications using MSBuild, NAnt or similar tools. What are you using, why are you using it instead of the VS IDE? I like to use ...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Visual Studio 2010 Beta 2: Can I print in color?

I have to turn in a hard copy of some code with an assignment. Is there any way in Visual Studio 2010 to print C# source code with syntax highlighting? PS: The assignment is solving a math problem, ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

WPF design-time context menu

I am trying to create a custom wpf control, I m wondering how I can add some design-time features. I ve googled and can t seem to get to my goal. So here s my simple question, how can I add an entry ...

热门标签