I am currently writing a class that uses the async..await-Pattern to do asynchronous tasks. In it I have a method like so:
public async void DoSomething() {
...
await SomeObject.DoYourThingAsync();
...
}
For the reference: The project is set to use .NET-Framework 4.5 and I am using VS2012. On my machine it compiles and works just fine, but when I check it into TFS, the build generates an error in the declaration of the function. The message is: Invalid token 'void' in class, struct, or interface member declaration