如何从vs 2013导出VB.NET项目到vs 2017以进行修改,包括重命名 [英] How do I export a VB.NET project from vs 2013 to vs 2017 for modifications including renaming

查看:224
本文介绍了如何从vs 2013导出VB.NET项目到vs 2017以进行修改,包括重命名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很好的工作Windows桌面表单项目(Form1.VB文件中大约1000行代码),我使用VS 2013在VB.Net中创建。我需要添加至少一个新功能(添加一列到3个不同的DataGridViews出现在三个不同的选项卡上)。我原样使用现有项目,因此我想制作项目的副本并将其导入另一台计算机上的VS 2017,重命名然后添加新功能。



在线搜索我发现许多不同的程序来复制项目,包括使用项目模板。不止一个人说它无法完成。我应该根据自己的情况选择哪一个程序呢?



我尝试了什么:



I have a good working windows desktop forms project (approximately 1000 lines of code in the Form1.VB file) which I created in VB.Net using VS 2013. I need to add at least one new feature (add a column to 3 different DataGridViews which appears on three different tabs). I have use for the existing project as is, therefore I want to make a copy of the project and import it into VS 2017 on another computer, rename it and then add the new features.

In searching on line I find many different procedures to copy a project, including using project template. More than one that say it can't be done. Which one of the many procedures should I use for my situation?

What I have tried:

Copy the project folder from VS 2013 and paste into the Project Template folder of VS 2017.

推荐答案

你只需复制解决方案文件夹,将新文件夹重命名为你想要的任何内容。



打开.SLN文件它在VS2017中它会工作得很好。根据需要对项目进行更改并重新编译。



完成。



没什么特别的do。
All you do is make a copy of the solution folder, rename the new folder to whatever you want.

Open the .SLN file in it in VS2017 and it'll work just fine. Make the changes to the project however you want and recompile.

Done.

There's nothing special to do.


我做了什么工作。复制旧项目文件夹并将其粘贴到VS 2017文件夹中>模板>项目模板> Visual Basic>旧项目名称。接下来,我在VS 2017中打开旧项目,然后右键单击解决方案资源管理器中的旧项目名称。单击重命名并将项目重命名为新名称。这显然会将所有内部文件名更改为新名称。接下来打开oldname.sln文件,并将路径和旧文件名更改为新文件名。你还需要将oldfilename.sln更改为newname.sln。



执行此操作后,所有内容都显示为新创建的项目。
What I did that worked. Copied the old project folder and pasted it into VS 2017 folder > Templates > Project Templates > Visual Basic > Old project name. Next I opened the old project in VS 2017, then right click on Old project name in Solution Explorer. Click on rename and renamed the project to New name. This apparently changes all of the internal file names to the new name. Next open the oldname.sln file and change the path and old file name to the new file name. Also you need to change the oldfilename.sln to newname.sln.

After doing this everything appears as though it were a newly created project.


这篇关于如何从vs 2013导出VB.NET项目到vs 2017以进行修改,包括重命名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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