|
From: William S F. <ws...@fu...> - 2014-10-30 07:35:48
|
See the CHANGES file entry for 3.0.0:
2013-11-09: wsfulton
[C#] Apply patch #79 from Brant Kyser
- Remove using directives from the generated C# code and
fully qualify the use of all .NET
framework types in order to minimize potential name
collisions from input files defining
types, namespace, etc with the same name as .NET framework
members.
- Globally qualify the use of .NET framework types in the
System namespace
- Remove .NET 1.1 support, .NET 2 is the minimum for the C#
module
This is a potential backwards compatibility break if code has
been added relying on these using
statements that used to be generated:
using System;
using System.Runtime.InteropServices;
The quick fix to add these back in is to add the -DSWIG2_CSHARP
command line option when
executing SWIG. See CSharp.html documentation for more info.
*** POTENTIAL INCOMPATIBILITY ***
William
On 29 October 2014 08:14, Mathieu Malaterre <ma...@de...> wrote:
> Dear all,
>
> I am the maintainer of the GDCM package. It currently uses SWIG to
> generate its C# API. Some users recently reported that GDCM now fails
> to build using recent SWIG 3.x release (SWIG 2.x were fine). The error
> is:
>
> TagSetType.cs(11,27): error CS0246: The type or namespace name
> `IDisposable' could not be found. Are you missing `System' using
> directive?
>
>
> Where:
>
> [...]
> $ head -12 ./Wrapping/Csharp/TagSetType.cs
> /*
> ----------------------------------------------------------------------------
> * This file was automatically generated by SWIG (http://www.swig.org).
> * Version 3.0.2
> *
> * Do not make changes to this file unless you know what you are
> doing--modify
> * the SWIG interface file instead.
> *
> -----------------------------------------------------------------------------
> */
>
> namespace gdcm {
>
> public class TagSetType : IDisposable
> #if SWIG_DOTNET_3
> [...]
>
> My question is:
>
> - Should I add the missing `using System` using swig macros ?
> - Is there a documentation for migrating from swig 2.x to swig 3.x ?
>
> Thanks much,
>
> ref: https://github.com/malaterre/GDCM/issues/10
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Swig-user mailing list
> Swi...@li...
> https://lists.sourceforge.net/lists/listinfo/swig-user
>
|