[英]Which version of .NET Framework will be required for project?
I have two projects in my solution, eg Project1 and Project2. 我的解决方案中有两个项目,例如Project1和Project2。 Project1 targets .NET Framework 2.0, and Project2 targets .NET Framework 3.5.
Project1以.NET Framework 2.0为目标,而Project2以.NET Framework 3.5为目标。 Project1 has no references to Project2, the purpose of Project2 is to use the .exe file it generates in post-build of Project1.
Project1没有对Project2的引用,Project2的目的是使用它在Project1的后期构建中生成的.exe文件。 However, when I try to run Project1.exe on a machine with .NET Framework 2.0 it says that it needs .NET 3.5 to run.
但是,当我尝试在具有.NET Framework 2.0的计算机上运行Project1.exe时,它表示它需要运行.NET 3.5。 Is is because Project2 is in the same solution as Project1?
是因为Project2与Project1在同一个解决方案中吗? If it is, are there any ways of resolving this apart form changing the target framework for Project2?
如果是,有没有办法解决这个问题,改变Project2的目标框架? Thanks!
谢谢!
If your project1 uses exe build in project2 which is targeted to .net 3.5 its simple that 3.5 is needed 如果你的project1使用了针对.net 3.5的project2中的exe build,那么简单就需要3.5
if You want to change target for Project2 check this link: Click Here 如果要更改Project2的目标,请选中此链接: 单击此处
也许你在project1里面使用了一个需要.net 3.5的库?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.