• Smart Client Software Factory & Visual Studio 2008 Beta 2 – Workarounds for C# Known Issues

    Published by siacomuzzi on September 6th, 2007 5:19 pm under SCSF, Visual Studio 2008

    No Comments

    NOTE: A new version of Smart Client Software Factory was published. This new version is for Visual Studio 2008. Please check this post for more information.

    Now that we have SCSF installed in Orcas B2, we are able to apply workarounds for the known issues (C#).

    Note: For Visual Basic know issues, click here. 


    > Symptom: When you add a WPF view with presenter, a compilation error occurs because some references are missing.

    OrcasB2-issuesCsharp_1

    Problem

    The Target Framework for the unfolded project is 2.0 by default. With this target framework, references to .NET 3.0 assemblies are not being added by Visual Studio.

    Workarounds

    • Workaround 1: Update manually in the project’s properties page the Target Framework, setting it to 3.0 or 3.5

    OrcasB2-issuesCsharp_2
    Fig. 1 | Target Framework in C# project

    OrcasB2-issuesCsharp_3
    Fig. 2 | Module.csproj.template

    > Symptom: After adding a WPF View and compile the solution, a warning appears.

    OrcasB2-issuesCsharp_4

    Problem
    The file which contains the WinFx targets is being imported more than once.

    So far we were only able to fix this manually. However, we could search for a way to make the Guidance Package get the environment (whether it’s running Orcas Beta2 or not) and, in case it’s running Orcas B2, skip adding the import line.

    OrcasB2-issuesCsharp_5

  • Leave a comment

    Your email address will not be published.