Subversion 中的.net winform 项目结构
我即将开始一个 .net winform 项目。我对如何在 SVN 中设置项目结构感到困惑。除了主GUI之外,我还会编写一些常见的库,例如通信层等。这些库将在这个项目中使用,也会在其他项目中使用,所以我不想将这些库放在gui项目下。
人们通常如何在 svn 中为这些类型的项目创建项目结构。
我应该首先使用一些工具(乌龟等)在 svn 中创建项目结构吗? 如果是,那么如果我首先在 VS 2010 中创建结构,那么如何在 VS 中创建 VS 项目,以便项目文件等进入正确的文件夹。
如何在 svn 中相应地提交它们,以便维护项目目录结构?我在 VS 中使用 AnkhSVN 但无法做到这一点,每次我尝试 SVN 中的目录结构都与我想要的不同。
如何/在哪里添加解决方案文件和解决方案文件夹?
如果这些问题非常基本或模糊,我深表歉意,但在 Eclipse 中,我从未发现设置新项目很困难。我使用maven标准目录结构,一切似乎都很明显,我在java世界中从未遇到过这种问题。
总而言之,如果有人可以给我在 VS/SVN
GUI(主项目) 中创建一个非常简单的 MVC 项目结构的步骤
--型号
--查看
--Utils
CommLayer(这是通用库之一,将在本项目以及稍后的其他项目中使用)。
谢谢
I am about to start on a .net winform project. I am confused on how to setup project structure in SVN. Apart from main GUI, I will write few common libs like communication layer etc. these libs will be used in this project and also will be used in other projects as well, so I don't want to put these libs under gui project.
How do people generally create project structure in svn for these type of projects.
Should I first create project structure in svn using some tool (tortoise etc..) ?
if Yes then how do you create VS projects in VS so that project files etc go in correct folders
if I first create structure in VS 2010. How do I commit them accordingly in svn so that project directory structure is maintained? I am using AnkhSVN in VS but not able to do this, every time I try the dir structure in SVN is different from what i want.
How/where to add solution files and solution folders?
apologies if these questions are very basic or vague but in eclipse I never found it difficult to setup a new project. I use maven standard dir structure and everthing seems to be so obvious that I never faced this kind of issue in java world.
To summarise, if someone can give me steps to create a very simple MVC project structure in VS/SVN
GUI(main project)
--Model
--View
--Utils
CommLayer (this is one of common libs which will be used in this project as well as others later).
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
指导包可能是去这里的方法
请参阅
创建指导包
如果我可以提供一句话建议 - 与您的共同点跨项目使用的库我鼓励您拥有这些库的版本,因此这些库可能是通用的,但项目可以使用这些库的不同版本。
为了方便这一点,有一个ExternallReferences文件夹,其中包含为您发布的公共库的DLL,并在您的项目中引用它们
Guidance Packages may be the way to go here
See
Creating Guidance Packages
If I can offer one word of advice - with your common libs that are used across projects I would encourage you to have releases of these so the libs may be common but projects can use different releases of these.
To facilitate this have an ExternallReferences folder which have the released DLL's for you common libs in and reference them in your project