如何以编程方式重命名解决方案文件和项目文件以及ASPX(.cs,.designer.cs,.aspx) [英] How to Rename Solution File and Project File and ASPX(.cs,.designer.cs,.aspx) Programatically

查看:170
本文介绍了如何以编程方式重命名解决方案文件和项目文件以及ASPX(.cs,.designer.cs,.aspx)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何以编程方式重命名解决方案文件?

我可以重命名解决方案文件,但问题是它必须重命名所有类文件吗?

我该怎么做?

How to rename solution file Programmatically?

I am able to rename the solution file but problem is it has to rename all class files ?

How can I do this?

推荐答案

据我所知,没有公共API可以做到这一点.您可以手动重命名文件,然后相应地更新csproj文件的内容.
As far as I know there''s no public API to do this. You can manually rename the files and then update the contents of the csproj file accordingly.


这篇关于如何以编程方式重命名解决方案文件和项目文件以及ASPX(.cs,.designer.cs,.aspx)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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