Netduino home hardware projects downloads community

Jump to content


Photo

'Auto-Implemented Property' problem bug with 4.3


  • Please log in to reply
No replies to this topic

#1 Joshk

Joshk

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 21 August 2016 - 06:03 PM

I need to deploy a program I have deployed dozens of times on 4.2 framework...  

I have a new computer now so I was forced to 4.3 because I couldn't find all the 4.2 drivers and downloads for my new computer.

 

So when I try to deploy I get this error:

Resolving.
Resolve: unknown type: System.Diagnostics.DebuggerBrowsableAttribute
Error: ff000000
Waiting for debug commands...
The program '[23] Micro Framework application: Managed' has exited with code 0 (0x0).

 

 

 
By creating an empty project and experimenting I discovered my Auto-Implemented Properties are causing it.  Have a look at one:
Public Class globalConfig
    Public Property version As Integer = 3
End Class

But it deploys if I write it like this:

Public Class globalConfig
    Public Property version As Integer
        Get
            Return _version
        End Get
        Set(value As Integer)
            _version = value
        End Set
    End Property
    Private _version As Integer = 3
End Class

This is a big deal because it now takes 9 lines of code to do what I used to use 1 for.  So my 50 lines of code will go to 450!  I don't know if the project will still fit on a Netduino Plus2 after all that work.

 

This appears to be a large bug in 4.3...  Am I missing something?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.