C ++ / CLI:是有可能针对使用Visual Studio 2008的.NET 3.5客户端配置文件? [英] C++/CLI: is it possible to target the .NET 3.5 Client Profile using Visual Studio 2008?

查看:167
本文介绍了C ++ / CLI:是有可能针对使用Visual Studio 2008的.NET 3.5客户端配置文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C ++ / CLI库,我想针对.NET 3.5 SP1客户端配置文件,但客户端配置文件不会出现在可用的框架的名单。是否有可能做到这一点?

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?

推荐答案

这是可能的和ndash的;如果不通过用户界面,那么至少通过手动编辑的App.config 文件:

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>

修改的App.config 文件,以便其 supportedRuntime 元素相匹配的上方。

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

这篇关于C ++ / CLI:是有可能针对使用Visual Studio 2008的.NET 3.5客户端配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆