In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to solve the Visual Studio.NET generation configuration problem, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
The Visual Studio.NET build configuration model also allows you to use the BuildDependencies attribute to define build dependencies between two projects. The following example shows how to make Project1 dependent on Project2 so that it must be Project2 when building the solution.
Sub BuildDependenciesExample () 'makes Project 1 dependent on Project 2. Dim p1 As Project = DTE.Solution.Item (1) 'item 1 Dim p2 As Project = DTE.Solution.Item (2)' item 2 Dim sb As SolutionBuild = DTE.Solution.SolutionBuild sb.BuildDependencies.Item (p1.UniqueName) .AddProject (p2.UniqueName) End Sub
The Startup Project (startup project) defines the project to run when you start the Visual Studio debugger. You can define this setting programmatically using the StartupProjects property of the SolutionBuild object.
Note: the StartupProjects collection in the current version of Visual Studio.NET allows you to set only one startup project, but multiple startup projects will be allowed in future releases.
The following example shows how to view and change the current startup project.
Sub StartUpProj () 'this example requires that there are two projects in the solution. Dim sb As SolutionBuild = DTE.Solution.SolutionBuild Dim p1 As Project = DTE.Solution.Item (1) 'Project 1 Dim p2 As Project = DTE.Solution.Item (2)' Project 2 MsgBox ("current Startup Project:" & sb.StartupProjects (0) 'changes the startup project to another project. Sb.StartupProjects = p1.UniqueName MsgBox ("New launch Project:" & sb.StartupProjects (0)) End Sub
The Visual Studio.NET automated build model provides many options for programmatically controlling solutions and projects and their build configuration. To learn more about the relationship between the Visual Studio.NET automated generation model and IDE, use the object browser to browse the objects listed in "The Solution and Project Automation Build Model Objects" and compare their members with the dialogs. Practice using models to understand how they work.
Thank you for reading this article carefully. I hope the article "how to solve the problem of Visual Studio.NET generation and configuration" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.