MantisBT - Community
View Issue Details
0024707Community[OCCT] OCCT:Samplespublic2014-03-10 14:262014-09-11 11:48
WindowsVC++ 201032 bit
[OCCT] 6.7.0 
[OCCT] 6.7.1[OCCT] 6.7.1 
0024707: Problem building C# sample win VC 10
The problem is reported by the user MichaelBate on dev forum, [^]

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.
No tags attached.
Issue History
2014-03-10 14:26abvNew Issue
2014-03-10 14:26abvAssigned To => bugmaster
2014-04-04 19:02abvAssigned Tobugmaster => abv
2014-04-04 19:02abvStatusnew => assigned
2014-04-29 13:02abvNote Added: 0029127
2014-04-29 13:02abvAssigned Toabv => ysn
2014-04-29 13:02abvStatusassigned => resolved
2014-05-05 17:24abvChangeset attached => occt master 66fb4d9a
2014-05-05 17:24abvAssigned Toysn => abv
2014-05-05 17:24abvStatusresolved => verified
2014-05-05 17:24abvResolutionopen => fixed
2014-09-11 11:48bugmasterStatusverified => closed
2014-09-11 11:48bugmasterFixed in Version => 6.7.1

2014-04-29 13:02   
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.