Posts
- Disabling Roslyn Compiler Preview Not Working
After installing the Roslyn preview we found that when switching back to the standard compiler by going to tools | extensions and updates | Roslyn Preview | Disable was being ignored. In order for disable to work properly you need to delete the following target files created by the Roslyn Preview:
- How Spotify Builds Products
I saw a great video the other day explaining the working culture at Spoitfy and later that day on Twitter I saw a nice image showing how they they build products and it really resonated with me and the message we were trying to get across in this video. I feel this is a great image to use with customers to help explain what I think is the best way to approach building a new product. I think it might also be better than my previous favourite the Agile Mona Lisa. Update - part 2 has just been released
- Invalid token '=' in class, struct, or interface member declaration { get; } =
If you are getting errors like: Invalid token ‘=’ in class, struct, or interface member declaration when you compile your code in Visual Studio and the class looks something like: public class Point(int x, int y) { public int X { get; } = x; public int Y { get; } = y; } then you will need to install the new Roslyn compiler from Microsoft. The error you are getting is because the new compiler has many new language features that are not compatible with the previous compiler. The above code is an example of the new Primary Constructors feature
- Visual Studio warning: “Some of the properties associated with the solution could not be read”
Today I received the message: One or more projects in the solution were not loaded correctly. Please see the Output Window for details when opening a solution in Visual Studio. Unfortunatley the details in the output window were not very helpful:
- Digging For Gold - The Hunt For Value
Does every item on your teams backlog have the same value to the business? “We need everything in the spec…tick tock…we don’t need that…that can wait…this can be simpler…oh wait I forgot what this is!” Neil Killick hit the nail on the head for me when he said “a backlog is just a list of ideas” and like all ideas, some are better than others. Think about the backlog on your current project, is it just a waterfall style requirements document in disguise?
- The Ultimate Agile Anti Pattern - Do My Requirements Look Big In This
While researching for my estimation talk at the .NET User Groups in Sydney and Canberra I kept being reminded of the same ritual that keeps occurring in most Agile teams time and time again. It occurs so often and is so pervasive that people have almost accepted it as “the way it is”.
- .NET MVC Windows Authentication
Turns out it is quite easy to allow your users to log on with their Active Directory usernames and passwords when you expose a .NET MVC application to the internet. Either select the following option from the new project menu:
- No EditorOptionDefinition export found for the given option name
I received the following message in Visual Studio 2013 when trying to open a c sharp file: ————————— Microsoft Visual Studio ————————— No EditorOptionDefinition export found for the given option name: TextViewHost/LineNumberMargin Parameter name: optionId ————————— OK —————————
- OData Web Api Date Filter 'Edm.DateTime' and 'Edm.String' incompatible types
I was getting the following error when trying to filter an odata source by date: { "Message":"The query specified in the URI is not valid.", "ExceptionMessage":"A binary operator with incompatible types was detected. Found operand types 'Edm.DateTime' and 'Edm.String' for operator kind 'GreaterThan'.", "ExceptionType":"Microsoft.Data.OData.ODataException", "StackTrace":" at Microsoft.Data.OData.Query.BinaryOperatorBinder.PromoteOperandTypes(BinaryOperatorKind binaryOperatorKind, SingleValueNode& left, SingleValueNode& right) at Microsoft.Data.OData.Query.BinaryOperatorBinder.BindBinaryOperator(BinaryOperatorQueryToken binaryOperatorToken) at Microsoft.Data.OData.Query.MetadataBinder.BindBinaryOperator(BinaryOperatorQueryToken binaryOperatorToken) at Microsoft.Data.OData.Query.MetadataBinder.Bind(QueryToken token) at Microsoft.Data.OData.Query.FilterBinder.BindFilter(CollectionNode path, QueryToken filter) at Microsoft.Data.OData.Query.ODataUriParser.ParseFilter(String filter, IEdmModel model, IEdmType elementType, IEdmEntitySet entitySet) at System.Web.Http.OData.Query.FilterQueryOption.get_FilterClause() at System.Web.Http.OData.Query.Validators.FilterQueryValidator.Validate(FilterQueryOption filterQueryOption, ODataValidationSettings settings) at System.Web.Http.OData.Query.FilterQueryOption.Validate(ODataValidationSettings validationSettings) at System.Web.Http.OData.Query.Validators.ODataQueryValidator.Validate(ODataQueryOptions options, ODataValidationSettings validationSettings) at System.Web.Http.OData.Query.ODataQueryOptions.Validate(ODataValidationSettings validationSettings) at System.Web.Http.QueryableAttribute.ValidateQuery(HttpRequestMessage request, ODataQueryOptions queryOptions) at System.Web.Http.QueryableAttribute.ExecuteQuery(IEnumerable query, HttpRequestMessage request, HttpActionDescriptor actionDescriptor) at System.Web.Http.QueryableAttribute.OnActionExecuted(HttpActionExecutedContext actionExecutedContext)"} I was using the following URI:
- Cannot read property '__count' of undefined Kendo UI Grid MVC Web API Odata
When trying to connect a Kendo UI Grid to an MVC Web API datasource I was getting the following error: Cannot read property ‘__count’ of undefined The problem is the format of the json being returned contains a value with the total number of records that can be used for paging. Solution is to add the following lines to your schema for the data source: