简体   繁体   English

如何通过c#编程打开带有某些项目的Visual Studio exe(VS2008,VS2010,VS2012,VS2013)?

[英]How to open Visual Studio exe's(VS2008,VS2010,VS2012,VS2013) with some projects by programming in c#?

Now i am creating one test studio in c# to check my projects are build succeeded in all versions(2008,2010,2012,2013). 现在,我正在用C#创建一个测试工作室,以检查我的项目是否在所有版本中都成功构建(2008、2010、2012、2013)。 By this studio. 由这个工作室。 if i click VS2008 button means, it will open VS2008 exe with my projects. 如果我单击VS2008按钮,它将与我的项目一起打开VS2008 exe。 By this i would like to ensure build success in all versions. 通过这种方式,我想确保所有版本的构建成功。

Any one could you please provide your suggestion to me? 您能给我一个建议吗?

The version of Visual Studio doesnt necessarily match the version of .NET framework you are compiling with, and you dont need VS to do the compilation. Visual Studio的版本不一定与要使用的.NET框架版本匹配,并且不需要VS即可进行编译。

Just invoke the correct compiler for each version - 2.0, 4.0, etc. http://msdn.microsoft.com/en-us/library/ms379563(v=vs.80).aspx 只需为每个版本-2.0、4.0等调用正确的编译器。http://msdn.microsoft.com/zh-cn/library/ms379563(v=vs.80).aspx

if you are working with one of those project types that the compiler cant handle (setup and deployment), then you can use the devenv.exe command line for the appropriate VS version and add the /build switch 如果使用的是编译器无法处理的项目类型之一(设置和部署),则可以使用devenv.exe命令行获取相应的VS版本,并添加/ build 开关

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从VS2010升级到VS2013(或VS2012)后,无法打开Visual Studio C#解决方案,错误消息“不支持给定路径的格式” - Can not open Visual Studio C# solution after upgrading from VS2010 to VS2013 (or VS2012), error message “The given path's format is not supported” AppFabric DataCacheFactory()初始化在VS2013中挂起,在VS2010和VS2012中正常工作 - AppFabric DataCacheFactory() initialization hangs in VS2013, works fine in VS2010 and VS2012 C#-SQL Server数据工具-如何从VS2010迁移到VS2013 - C# - SQL Server Data Tools - How to migrate from VS2010 to VS2013 无法在vs2010中打开vs2008项目 - Not able to open vs2008 project in vs2010 如何在VS2010和VS2012中加载数据库项目? - How to load database project in VS2010 and VS2012? 在C#中从vs2008迁移到vs2012的水晶报表上,未找到文件异常未处理 - file not found exception was unhandled on crystal report migrating from vs2008 to vs2012 in c# 从C#调试C ++ dll在VS2013中有效,但在VS2010中无效 - Debug C++ dll from C# works in VS2013, but not VS2010 VS2010和VS2012的两个C#项目文件在同一目录中 - Two C# project files for VS2010 and VS2012 in the same directory 从VS2008 C转移到VS2010之前需要考虑的事项# - Things to consider before move to VS2010 from VS2008 C# VS2008中制作的Crystal Report,VS2012中未打开 - Crystal Report made in VS2008, not opening in VS2012
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM