开发者

Visual Studio 2008 bin\debug resources

I'm reviewing a MVVM sample Visual Studio 2008 MVVM application as provided by MS. From the main start up assembly, the project has a "Models\Contacts.xml" directory structu开发者_运维知识库re. The main OnStartup method for the Application class references this file as MainViewModel.LoadContacts(@"Models\Contacts.xml");

My question is, how does Visual Studio add this folder and xml file to the bin\debug directory? When I clean the solution, the "Model" folder is still in the bin\debug directory, but the Contacts.xml file has been cleaned. Building restores the file. How does this mechanism work?

Thanks.


Right-click the file and check the "Copy Local" property. If set to true, it copies it into the appropriate build directory so it can be accessed as a local resource with the deployment.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜