Archived issue #0024707

Problem building C# sample win VC 10

CommunityOCCT:Samplesclosed1 public note

Search issues

Description

The problem is reported by the user MichaelBate on dev forum,
http://dev.opencascade.org/index.php?q=node/922

When VS projects (originally VC9) are converted to VC10, version of .NET framework in CSharp projects is kept as it is (3.5), while in C++ projects it gets elevated to 4.0 (default for VC10). This causes incompatibility between the projects.

The manual solution is to change option "Target framework" in properties of C# projects (tab "Application") to ".NET Framework 4".

This should be documented, or perhaps some better way to ensure smooth work of samples with different versions of VS exist.

Public activity

1 archived note

Participants are labeled by their role within this record.

01Commenter 1
There seem to be no easy way to enforce same setting of Target Framework in C# and C++ projects when they are converted by Visual Studio from older versions. Hence manual correction is necessary, I have added corresponding paragraph to the sample description. Please review, branch CR24707.