Paul
Paul

Reputation: 9561

How to make ClickOnce target .NET 2.0 and not 3, 3.5 or 4

I've got a simple ClickOnce application - it only targets .NET 2.0, but in the prerequisites I've got to select .NET 3.5 as a minimum prerequisite, whereas I really want to have .NET 2.0 as a prerequisite.

I'm in Visual Studio 2010... What do I do?

Upvotes: 0

Views: 909

Answers (2)

RobinDotNet
RobinDotNet

Reputation: 11877

You can copy the .NET 2.0 bootstrapper package from Visual Studio 2008's folders to Visual Studio 2010's folders and it will magically show up and work.

Upvotes: 0

vc 74
vc 74

Reputation: 38179

Right click on the project, select Properties and then Application. Make sure the target framework is .NET Framework 2.0

(Repeat the operation if your solution contains more than one project.)

Then select Publish. Click on the prerequisites button and make sure that if the setup program creation is selected, on .NET Framework 2.0 is checked.

That should do it.

Upvotes: 1

Related Questions