如何执行.NET Framework同步框架 [英] How do I execute the Sync Framework for .NET

查看:118
本文介绍了如何执行.NET Framework同步框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我在这里问一个愚蠢的问题。但这是我第一次使用Sync Framework。我已经提到了这个 http://msdn.microsoft .com / zh-CN / library / ee617386.aspx [ ^ ]并创建了一个控制台应用程序。但我不知道如何编译以检查这些代码是否正常工作。在他们提到的文档中给出了这个命令行:MyExeName.exe \ path\to \ directory \\ n \ path \ to \ directory \\ n。但我不知道应该给我什么,而不是检查这是否有效。



提前感谢!

Hi
I am asking a silly question here. But this is the First time I am working on Sync Framework.I have refered this http://msdn.microsoft.com/en-us/library/ee617386.aspx[^] and created a Console Application . But I dont know how to compile to check whether these codes are working. In the document they have mentioned to give this command line : MyExeName.exe \path\to\directoryA \path\to\directoryB. But I don't get what should I give instead to check if this is working.

thanks in advance!

推荐答案

\ path \ to \ directoryd只是一个例子路径。



你的程序的默认起点是它的执行位置。



你需要或提供相对于此路径或绝对路径的路径。



您可以通过传入的 args 集合获取此权限命令行应用程序的 main 方法。



所以调试你的项目。在解决方案资源管理器中右键单击您的项目,然后单击属性。



在属性中,将有一个选项为调试提供命令行参数。



输入参数,从visual studio保存并运行你的应用程序。
\path\to\directoryA is just an example path.

Your default start point for your program will be its execution location.

You need to either provide paths relative to this or absolute paths.

You gain access to this via the args collection passed into the main method for your command line application.

So to debug your project. Right click your project in the solution explorer and click properties.

In the properties there will be an option to provide command line arguments for debugging.

Enter the arguments, save and run you application from visual studio.


这篇关于如何执行.NET Framework同步框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆