[英]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.