简体   繁体   English

从Visual Studio向Subversion添加Dll

[英]Adding Dll to Subversion from Visual Studio

I am new to SVN though I have used TFS previously. 尽管我以前使用过TFS,但我对SVN还是陌生的。 I have ASP.Net project in VS 2010. I need to add AjaxControlToolkit dll to the project. 我在VS 2010中有ASP.Net项目。我需要将AjaxControlToolkit dll添加到项目中。 After adding this dll, I tried to commit the changes using Subversion in VS2010. 添加此dll之后,我尝试使用VS2010中的Subversion提交更改。 The project file appears in the list of items to commit; 项目文件将显示在要提交的项目列表中。 however the newly added dll is not listed. 但是,新列出的dll未列出。 How can I check in the newly added dll too? 我如何也可以检入新添加的dll?

Note: I am looking for an approach involving User Interface actions; 注意:我正在寻找一种涉及用户界面操作的方法。 not commands. 不是命令。 I am using Tortoise SVN 我正在使用Tortoise SVN

Note: BIN folder has a question mark. 注意:BIN文件夹带有问号。 The dll is added into that as well. dll也将添加到其中。 So, am I supposed to checkin the BIN? 所以,我应该签入BIN吗? There is no questionmark for the dll file inside the BIN folder too BIN文件夹内的dll文件也没有问号

Here are some suggestions: 这里有一些建议:

Create an "ExternalDlls" folder in your projects root folder. 在项目的根文件夹中创建一个“ ExternalDlls”文件夹。 Place external dll's (like AjaxControlToolkit.dll) in this ExternalDlls folder. 将外部dll(例如AjaxControlToolkit.dll)放在此ExternalDlls文件夹中。 Add this folder and it's contained dll's to SVN using TortoiseSVN's Add. 使用TortoiseSVN的“添加”将该文件夹添加到SVN中,并将其包含在dll中。

Now add a reference to your external dll from within Visual Studio. 现在,从Visual Studio中添加对外部dll的引用。 You should be able to right click the "References" folder and add a reference. 您应该能够右键单击“参考”文件夹并添加参考。 There will be an option to "Browse" your file system. 将有一个“浏览”文件系统的选项。 Browse to the "ExternalDlls" folder and find the dll you want to add, in this case the AjaxControlToolkit.dll. 浏览到“ ExternalDlls”文件夹,找到要添加的dll,在本例中为AjaxControlToolkit.dll。 Select the dll and add it to the references. 选择dll并将其添加到引用中。

OK - so now you should have the DLL added to your references, and an ExternalDlls folder ready to commit to SVN! 好的-现在您应该将DLL添加到您的引用中,并且已准备好要提交到SVN的ExternalDlls文件夹!

A suggestion: Checkout ankhsvn if you are looking for Visual Studio SVN integration. 建议:如果您正在寻找Visual Studio SVN集成,请签出ankhsvn You can also check out VisualSVN , but you will have to pay for it. 您也可以签出VisualSVN ,但您需要付费。 These are nice tools to have handy and allow you to handle SVN actions directly from Visual Studio. 这些都是方便使用的好工具,使您可以直接从Visual Studio处理SVN操作。 VisualSVN is smart enough not to add unnecessary files as well. VisualSVN非常聪明,不会添加不必要的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM