我想在C#中创建一个Windows窗体应用程序,它将使用msbuild以编程方式构建解决方案或项目。 [英] I want to create a windows form application in C# to which will build the solution or projects programatically using msbuild .

查看:64
本文介绍了我想在C#中创建一个Windows窗体应用程序,它将使用msbuild以编程方式构建解决方案或项目。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

i want to create a windows form application in asp.net which will build the solution or projects pro-grammatically using ms-build .please provide me source code and give some idea 





我尝试了什么:



i想知道我必须动态或直接生成项目文件我可以创建项目文件。



What I have tried:

i want to know i have to generate project file dynamically or directly i can create project file.

推荐答案

首先,您需要安装创建表单应用程序所需的所有msbuild和.NET程序(编译器,资源生成器,链接器等)。然后,您需要一些方法来捕获ASP.NET网页中的源代码,将其保存到服务器上的某个位置,生成msbuild脚本并运行它。如果在Visual Studio中运行简单的项目构建,则可以检查所有运行文件以查看所需的内容。您也可以访问MSDN并随意学习该产品。
First you will need to install all the msbuild and .NET programs (compilers, resource generators, linkers etc.) required to create a forms application. You will then need some way of capturing source code in your ASP.NET web pages, saving it to some location on the server, generating the msbuild script and running it. If you run a simple project build in Visual Studio you can examine all the run files to see what is required. You can also go to MSDN and study the product at your leisure.


这篇关于我想在C#中创建一个Windows窗体应用程序,它将使用msbuild以编程方式构建解决方案或项目。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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