Dmitrii Erokhin
Dmitrii Erokhin

Reputation: 1347

Which version of .NET Framework will be required for project?

I have two projects in my solution, e.g. Project1 and Project2. Project1 targets .NET Framework 2.0, and Project2 targets .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. 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. Is is because Project2 is in the same solution as Project1? If it is, are there any ways of resolving this apart form changing the target framework for Project2? Thanks!

Upvotes: 0

Views: 102

Answers (2)

S.Spieker
S.Spieker

Reputation: 7355

Maybe you are using inside project1 a library which needs .net 3.5?

Upvotes: 0

szpic
szpic

Reputation: 4496

If your project1 uses exe build in project2 which is targeted to .net 3.5 its simple that 3.5 is needed

if You want to change target for Project2 check this link: Click Here

Upvotes: 2

Related Questions