0.85rc1, <solution> task, C# winforms app
solution task: resx files need to be considered carefully
when building down-level!
ResX files created with VS2003 are chock full of
references to v1.1 CLR types. (In the case of bitmaps,
icons, etc, these type-references are embedded in
base64 blocks!)
If these references don't get scrubbed back to v1.0,
apps built downlevel (eg: with -t:net-1.0) will
experience a variety of ugly crashes when run on
machines with v1.0 CLR only.
Check out the "vsconvert" tool on codeproject.com for a
description of how resx files should be handled...
http://www.codeproject.com/macro/vsconvert.asp
Repro steps:
- start VS2003, create new winforms project
- Form1 properties: set Localizable=true, in order to
generate dependency on resx file, and emit calls to
ResourceManager, etc.
- compile (w/ VS), run, it's all good
- now, rebuild w/ NAnt, targetting v1.0 framework (-
t:net-1.0).
- test on a clean-box w/ v1.0 fx only (no v1.1, no
whidbey, etc)... kaboom! (Failure usually shows up as
an InvalidCastException, in one of the
ResourceManager.Get* calls.)
Gert Driesen
Documentation
0.85
Public
|
Date: 2004-12-06 20:10 Logged In: YES |
|
Date: 2004-12-02 06:13 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2004-12-06 20:10 | drieseng |
| resolution_id | None | 2004-12-06 20:10 | drieseng |
| category_id | Tasks | 2004-12-06 20:10 | drieseng |
| assigned_to | nobody | 2004-12-06 20:10 | drieseng |
| close_date | - | 2004-12-06 20:10 | drieseng |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use