ClickOnce App says requires .NET 3.5 when built using .NET 2.0

旧巷老猫 提交于 2019-12-12 01:25:36

问题


Help!

I have a clickonce app built and published using .Net 2.0. This app has a number of .Net dll's all built using .Net 2.0. However when I publish the app, and try to install it I get a message saying that version 3.5 of .Net is required!

I've tried my best to track down what component could require .Net 3.5, first by checking and rebuilding everything, and then using ILDASM to look at the file headers. Can't find anything relating to .Net 3.5 at all and I am at my wits end!

Any ideas how to resolve this?


回答1:


Try changing the "Required Components" (not sure whether that is the exact term - using German VS2008) on the "Publish" tab in the project properties. .NET 3.5 might still be marked as a required component, even though it should be .NET 2.0.




回答2:


Have you targeted the 2.0 framework in the project properties? I can't remember the exact option as I'm not in front of my dev machine at the moment but it's in there somewhere...



来源:https://stackoverflow.com/questions/955309/clickonce-app-says-requires-net-3-5-when-built-using-net-2-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!