在命令行大厦C#解决方案Visual Studio 2010中

编程入门 行业动态 更新时间:2024-10-23 04:33:22
本文介绍了在命令行大厦C#解决方案Visual Studio 2010中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我要为我的C#解决方案可以自动生成过程。如何建立命令行C#解决方案,这样我就不必手动处理的依赖?

I want to automate the build process for my C# solutions. How can I build C# solutions from the command line so that I don't have to deal with dependencies manually?

推荐答案

如果您从开始菜单打开Visual Studio命令提示符 - 那么你可以调用的MSBuild,给,要么.sln文件或特定的.csproj文件为了建立你所需要的。

if you open a visual studio command prompt from your start menu - then you can call MSBuild and give that either the .sln file or a specific .csproj file in order to build what you need

另外,您可以创建自定义的MSBuild文件需要的任务照顾。

alternatively you can create a custom MSBuild file that takes care of the tasks.

一个提示:请确保您使用的是适用于该项目的目标框架或工具版本

one tip: make sure the version of MSBuild that you use is applicable to the target framework or tools version of the project

即。如果你试图建立一个在VS2010用的MSBuild 3.5创建的解决方案,那么将无法识别4.0工具项目

i.e. if you try and build a solution that was created in vs2010 with msbuild 3.5 then it will not recognise the 4.0 toolset of the project

更多推荐

在命令行大厦C#解决方案Visual Studio 2010中

本文发布于:2023-11-14 19:22:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1588322.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令行   解决方案   大厦   Studio   Visual

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!