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 Visu开发者_JAVA百科al Studio 2010... What do I do?
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.
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.
精彩评论