1

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?

enter image description here

casperOne
  • 73,706
  • 19
  • 184
  • 253
anthony
  • 40,424
  • 5
  • 55
  • 128

2 Answers2

3

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.

ildjarn
  • 62,044
  • 9
  • 127
  • 211
  • He's already using that runtime version, VS2008 only targets CLR v2. This is a build question. – Hans Passant Apr 08 '11 at 23:57
  • @nobugz : Enforcement of client runtime is performed by the CLR at execution time; the `sku` attribute is the key change that must be made. – ildjarn Apr 08 '11 at 23:59
  • @Adam, please use my SO user name, that way your comments show up in my inbox. – Hans Passant Apr 09 '11 at 00:07
  • @Hans Passant : Fair enough. A question, though, that I couldn't find an answer to with a skim of the FAQ: When using '@' to respond to people with a space in their name, is it necessary to use the full name or only the first name in order to have the message appear in their inbox? – ildjarn Apr 09 '11 at 00:13
  • I just use the first 3 letters, getting the space included. Can't say if that's guaranteed to work but nobody ever said it didn't. – Hans Passant Apr 09 '11 at 00:18
1

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).

jonsca
  • 10,218
  • 26
  • 54
  • 62