Duplicates Error
AhmedZero opened this issue · 10 comments
Actual behavior
the build is failed
Build started...
1>------ Build started: Project: AZTunnel, Configuration: Debug x64 ------
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.EXIT_WINDOWS_FLAGS.g.cs(22,15,22,33): error CS0101: The namespace 'Windows.Win32.System.Shutdown' already contains a definition for 'EXIT_WINDOWS_FLAGS'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.SHUTDOWN_REASON.g.cs(23,15,23,30): error CS0101: The namespace 'Windows.Win32.System.Shutdown' already contains a definition for 'SHUTDOWN_REASON'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.BOOL.g.cs(26,24,26,29): error CS0102: The type 'BOOL' already contains a definition for 'Value'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.BOOL.g.cs(27,11,27,15): error CS0111: Type 'BOOL' already defines a member called 'BOOL' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.BOOL.g.cs(38,18,38,22): error CS0111: Type 'BOOL' already defines a member called 'BOOL' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.BOOL.g.cs(28,36,28,39): error CS0557: Duplicate user-defined conversion in type 'BOOL'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.BOOL.g.cs(39,43,39,47): error CS0557: Duplicate user-defined conversion in type 'BOOL'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.BOOL.g.cs(46,36,46,40): error CS0557: Duplicate user-defined conversion in type 'BOOL'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.BOOL.g.cs(29,36,29,40): error CS0557: Duplicate user-defined conversion in type 'BOOL'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.BOOL.g.cs(30,32,30,34): error CS0111: Type 'BOOL' already defines a member called 'op_Equality' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.BOOL.g.cs(31,32,31,34): error CS0111: Type 'BOOL' already defines a member called 'op_Inequality' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.BOOL.g.cs(33,16,33,22): error CS0111: Type 'BOOL' already defines a member called 'Equals' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.BOOL.g.cs(35,25,35,31): error CS0111: Type 'BOOL' already defines a member called 'Equals' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.BOOL.g.cs(37,24,37,35): error CS0111: Type 'BOOL' already defines a member called 'GetHashCode' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.BOOL.g.cs(23,34,23,38): warning CS0282: There is no defined ordering between fields in multiple declarations of partial struct 'BOOL'. To specify an ordering, all instance fields must be in the same declaration.
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.WINDOW_LONG_PTR_INDEX.g.cs(22,15,22,36): error CS0101: The namespace 'Windows.Win32.UI.WindowsAndMessaging' already contains a definition for 'WINDOW_LONG_PTR_INDEX'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.WINDOW_STYLE.g.cs(23,15,23,27): error CS0101: The namespace 'Windows.Win32.UI.WindowsAndMessaging' already contains a definition for 'WINDOW_STYLE'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HANDLE.g.cs(26,27,26,32): error CS0102: The type 'HANDLE' already contains a definition for 'Value'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HANDLE.g.cs(27,11,27,17): error CS0111: Type 'HANDLE' already defines a member called 'HANDLE' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HANDLE.g.cs(29,16,29,22): error CS0102: The type 'HANDLE' already contains a definition for 'IsNull'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HANDLE.g.cs(30,36,30,42): error CS0557: Duplicate user-defined conversion in type 'HANDLE'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HANDLE.g.cs(31,36,31,42): error CS0557: Duplicate user-defined conversion in type 'HANDLE'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HANDLE.g.cs(32,32,32,34): error CS0111: Type 'HANDLE' already defines a member called 'op_Equality' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HANDLE.g.cs(33,32,33,34): error CS0111: Type 'HANDLE' already defines a member called 'op_Inequality' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HANDLE.g.cs(35,16,35,22): error CS0111: Type 'HANDLE' already defines a member called 'Equals' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HANDLE.g.cs(37,25,37,31): error CS0111: Type 'HANDLE' already defines a member called 'Equals' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HANDLE.g.cs(39,24,39,35): error CS0111: Type 'HANDLE' already defines a member called 'GetHashCode' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HANDLE.g.cs(23,34,23,40): warning CS0282: There is no defined ordering between fields in multiple declarations of partial struct 'HANDLE'. To specify an ordering, all instance fields must be in the same declaration.
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.IO_COUNTERS.g.cs(29,17,29,35): error CS0102: The type 'IO_COUNTERS' already contains a definition for 'ReadOperationCount'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.IO_COUNTERS.g.cs(31,17,31,36): error CS0102: The type 'IO_COUNTERS' already contains a definition for 'WriteOperationCount'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.IO_COUNTERS.g.cs(33,17,33,36): error CS0102: The type 'IO_COUNTERS' already contains a definition for 'OtherOperationCount'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.IO_COUNTERS.g.cs(35,17,35,34): error CS0102: The type 'IO_COUNTERS' already contains a definition for 'ReadTransferCount'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.IO_COUNTERS.g.cs(37,17,37,35): error CS0102: The type 'IO_COUNTERS' already contains a definition for 'WriteTransferCount'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.IO_COUNTERS.g.cs(39,17,39,35): error CS0102: The type 'IO_COUNTERS' already contains a definition for 'OtherTransferCount'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.IO_COUNTERS.g.cs(26,25,26,36): warning CS0282: There is no defined ordering between fields in multiple declarations of partial struct 'IO_COUNTERS'. To specify an ordering, all instance fields must be in the same declaration.
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECTINFOCLASS.g.cs(22,15,22,33): error CS0101: The namespace 'Windows.Win32.System.JobObjects' already contains a definition for 'JOBOBJECTINFOCLASS'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOB_OBJECT_LIMIT.g.cs(23,15,23,31): error CS0101: The namespace 'Windows.Win32.System.JobObjects' already contains a definition for 'JOB_OBJECT_LIMIT'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HWND.g.cs(26,27,26,32): error CS0102: The type 'HWND' already contains a definition for 'Value'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HWND.g.cs(27,11,27,15): error CS0111: Type 'HWND' already defines a member called 'HWND' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HWND.g.cs(29,16,29,22): error CS0102: The type 'HWND' already contains a definition for 'IsNull'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HWND.g.cs(30,36,30,42): error CS0557: Duplicate user-defined conversion in type 'HWND'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HWND.g.cs(31,36,31,40): error CS0557: Duplicate user-defined conversion in type 'HWND'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HWND.g.cs(32,32,32,34): error CS0111: Type 'HWND' already defines a member called 'op_Equality' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HWND.g.cs(33,32,33,34): error CS0111: Type 'HWND' already defines a member called 'op_Inequality' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HWND.g.cs(35,16,35,22): error CS0111: Type 'HWND' already defines a member called 'Equals' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HWND.g.cs(37,25,37,31): error CS0111: Type 'HWND' already defines a member called 'Equals' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HWND.g.cs(39,24,39,35): error CS0111: Type 'HWND' already defines a member called 'GetHashCode' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.HWND.g.cs(23,34,23,38): warning CS0282: There is no defined ordering between fields in multiple declarations of partial struct 'HWND'. To specify an ordering, all instance fields must be in the same declaration.
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_BASIC_LIMIT_INFORMATION.g.cs(34,16,34,39): error CS0102: The type 'JOBOBJECT_BASIC_LIMIT_INFORMATION' already contains a definition for 'PerProcessUserTimeLimit'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_BASIC_LIMIT_INFORMATION.g.cs(40,16,40,35): error CS0102: The type 'JOBOBJECT_BASIC_LIMIT_INFORMATION' already contains a definition for 'PerJobUserTimeLimit'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_BASIC_LIMIT_INFORMATION.g.cs(42,56,42,66): error CS0102: The type 'JOBOBJECT_BASIC_LIMIT_INFORMATION' already contains a definition for 'LimitFlags'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_BASIC_LIMIT_INFORMATION.g.cs(47,17,47,38): error CS0102: The type 'JOBOBJECT_BASIC_LIMIT_INFORMATION' already contains a definition for 'MinimumWorkingSetSize'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_BASIC_LIMIT_INFORMATION.g.cs(52,17,52,38): error CS0102: The type 'JOBOBJECT_BASIC_LIMIT_INFORMATION' already contains a definition for 'MaximumWorkingSetSize'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_BASIC_LIMIT_INFORMATION.g.cs(57,16,57,34): error CS0102: The type 'JOBOBJECT_BASIC_LIMIT_INFORMATION' already contains a definition for 'ActiveProcessLimit'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_BASIC_LIMIT_INFORMATION.g.cs(62,17,62,25): error CS0102: The type 'JOBOBJECT_BASIC_LIMIT_INFORMATION' already contains a definition for 'Affinity'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_BASIC_LIMIT_INFORMATION.g.cs(67,16,67,29): error CS0102: The type 'JOBOBJECT_BASIC_LIMIT_INFORMATION' already contains a definition for 'PriorityClass'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_BASIC_LIMIT_INFORMATION.g.cs(72,16,72,31): error CS0102: The type 'JOBOBJECT_BASIC_LIMIT_INFORMATION' already contains a definition for 'SchedulingClass'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_BASIC_LIMIT_INFORMATION.g.cs(27,25,27,58): warning CS0282: There is no defined ordering between fields in multiple declarations of partial struct 'JOBOBJECT_BASIC_LIMIT_INFORMATION'. To specify an ordering, all instance fields must be in the same declaration.
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PCWSTR.g.cs(25,33,25,48): error CS0229: Ambiguity between 'PCWSTR.DebuggerDisplay' and 'PCWSTR.DebuggerDisplay'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PCWSTR.g.cs(25,33,25,48): error CS0229: Ambiguity between 'PCWSTR.DebuggerDisplay' and 'PCWSTR.DebuggerDisplay'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_EXTENDED_LIMIT_INFORMATION.g.cs(33,73,33,94): error CS0102: The type 'JOBOBJECT_EXTENDED_LIMIT_INFORMATION' already contains a definition for 'BasicLimitInformation'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_EXTENDED_LIMIT_INFORMATION.g.cs(35,50,35,56): error CS0102: The type 'JOBOBJECT_EXTENDED_LIMIT_INFORMATION' already contains a definition for 'IoInfo'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_EXTENDED_LIMIT_INFORMATION.g.cs(40,17,40,35): error CS0102: The type 'JOBOBJECT_EXTENDED_LIMIT_INFORMATION' already contains a definition for 'ProcessMemoryLimit'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_EXTENDED_LIMIT_INFORMATION.g.cs(45,17,45,31): error CS0102: The type 'JOBOBJECT_EXTENDED_LIMIT_INFORMATION' already contains a definition for 'JobMemoryLimit'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_EXTENDED_LIMIT_INFORMATION.g.cs(47,17,47,38): error CS0102: The type 'JOBOBJECT_EXTENDED_LIMIT_INFORMATION' already contains a definition for 'PeakProcessMemoryUsed'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_EXTENDED_LIMIT_INFORMATION.g.cs(49,17,49,34): error CS0102: The type 'JOBOBJECT_EXTENDED_LIMIT_INFORMATION' already contains a definition for 'PeakJobMemoryUsed'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.JOBOBJECT_EXTENDED_LIMIT_INFORMATION.g.cs(27,25,27,61): warning CS0282: There is no defined ordering between fields in multiple declarations of partial struct 'JOBOBJECT_EXTENDED_LIMIT_INFORMATION'. To specify an ordering, all instance fields must be in the same declaration.
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.SECURITY_ATTRIBUTES.g.cs(29,16,29,23): error CS0102: The type 'SECURITY_ATTRIBUTES' already contains a definition for 'nLength'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.SECURITY_ATTRIBUTES.g.cs(34,24,34,44): error CS0102: The type 'SECURITY_ATTRIBUTES' already contains a definition for 'lpSecurityDescriptor'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.SECURITY_ATTRIBUTES.g.cs(36,37,36,51): error CS0102: The type 'SECURITY_ATTRIBUTES' already contains a definition for 'bInheritHandle'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.SECURITY_ATTRIBUTES.g.cs(26,25,26,44): warning CS0282: There is no defined ordering between fields in multiple declarations of partial struct 'SECURITY_ATTRIBUTES'. To specify an ordering, all instance fields must be in the same declaration.
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PCWSTR.g.cs(29,26,29,31): error CS0102: The type 'PCWSTR' already contains a definition for 'Value'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PCWSTR.g.cs(30,11,30,17): error CS0111: Type 'PCWSTR' already defines a member called 'PCWSTR' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PCWSTR.g.cs(31,36,31,41): error CS0557: Duplicate user-defined conversion in type 'PCWSTR'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PCWSTR.g.cs(32,36,32,42): error CS0557: Duplicate user-defined conversion in type 'PCWSTR'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PCWSTR.g.cs(33,36,33,42): error CS0557: Duplicate user-defined conversion in type 'PCWSTR'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PCWSTR.g.cs(35,16,35,22): error CS0111: Type 'PCWSTR' already defines a member called 'Equals' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PCWSTR.g.cs(37,25,37,31): error CS0111: Type 'PCWSTR' already defines a member called 'Equals' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PCWSTR.g.cs(39,24,39,35): error CS0111: Type 'PCWSTR' already defines a member called 'GetHashCode' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PCWSTR.g.cs(41,15,41,21): error CS0102: The type 'PCWSTR' already contains a definition for 'Length'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PCWSTR.g.cs(59,27,59,35): error CS0111: Type 'PCWSTR' already defines a member called 'ToString' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PCWSTR.g.cs(62,19,62,34): error CS0102: The type 'PCWSTR' already contains a definition for 'DebuggerDisplay'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PCWSTR.g.cs(67,30,67,36): error CS0111: Type 'PCWSTR' already defines a member called 'AsSpan' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PCWSTR.g.cs(26,41,26,47): warning CS0282: There is no defined ordering between fields in multiple declarations of partial struct 'PCWSTR'. To specify an ordering, all instance fields must be in the same declaration.
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PWSTR.g.cs(26,26,26,31): error CS0102: The type 'PWSTR' already contains a definition for 'Value'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PWSTR.g.cs(27,11,27,16): error CS0111: Type 'PWSTR' already defines a member called 'PWSTR' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PWSTR.g.cs(28,36,28,41): error CS0557: Duplicate user-defined conversion in type 'PWSTR'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PWSTR.g.cs(29,36,29,41): error CS0557: Duplicate user-defined conversion in type 'PWSTR'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PWSTR.g.cs(30,32,30,34): error CS0111: Type 'PWSTR' already defines a member called 'op_Equality' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PWSTR.g.cs(31,32,31,34): error CS0111: Type 'PWSTR' already defines a member called 'op_Inequality' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PWSTR.g.cs(33,16,33,22): error CS0111: Type 'PWSTR' already defines a member called 'Equals' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PWSTR.g.cs(35,25,35,31): error CS0111: Type 'PWSTR' already defines a member called 'Equals' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PWSTR.g.cs(37,24,37,35): error CS0111: Type 'PWSTR' already defines a member called 'GetHashCode' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PWSTR.g.cs(39,15,39,21): error CS0102: The type 'PWSTR' already contains a definition for 'Length'
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PWSTR.g.cs(52,27,52,35): error CS0111: Type 'PWSTR' already defines a member called 'ToString' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PWSTR.g.cs(57,22,57,28): error CS0111: Type 'PWSTR' already defines a member called 'AsSpan' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PWSTR.g.cs(23,41,23,46): warning CS0282: There is no defined ordering between fields in multiple declarations of partial struct 'PWSTR'. To specify an ordering, all instance fields must be in the same declaration.
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PInvoke.IPHlpApi.g.cs(28,29,28,45): error CS0111: Type 'PInvoke' already defines a member called 'GetBestInterface' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PInvoke.IPHlpApi.g.cs(50,36,50,52): error CS0111: Type 'PInvoke' already defines a member called 'GetBestInterface' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PInvoke.Kernel32.g.cs(37,50,37,61): error CS0111: Type 'PInvoke' already defines a member called 'CloseHandle' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PInvoke.Kernel32.g.cs(41,50,41,74): error CS0111: Type 'PInvoke' already defines a member called 'AssignProcessToJobObject' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PInvoke.Kernel32.g.cs(93,50,93,74): error CS0111: Type 'PInvoke' already defines a member called 'AssignProcessToJobObject' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PInvoke.Kernel32.g.cs(97,50,97,73): error CS0111: Type 'PInvoke' already defines a member called 'SetInformationJobObject' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PInvoke.Kernel32.g.cs(137,57,137,80): error CS0111: Type 'PInvoke' already defines a member called 'SetInformationJobObject' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PInvoke.Kernel32.g.cs(141,67,141,82): error CS0111: Type 'PInvoke' already defines a member called 'CreateJobObject' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PInvoke.Kernel32.g.cs(170,59,170,74): error CS0111: Type 'PInvoke' already defines a member called 'CreateJobObject' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PInvoke.User32.g.cs(41,28,41,41): error CS0111: Type 'PInvoke' already defines a member called 'GetWindowLong' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PInvoke.User32.g.cs(62,28,62,41): error CS0111: Type 'PInvoke' already defines a member called 'SetWindowLong' with the same parameter types
1>M:\My_Projects\AZTunnel\AZTunnel\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\Windows.Win32.PInvoke.User32.g.cs(79,50,79,63): error CS0111: Type 'PInvoke' already defines a member called 'ExitWindowsEx' with the same parameter types
1>Done building project "AZTunnel_3ccwblpk_wpftmp.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Expected behavior
the project should be compiled successfully.
Repro steps
NativeMethods.txt
content:
GetWindowLong
SetWindowLong
GetBestInterface
ExitWindowsEx
WINDOW_STYLE
SHUTDOWN_REASON
AssignProcessToJobObject
SetInformationJobObject
CreateJobObject
JOBOBJECT_EXTENDED_LIMIT_INFORMATION
NativeMethods.json
content (if present):
{
"$schema": "https://aka.ms/CsWin32.schema.json",
"public": true
}
Context
- CsWin32 version: 0.2.10-beta
- Target Framework: net6.0-windows
Same issue, I thought it was an issue with my system and I could not figure it out.
Started happening yesterday for me. Maybe a recent VS update?
Same issue with the latest version, and the version I'm currently using (0.1.635-beta
). This is with a WPF app with .NET Framework 4.8.
Visual Studio 17.2.6
(currently a blocker in my workflow)
A work around to get things compiling until this is fixed:
- Add
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
to your csproj file. - Copy the
obj\{ARCH}\{CONFIG}\{PLATFORM}\generated\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator
folder to your project somewhere (I just named itGenerated
). - Comment out all fields
//
withinNativeMethods.txt
Same issue, I thought it was an issue with my system and I could not figure it out. Started happening yesterday for me. Maybe a recent VS update?
Same issue with the latest version, and the version I'm currently using (
0.1.635-beta
). This is with a WPF app with .NET Framework 4.8.Visual Studio 17.2.6
(currently a blocker in my workflow)
my project uses WPF with recent VS too.
This is a regression in .NET SDK 6.0.302. Rollback to 6.0.301 or apply this workaround.
Given the WPF bug is allegedly solved but 6.0.303 didn't resolve the issue, I reactivated dotnet/sdk#26557.
Also broken in 6.0.400.
They didn't fix it for 6.0.400, sadly. It's expected to be fixed in 6.0.401 and 6.0.304.
@AArnott Yup, just dropped it here so future me troubleshooting this sees it, ha! Wild issue.
I think it's fixed now.
Agreed. 6.0.401 at least I've tested and it works. I'm glad it works for you too, @AhmedZero.