gpt4 book ai didi

c# - 从代码编写 visual studio 项目

转载 作者:数据小太阳 更新时间:2023-10-29 02:18:24 25 4
gpt4 key购买 nike

有什么方法可以轻松编写 Visual Studio 项目文件,还是我必须查看 xml 格式并手动编写?.net framework(3.5) 中是否有相应的库?

我使用的是 vb.net,但 C# 也可以..

最佳答案

自 2005 版以来,Visual Studio 使用 MSBuild格式来存储 C# 和 VB 项目文件。

您可以阅读这本入门书 http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=472或在网上搜索更多示例。

对于编程访问,您可以使用 <a href="http://msdn.microsoft.com/en-us/library/microsoft.build.buildengine.project_members.aspx" rel="noreferrer noopener nofollow">Microsoft.Build.BuildEngine</a> 中的类命名空间。可能是 <a href="http://msdn.microsoft.com/en-us/library/microsoft.build.buildengine.project_members.aspx" rel="noreferrer noopener nofollow">Project</a>您最感兴趣的类(class)。

关于c# - 从代码编写 visual studio 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/510555/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com