C++/CLI: is it possible to target the .NET 3.5 Client Profile using Visual Studio 2008?

二次信任 提交于 2019-12-13 00:23:56

问题


I have a C++/CLI library that I'd like to target the .NET 3.5 SP1 Client Profile, but the client profile does not appear in the list of available frameworks. Is it possible to do this?


回答1:


It's possible – if not through the UI, then at least by manually editing your App.config file:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <startup>
        <supportedRuntime version="v2.0.50727" sku="Client" />
    </startup>
</configuration>

Edit your App.config file so that its supportedRuntime element matches the above.




回答2:


I think this tries to explain that you need to get the SP1 for VS 2008 in order to access that target (but it's not completely clear that that's exactly what they are saying).



来源:https://stackoverflow.com/questions/5601605/c-cli-is-it-possible-to-target-the-net-3-5-client-profile-using-visual-studi

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