Rob님의 프로필Rob Relyea블로그리스트 도구 도움말

블로그


    7월 27일

    WPF: problem with 1.*, non-globalized, locally defined component, & signing

    We have a problem that a few customers have hit here and here.
     
    We believe it only happens if all of these things are true:
    1) Your project has a version number with an asterisk in it (auto-incrementing).
    2) You are not building a globalized application (set via UICulture setting in the project file).
    3) In a XAML file, which is configure to be compiled as a Page, you are referencing a type that is from the same assembly that the baml file will be compiled into.  (Locally defined component is the term our team often uses for that.)
    4) You are signing your assembly.
     
     
    Currently, we think we aren't going to fix this problem in v1, since it is a bit risky, we are done, and there are 4 different work arounds.
     
    Please yell if this is going to be an extremely common scenario...or if we are crazy for not fixing this now.
     
    Thanks, Rob

    댓글 (6개)

    잠시만 기다려 주세요...
    죄송합니다. 입력한 댓글이 너무 깁니다. 내용을 줄여 보세요.
    입력한 내용이 없습니다. 다시 시도해 보세요.
    죄송합니다. 지금은 댓글을 추가할 수 없습니다. 나중에 다시 시도해 보세요.
    댓글을 추가하려면 부모님의 사용 허락이 필요합니다. 허용 요청
    부모님이 댓글 기능을 해제한 상태입니다.
    죄송합니다. 지금은 댓글을 삭제할 수 없습니다. 나중에 다시 시도해 보세요.
    하루에 남길 수 있는 댓글의 최대 한도를 초과했습니다. 24시간 후에 다시 시도해 보세요.
    회원님의 계정은 다른 사용자에게 스팸 메일을 보낼 수 있다고 여겨지므로 댓글 기능이 비활성화되어 있습니다. 이 설정에 문제가 있다고 생각되면 Windows Live 지원에 문의하시기 바랍니다.
    댓글을 남기려면 아래 보안 검사를 완료해야 합니다.
    보안 검사에 입력한 글자는 그림 또는 오디오에 있는 글자와 일치해야 합니다.
    RelyeaRob 님이 이 페이지의 댓글을 표시하지 않도록 설정했습니다.
    알 수 없음님의 사진
    John BUcci 님이 남긴 글:
    Hi Rob,
     
    I know you've blogged about this topic some time ago.  I am currently writing a Pluggable design for a UI administrative application where the UI screens are implemented as extensible plugins.  I load these screens using a combination of Assembly.LoadFraom, Assebly.CreateInstance and then load the control asseblies' resources using Application.LoadComponent.  One of the requires of the application is that I can load multiple versions (i.e. 1.0.0.0 and 2.0.0.0) of the same extension.  I can load the resources of one version fine, but LoadComponent fails when I attempt to load the second version's resources with the 'The assembly used when compiling might be different than that used when loading...'.
     
    I followed the steps you outlined previously (don't use * versioning, build supporting globalization, etc.) to no effect.  Is there anything else I can be missing?
    2월 6일
    대화명 없음님이 남긴 글:

    Well I was getting this problem in the following situation:

    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1329634&SiteID=1

    I'm not totally sure that the problem is solved...It seems to be ok now, because I removed the * from the assembly.cs. 

     

    3월 21일
    RelyeaRob님이 남긴 글:
    Chris-
    I'm scared that you ran into this without signing.  Can you please give us repro steps or a project that shows the problem?
    Thanks, Rob
    7월 28일
    알 수 없음님의 사진
    Ian Griffiths 님이 남긴 글:
    Chris's comment that this can occur without signing is a bit troubling - if that's going to be true for release, this would be more of a big deal.
     
    But if it's as you say in the list, and that you only see this if all 4 conditions apply, this looks very low priority to me. I've always regarded the combination of "*" versioning and strong names to be a mistake. If you're doing that, it means you've got no control over your version numbers. It would mean you can't repeatably build a speciifc version of your code from source control for example.
     
    So I've tended to regard the "*" as a bit of a safety net whose only purpose is to provide a slightly better default than 0.0.0.0. (And it's only 'better' in the sense that it has a tendency to make the failure to think about versioning obvious earlier than it might otherwise have been - it's essentially a way of making alarms go off.) Any serious software project should remove and replace this with something that fits into their build process.
     
    So I wouldn't be in any hurry to see this issue fixed.
    7월 28일
    알 수 없음님의 사진
    Michael 님이 남긴 글:
    I'm sure we are going to see a lot more of 'we don't plan to fix this for v1'.  I've read previously that Microsoft is planning much more frequent and incremental updates in the future.  Can you say what the thinking is as regards WPF updates?  Not fixing stuff is less of an issue if an update with fixes can be expected in a reasonable timescale.
     
    It would also be great to see Microsoft's wish list for WPF and when features might be incorporated, eg. V2/V3, so we can provide feedback as to what we would find most useful.
     
    Oh, and tell Bill you guys deserve a pay raise!  WPF is FANTASTIC! :)
    7월 27일
    알 수 없음님의 사진
    Chris 님이 남긴 글:
    I ran into this without signing, but otherwise everything else is accurate
    7월 27일

    트랙백(6)

    이 블로그의 트랙백 URL은 다음과 같습니다.
    http://rrelyea.spaces.live.com/blog/cns!167AD7A5AB58D5FE!497.trak
    이 블로그를 참조하는 웹 로그